Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » CNF: Project has always children
CNF: Project has always children [message #882525] Wed, 06 June 2012 12:24 Go to next message
Eclipse UserFriend
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 12:53] by Moderator

Re: CNF: Project has always children [message #884255 is a reply to message #882525] Sun, 10 June 2012 12:13 Go to previous messageGo to next message
Eclipse UserFriend
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 11:45 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 22:22:35 EDT 2025

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

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

Back to the top