How do you organize 100+ projects in Eclipse?

纵饮孤独 提交于 2019-12-03 04:35:46

If these projects are completely independent from each other, I would create separate workspaces, one workspace for each set of projects that are connected and cannot be built on their own. Is there a reason you don't want to split to multiple workspaces? I'm pretty sure this is how Eclipse was intended to be used in this case. I've done it many times and find it to be a good solution.

The way I work with my hundreds of projects is this:

  • I have one big workspace where I have most of my projects. These projects are all tangentially related. I separate them into working sets. I tend to only show the working sets of the projects that I am working on currently. All other projects are closed.
  • Then I have a few more eclipse workspaces where I keep side projects that are completely independent from the big workspace. The eclipse installations for my side projects are usually different from the installation used by my big workspace because they are customized for the work required by the side project.

For example, my big workspace uses SpringSource Tool Suite, but my side-project workspaces are vanilla Eclipse with m2eclipse installed.

I find that this works well as long as I don't have too many projects opened at once in my big workspace.

  1. File – New – Java Working Set
  2. Add related projects into the working set.
  3. Repeat till most/all projects are in relevant working sets.
  4. In Package Explorer, click view menu (the downward facing triangle icon), Top Level Elements – Working Sets.
  5. Drag and drop reorder the working sets

In fact there is no problem in using single workspace even when there are large number of projects.

Ways to improve performance

  • On Project Explorer View right click on the unused project and choose 'close project` from context menu
  • Uncheck Build Automatically from Project menu

Way to reduce the clutter

  • Use Working Set to drill down to the specific set of projects.

    Window - > Show View -> Navigator
    

Select the submenu (down arrown button) on Navigator view and select the Select Working Set. Then create a working set by selecting the New button. Select Resource on the new popup window and select the projects that you wish to currently work on. Navigator view only show these projects.You can switch between different working sets whenever you felt the need.

Hope the answer will help you.

I'm a Java web developer. Not all of our production servers have the same version of java. So, I make separate work spaces for each java version.

So, the defaults for one work space is Java 1.5, and another one is Java 1.6. And I have a separate work space for personal games I'm developing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!