Eclipse plugin - get a list of Eclipse projects and their contents in a wizard
In my Eclipse plugin application I have a wizard to create a new file. In this wizard I need to display a tree of the Workspace projects, their packages and source files, similar to the Package Explorer, so that the user can select the items that are relevant to my particular editor. They won't be edited in the editor itself, but they provide some c开发者_C百科ontext for my editor.
An example of what I need:
(source: martindoms.com)The more the dialog looks like the package explorer the better. I'm really not sure how to approach this problem.
If you need something similar to what you get in JDT, I suggest looking at the JDT code. You can use the plugin spy (included in Eclipse PDE starting with 3.4, ALT+SHIFT+F1) to find out which class and plugin is providing the view and start from there.
精彩评论