Common Navigator Framework: avoid showing file [message #516913] |
Thu, 25 February 2010 14:08 |
|
Hi,
I have a custom model navigator (CNF-based) which shows only my EMF model object; I've introduced some intermediary non-model object, for grouping purpose. Now I want to avoid displaying the project file, but instead I wanna go directly to display the contents: any suggestion about this?
Regards,
Giovanni.
|
|
|
Re: Common Navigator Framework: avoid showing file [message #519752 is a reply to message #516913] |
Tue, 09 March 2010 20:46 |
|
Quote: | ...Now I want to avoid displaying the project file...
|
Do you mean you want to hide the .project file? If so, you can do that by adding a contentExtension to your navigator definition in plugin.xml:
<extension
point="org.eclipse.ui.navigator.viewer">
<viewer
viewerId=".....view">
</viewer>
<viewerContentBinding
viewerId="com.exo.seas.navigator.view">
<includes>
...
<contentExtension
pattern="org.eclipse.ui.navigator.resources.filters.*">
</contentExtension>
...
</includes>
</viewerContentBinding>
...
</extension>
This is how we did it. You can supposedly get more specific about which filters you want applied from org.eclipse.ui.navigator.resources.filters (instead of all of them, like the example above). Got the info from here when we wrote ours:
http://scribbledideas.blogspot.com/2006/05/building-common-n avigator-based-viewer.html
|
|
|
|
Powered by
FUDForum. Page generated in 0.03127 seconds