How to get projects list in eclipse

Some methods are really tidy and powerfull in eclipse, but a big problem is when I want to use them I ofen forget how to use them.
Here is the method to get the projects list of current workspace.

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



你可能感兴趣的:(eclipse)