Common filter makes contents of unfilter projects disappearing [message #330455] |
Tue, 29 July 2008 09:51  |
Eclipse User |
|
|
|
Originally posted by: longhong1985.gmail.com
Hello. I am now using CNF to design a navigator view. I want the view to
show only a kind of IProject which contains my own IProjectNature(named
BSProjectNature). My filter is as following:
<extension
point="org.eclipse.ui.navigator.navigatorContent">
<commonFilter
activeByDefault="true"
id="org.opensuse.bs.ui.filters.hideNonBSProject"
name="Hide Non BS-Project">
<filterExpression>
<not>
<adapt
type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="org.opensuse.bs.ui.bsprojectnature">
</test>
</adapt>
</not>
</filterExpression>
</commonFilter>
</extension>
The filter works, filtering all the non-bsproject. But it also makes
bsprojects to be just IProject nodes-folders and files of a bsproject
cannot be seen in the navigator then! I don't know why...Can anyone help?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03447 seconds