Eclipse plugin - get a list of Eclipse projects and their contents in the wizard

In my Eclipse plugin application, I have a wizard to create a new file. In this wizard, I need to display the Workspace project tree, their packages and source files, similar to the Package Explorer, so that the user can select items related to my specific editor. They will not be edited in the editor itself, but they provide some context for my editor.

An example of what I need:

Create New File Wizard http://martindoms.com/scratch/newfilewizard.png

The larger the dialog box looks, the better. I am really not sure how to approach this problem.

+3
source share
1 answer

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 provides a view and start from there.

+1
source

Source: https://habr.com/ru/post/1754196/


All Articles