Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Common Navigator Framework: avoid showing file
Common Navigator Framework: avoid showing file [message #516913] Thu, 25 February 2010 14:08 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

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 Go to previous messageGo to next message
Joey Mink is currently offline Joey MinkFriend
Messages: 87
Registered: July 2009
Location: Centreville, VA, USA
Member

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
Re: Common Navigator Framework: avoid showing file [message #519877 is a reply to message #519752] Wed, 10 March 2010 10:32 Go to previous message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi Joel,

thank you for the answer, but I explained my problem in a wrong way; in the GMF-generated Project Explorer I wanna hide the domain model file (the XMI Resource), just starting displaying the contents of file itself.

Thank you anyway, regards

Giovanni.
Previous Topic:PDE headless build using features fails with optional plug-ins
Next Topic:Common Navigator Framework: avoid showing file
Goto Forum:
  


Current Time: Wed Apr 24 23:24:25 GMT 2024

Powered by FUDForum. Page generated in 0.03127 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top