Multiple workspaces¶
Why?¶
Why would any one like to have multiple workspaces?
Why? is the most boring question. How is what we should look forward to. But for the impatient, here are possible reasons why multiple workspaces are a good idea.
Project Name¶
Eclipse has a severe limitation. It can not have two projects of the same name in one instance/workspace. If you are working on different versions or branches of the same project, Eclipse would not allow you to keep them in workspace. Under such situation, you would like to have different workspaces.
Too Much Clutter¶
Possibly, you are a very big fan of Eclipse and you would create every project in eclipse. If your default eclipse installation has many projects, you may choose to group projects and make them part of differnt workspaces.
Workspace settings¶
Few settings are stored by default in workspace. If you are working on different project with differnt requirements, you may choose to use Different Workspace.
e.g. Eclipse settings on using White Spaces is stored in workspace. If your projects use different settings, it would be advisable to use differnt workspace for these projects.
Set workspace via Command Line¶
The command line parameter for workspace is --data
If you run eclipse as eclipse -data d:\eclipse.workspace, Eclipse would start using the workspace as d:\eclipse.workspace
Create a Desktop shortcut for Workspace¶
If you want to create Windows Shortcut to start eclipse with default shortcut,
- Right Click on the Windows Desktop
- Select New ‣ Shortcut
- Select Browse. Point to the Eclipse executable
- Add -data D:\eclipse.workspace2
The newly created shortcut will use D:\eclipse.workspace2 as the default workspace.
Create preferences to use a default workspace¶
You can either choose a default workspace, or let Eclipse ask you every time to choose a workspace (if you do not specify which workspace to be used).
Eclipse preferences to select startup workspace behaviour
Note
Feel free to Contact the author if you have any questions regarding this topic.
Buy eBook
