Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse logical directory grouping

Is there any way, with the Eclipse IDE, to have a "master" folder containing several related projects?

The reason I want this is because I have several Maven webapps. With Maven it is convention to have a "master" project which builds all the dependent projects. Without the ability to logically group these projects in Eclipse my project structure looks something like this:

--master-proj1
--proj1-core
--proj1-dep
--master-proj2
--proj2-core
--proj2-dep

And of course these will be sorted alphabetically making it even worse. I'd rather have a couple folder where I can store each project:

--project1
  --master
  --core
  --dep
--project2
  --master
  --core
  --dep

Is this possible?

like image 896
greg Avatar asked Dec 12 '10 23:12

greg


People also ask

How do I view a project in Eclipse?

In Eclipse, if the Project Explorer pane is not already open, click the Show View icon in the lower left corner of Eclipse, then click Project Explorer.

What is project structure in Eclipse?

Whenever you make a project inside of Eclipse, Eclipse will auto-magically create a new folder in your workspace with the same name. Inside of that folder it will create two folders: bin, and src (source). The bin folder can be ignored. This is nothing more than the folder in which Eclipse stores the .


2 Answers

You could create working sets for your top-level groups like project1 and project2 (Package Explorer View Menu -- little triangle in the upper right corner > Configure Working Sets...), configure the package explorer to view these as top-level elements (Package Explorer View Menu > Top Level Elements > Working Sets), and add the dependent projects into them (using drag and drop or Configure Working Sets...).

like image 197
Fabian Steeg Avatar answered Oct 11 '22 20:10

Fabian Steeg


A Workspace is considered to be a logical grouping of many related projects.
Right now i have 3 workspaces, one for a work in Python, one for a work with Servlets, and a "playground" :-)

Any time i run out of ideas for one work, i go File -> Switch Workspace, and do the other.

like image 24
athspk Avatar answered Oct 11 '22 18:10

athspk