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();



原文地址:https://www.cnblogs.com/youngerbaby/p/515206.html