Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 1970

Summary: [Navigator] - User defined filter patterns (1GD0GKE)
Product: [Eclipse Project] Platform Reporter: Simon Arsenault <simon_arsenault>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: alexeclipse, austin.taylor, b.muskalla, billy.biggs, bugs, davidb.arbete+bugs+eclipse.org, dominik, dytyniak, elias, greg, loskutov, mistria, n.a.edgar, sbouchet, teufelsmuhle, tom.seidel, trdavidson, zaphod
Version: 2.0Keywords: helpwanted, investigate, usability
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=226046
Whiteboard:

Description Simon Arsenault CLA 2001-10-10 22:23:29 EDT
Create a javaproject.
	Create .java files.
	Create .abc files.
	
	Select the project.
	Popup menu->Select filters.
	Only .* and .class are in the list of filters.
	
	Either the user should be able to add more filters or all the extensions of files
	in the workbench should be in that dialog.

NOTES:
Comment 1 DJ Houghton CLA 2001-10-29 17:42:37 EST
PRODUCT VERSION:
	Build 101 - JDK on NT

Comment 2 doug CLA 2002-02-06 14:30:43 EST
this definitely needs to be addressed.  i would prefer custom filters, but i
think picking up filters for all the existing file types could be a secondary
option.
Comment 3 Simon Arsenault CLA 2002-03-21 15:26:56 EST
No time to do this for release 2.0  Maybe someone from the community will be 
interested in doing this?
Comment 4 Randy Giffen CLA 2002-08-06 17:14:30 EDT
Reopen for investigation
Comment 5 Knut Radloff CLA 2002-11-18 14:06:12 EST
Bug 13980 is related. It requests Navigator working set selection to work like 
in Package Explorer.
Comment 6 Knut Radloff CLA 2003-04-07 10:31:00 EDT
*** Bug 2253 has been marked as a duplicate of this bug. ***
Comment 7 Knut Radloff CLA 2003-06-10 13:40:53 EDT
Consider supporting path filters as in:
      <filter
            selected="false"
            pattern="/WebContent/WEB-INF">
      </filter>
     <filter
            selected="false"
            pattern="/* Deployment Descriptor">
      </filter>

Note that the second filter is using an absolute path.
Comment 8 Knut Radloff CLA 2003-09-02 17:01:01 EDT
Reassigning to Nick since he is taking ownership of Navigator
Comment 9 Nick Edgar CLA 2004-03-11 16:50:25 EST
*** Bug 54387 has been marked as a duplicate of this bug. ***
Comment 10 Nick Edgar CLA 2004-11-08 11:54:46 EST
*** Bug 77903 has been marked as a duplicate of this bug. ***
Comment 11 Nick Edgar CLA 2005-06-30 15:09:21 EDT
*** Bug 102197 has been marked as a duplicate of this bug. ***
Comment 12 Tim Hunt CLA 2006-02-12 16:32:03 EST
Workaround that seems to work in Eclipse 3.1.1:

Note: apply this at your own risk. I just made it up, and I don't entirely understand what I am doing.

Basically, the workaround in bug 54387 does not work any more because the XML file you need to edit is hiding inside a .jar file. Just uncompress that jar file (Eclipse does not care), then you can edit the config file.

On my Ubuntu Linux system, the step-by-step procedure is:

1. Ensure that Eclipse is not running. 

2. As root, run the following commands:

# cd /usr/lib/eclipse/plugins
# unzip org.eclipse.ui.ide_3.1.1.jar -d org.eclipse.ui.ide_3.1.1
# mv org.eclipse.ui.ide_3.1.1.jar org.eclipse.ui.ide_3.1.1.bak

3. Edit the file /usr/lib/eclipse/plugins/org.eclipse.ui.ide_3.1.1/plugin.xml

Find the bit of this file that looks like 

   <extension
         point="org.eclipse.ui.ide.resourceFilters">
      <filter
            selected="false"
            pattern=".*">
      </filter>
   </extension>

Make as many copies of the <filter> tag as you like, and change the pattern attributes to be what you want them to be.

4. Run Eclipse again, while keeping your fingers crossed.
Comment 13 Bob Dytyniak CLA 2006-02-13 12:34:10 EST
Interesting workaround but potentially user error prone. Still could use this as an official feature
Comment 14 Jeff Lowery CLA 2006-03-08 17:16:10 EST
Just tried the workaround in Version 3.1.2 and it didn't work. BTW, where does the '*.class' filter shown in the Navigator come from?
Comment 15 Jeff Lowery CLA 2006-03-08 17:47:17 EST
Since this bug has a fairly high number of votes, how about changing the version info so that it has higher visibility?
Comment 16 Mihai Cazac CLA 2007-05-07 13:44:42 EDT
(In reply to comment #12)
> Workaround that seems to work in Eclipse 3.1.1:

It works also for net.sourceforge.texlipse_1.1.0\plugin.xml in Eclipse 3.2.2
Comment 17 Krzysztof Daniel CLA 2007-05-22 03:04:04 EDT
I have looked into the code.

It will require modifications of ListSelectionDialog (not intended for subclassing).

I think the general add/edit/remove mechanism for this dialog could be developed here.

Mike, what do you think?
Comment 18 StuartGriffin CLA 2007-11-21 04:13:33 EST
This is a long standing problem, and it appears you can no longer define your own filters in Eclipse 3.4.
Comment 19 Andrey Loskutov CLA 2008-04-07 17:00:33 EDT
Created related bug 226046 for common navigator. According to bug 208693 comment 3, Navigator view should be deprecated and we should request new features for "Project Explorer" view.
Comment 20 Wylie van den Akker CLA 2011-01-28 21:21:59 EST
At the risk of reviving a dead thread and recognizing that Navigator is deprecated; custom filters can still by added by 

1. unpacking the eclipse\plugins\org.eclipse.ui.ide_3.6.x.xxxxxxxxxxx-xxxx.jar
2. editing the plugins.xml file per Tim Hunt's 2006-02-12 16:32:03 EST comment (see above) 
3. repacking the jar file and restarting eclipse.
Comment 21 Mickael Istria CLA 2014-06-26 09:09:31 EDT
Isn't it a dup of bug 226046 ?
Comment 22 Mickael Istria CLA 2019-02-01 11:09:54 EST
Marking as WONTFIX, since Navigator is deprecated and bug 226046 covers it for Project Explorer.