3
votes

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 context for my editor.

An example of what I need:

new file wizard
(source: martindoms.com)

The more the dialog looks like the package explorer the better. I'm really not sure how to approach this problem.

1

1 Answers

1
votes

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.