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

Bug 327596

Summary: [CommonNavigator] Common filter with filter expression stopped working in eclipse 3.6
Product: [Eclipse Project] Platform Reporter: Garry Sager <gsager>
Component: UIAssignee: Francis Upton IV <francisu>
Status: RESOLVED WORKSFORME QA Contact: Francis Upton IV <francisu>
Severity: normal    
Priority: P3    
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Garry Sager CLA 2010-10-12 13:51:15 EDT
Build Identifier: I20100608-0911

This filter works fine in eclipse 3.4 and 3.5 but is not displayed under available customizations in eclipse 3.6 Project explorer.

<commonFilter
            activeByDefault="true"
            description="%Filter.factory.temp.description"
            id="com.bowstreet.designer.eclipse.navigator.filters.hideTempFolders"
            name="%Filter.factory.temp">
         <filterExpression>
            <instanceof value="org.eclipse.core.resources.IFolder"/>
            <test
                  forcePluginActivation="true"
                  property="org.eclipse.core.resources.name"
                  value="~temp"/>
         </filterExpression>
      </commonFilter>

Reproducible: Always

Steps to Reproduce:
1.Add this filter into a org.eclipse.ui.navigator.navigatorContent
2.open project explorer Customize view 
3.You will see this filter in eclipse 3.4 and 3.5 but it doesn't show in 3.6.0
Comment 1 Francis Upton IV CLA 2011-04-21 00:03:45 EDT
This works fine for me in 3.7 (and I have not tested it in 3.6, the CNF for 3.7 and 3.6 is pretty much identical).

Can I suggest that you make sure you have the id of your filter in the viewerContentBinding for the Project Explorer (please note that these are regular expressions and not wildcards, so for example com.bowstreet.* worked for me.

I'm going to close this, if there is any additional information that indicates this is a problem, please provide it and reopen it.