Reputation: 91
How to open two workspace in eclipse. When I am truing to open another workspace, it is closing the previous workspace and opening new one. Same action is being performed when I am switching the workspace,
Upvotes: 1
Views: 5347
Reputation: 16271
The comment and answer shared by @howlger is correct. The -data
parameter is the key and solution to accomplish the goal
For simplicity - considering we have a script file (.sh)
Therefore for Mac is:
$STS_HOME/SpringToolSuite4.app/Contents/MacOS/SpringToolSuite4 -data ${WORKSPACE_DIRECTORY}
Windows is:
$STS_HOME%/SpringToolSuite4 -data ${WORKSPACE_DIRECTORY}
Be sure to prior execute in the terminal the bash
command to load the git bash - btw git must be defined in the PATH
Therefore with just one STS installation you are able to open multiple instances where each one is working with a custom and specific (different) workspace specified through the -data
parameter
Upvotes: 2