Show packages and java classes in tree structure in Elicpse plugin

167 views Asked by At

I want to show all projects in workspace in tree-structure.

I have created plugin from 'Hello World' template. First node of Tree should contain 'project name', children of this node will be list of packages and children of packages will be java classes of that packages. I want do some operation when user clicks on leaf node(i.e. java class).

I got list of projects from workspace by this

IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();

Now I really dont know how to access packages and java classes from here and show them in tree.

0

There are 0 answers