Bug 34705 - Java Element Filters - allow "only matching names will be shown" [filters]
Summary: Java Element Filters - allow "only matching names will be shown" [filters]
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-11 14:26 EST by Brian DeWeese CLA
Modified: 2016-05-04 10:35 EDT (History)
4 users (show)

See Also:


Attachments
UI mock up. (52.32 KB, image/png)
2010-04-28 15:27 EDT, Simon Archer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian DeWeese CLA 2003-03-11 14:26:34 EST
Currently the "Java Element Filters" dialog from the Package Explorer view only
allows you to specify name filter patterns that are excluded from the list.  I
propose the addition of a 2nd checkbox and entryfield beneath the existing pair,
that will allow the user to only include those files that match the name filter
pattern.

This feature wouldn't commonly be used but it would have some useful temporary
purposes.  It would make it easier to highlight multiple files from a large list
of files.  Once the multiple files were highlighted then multi-file operations
could be performed on them such as 'Compare with>each other', export,
Team>Checkout, etc.
Comment 1 Erich Gamma CLA 2003-03-12 13:03:29 EST
not for 2.1
Comment 2 Ed Burnette CLA 2003-03-15 15:06:47 EST
Don't working sets provide this functionality pretty much?
Comment 3 Brian DeWeese CLA 2003-03-25 12:16:53 EST
Working sets could be used to provide this type of functionality but it would be
clumsier to use.  Working sets are more of a permanent filter where what I'm
proposing is a temporary one.   We have a lot of packages in our projects so it
actually takes a bit of time to go thru them all and create a working set of
just the packages I'm interested in.

Ideally, I would like an (optional) entryfield at the top of the Package
Explorer view that behaved like the Open Type dialog.  Typing something in this
entryfield would show realtime filtering in the view.  The only difference for
'Open Type' is that multiple patterns could be specified.

I suggested enhancing the 'Java Element Filters' dialog because I thought it
would be easier to implement and more acceptable to other developers.

What sparked this for me was when I wanted to compare 2 files that were both
deeply nested in different projects.  It took nearly a minute to find and
higlight them both so I could right click on them.  

I find the 'Open Type' dialog very very useful and also like it in other places
where that type of functionality is implemented, such as in Mozilla's email app.
 I think it would be useful here as well.
Comment 4 Denis Roy CLA 2009-08-30 02:17:41 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.
Comment 5 Simon Archer CLA 2010-04-28 15:26:34 EDT
My Package Explorer contains over 400 projects. Just like many people, we use the reverse domain name convention for naming projects. While we already use Working Sets, and while the projects are alphabetically sorted, it's still tiresome and error-prone to find a particular project from a list of hundreds.

Just like we have a filter in the Window > Preferences dialog, I'd like to see a filter added to the top of the Package Explorer and the Navigator (to name just two views).

- There's space on the Package Explorer and the Navigator views to add an inclusion filter.

- This could be turned on and off via a menu item on the view's pull down menu.

- The Java Elements Filters dialog already has an exclusion filter, but this is only useful for semi-permanent exclusions.

- It might be useful to also have a filter for semi-permanent inclusion filters.

- Clearly with both inclusion and exclusion filters we'd have to apply the inclusions filter first and then the exclusion filter to the result.

Please see the attached UI mock-up.
Comment 6 Simon Archer CLA 2010-04-28 15:27:32 EDT
Created attachment 166366 [details]
UI mock up.
Comment 7 Dani Megert CLA 2010-04-29 09:34:42 EDT
This bug here is to add inclusion filters to the Java Elements filter. You can open another bug for the idea you outlined (actually there might even be one already).
Comment 8 Dani Megert CLA 2010-04-29 10:21:25 EDT
>You can open another bug for the idea you outlined (actually there might even be 
>one already).
See bug 149110.
Comment 9 Dani Megert CLA 2014-05-29 07:51:18 EDT
I've missed this just again today.