Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Own Navigator and closed projects(Does closed projects have no nature?)
Own Navigator and closed projects [message #533041] Wed, 12 May 2010 05:51 Go to next message
Alexander Mack is currently offline Alexander MackFriend
Messages: 100
Registered: July 2009
Senior Member
Hello,
we have our own navigator view which only shows project with an nature we defined, too. Everything works fine so far. But if I close a project it will disappear in the navigator view.
It seems that closed projects have no nature (but the nature still exists in the project looking at the .project file).

I defined the navigator content via the plugin.xml file:

<filterExpression>
      	<not>
      		<or>
      			<instanceof value="xy.navigator.DiagramTreeData"/>
      			<adapt type="org.eclipse.core.resources.IProject">
	            	<test
	                  forcePluginActivation="true"
	                  property="org.eclipse.core.resources.projectNature"
	                  value="xy.MyNature">
           	 		</test>
         		</adapt>
      		</or>
      	</not>
      </filterExpression>



What I want is that the navigator shows all projects with "MyNature", no matter if they are closed or not!?!

Thanks for any help.

Best regards
Alex

[Updated on: Wed, 12 May 2010 05:51]

Report message to a moderator

Re: Own Navigator and closed projects [message #533042 is a reply to message #533041] Wed, 12 May 2010 05:54 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Unfortunately you can't tell very much from a closed project (because the files are simply not accessible), so there is no way to show only the closed projects with your project nature, you will either have to show all of them or none of them. I imagine there is a way to test to see if a project is closed.

Previous Topic:P2 Feature-based Product Export failing
Next Topic:Save the current status of my Views
Goto Forum:
  


Current Time: Thu Dec 18 15:33:38 GMT 2014

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

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