| Summary: | [Navigator] - User defined filter patterns (1GD0GKE) | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Simon Arsenault <simon_arsenault> |
| Component: | UI | Assignee: | 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.0 | Keywords: | 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
PRODUCT VERSION: Build 101 - JDK on NT 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. No time to do this for release 2.0 Maybe someone from the community will be interested in doing this? Reopen for investigation Bug 13980 is related. It requests Navigator working set selection to work like in Package Explorer. *** Bug 2253 has been marked as a duplicate of this bug. *** 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.
Reassigning to Nick since he is taking ownership of Navigator *** Bug 54387 has been marked as a duplicate of this bug. *** *** Bug 77903 has been marked as a duplicate of this bug. *** *** Bug 102197 has been marked as a duplicate of this bug. *** 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. Interesting workaround but potentially user error prone. Still could use this as an official feature 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? Since this bug has a fairly high number of votes, how about changing the version info so that it has higher visibility? (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 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? This is a long standing problem, and it appears you can no longer define your own filters in Eclipse 3.4. 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. 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. Isn't it a dup of bug 226046 ? Marking as WONTFIX, since Navigator is deprecated and bug 226046 covers it for Project Explorer. |