How does Project Explorer finds the root project #3094
-
Apologies if this is a basic question, but I’m curious— Given a set of IProjects imported from a multi-module project, how does the Project Explorer determine which one is the root project? Does it rely on the path structure or something else? |
Beta Was this translation helpful? Give feedback.
Answered by
mickaelistria
Jul 8, 2025
Replies: 1 comment 8 replies
-
Yes, it does. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.