Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CNF: Project has always children
CNF: Project has always children [message #882525] Wed, 06 June 2012 16:24 Go to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
Hello,

I am trying to create my own CNF content and it works so far, but I don't get it working, that a empty project doesn't get the "child" symbol.

In my hasChildren method I return false to test the system.

Thanks for any advices.

[Updated on: Wed, 06 June 2012 16:53]

Report message to a moderator

Re: CNF: Project has always children [message #884255 is a reply to message #882525] Sun, 10 June 2012 16:13 Go to previous messageGo to next message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
It seems that the parent ContentProvider always returns true.
Is the only solution to create a own ContentProvider for all resources?
Re: CNF: Project has always children [message #884683 is a reply to message #882525] Mon, 11 June 2012 15:45 Go to previous message
John M. is currently offline John M.Friend
Messages: 198
Registered: July 2010
Senior Member
The class org.eclipse.ui.internal.navigator.resources.workbench.ResourceExtensionContentProvider is responsible for the "incorrect" input.
Extending isn't possible, because it is an internal class. You can extend the WorkbenchContentProvider, but there are a lots of stuff missing like the automatic refresh of the navigator or the correct sorting, that means the folders are listed with the files and not seperated at the top of the list.
Previous Topic:Error when clicked on Deployment Assembly item
Next Topic:selecting application server
Goto Forum:
  


Current Time: Tue Mar 19 07:51:10 GMT 2024

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

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

Back to the top