Skip to content

How does Project Explorer finds the root project #3094

Answered by mickaelistria
jdneo asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. see the various bits of logic in https://github.com/eclipse-platform/eclipse.platform.ui/tree/master/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/nested .
Trying to imagine the reason why you're asking, here is an interesting thing to note: the code here uses the Common Navigator Framework, and those bits (filters, providers...) are declared as extensions to the CNF and easily reusable by any CommonViewer; so if you're trying to build a similar tree, a good approach can be to make you tree be a CommonViewer and attach in plugin.xml the various extensions/bits of behavior you'd like it to include.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jdneo
Comment options

@mickaelistria
Comment options

Answer selected by jdneo
@jdneo
Comment options

@mickaelistria
Comment options

@jdneo
Comment options

@merks
Comment options

merks Jul 9, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants