Programmatically switch workspace [message #1707940] |
Thu, 10 September 2015 16:28 |
Artemis Papakonstantinou Messages: 8 Registered: November 2014 |
Junior Member |
|
|
Hi everyone,
I am developing my own Eclipse product and I need to switch workspace
User selects the new worskpace and I am writting the path to the Eclipse.ini file with the -data option e.g.
-data
<full_path_to_new_workspace>
Then I use PlatformUI.getWorkbench().restart(false); to restart the workbench
false is used to restart the workbench with the same command line as used for the previous launch, as indicated at the restart function description.
At Windows (7, 64 bit) this works perfectly.
Eclipse is restarted in the new workspace.
But in linux (ubuntu 14.04, 64 bit) the old workspace is loaded after restart.
It is like Eclipse.ini file is not read during restart.
But if I close my application and start it again, the -data option is taken into account and the new workspace is loaded.
Do you have any workaround to propose?
I did not find a way to "force" Eclipse read Eclipse.ini at restart
Thanks in advance for your help!
|
|
|
Powered by
FUDForum. Page generated in 0.02139 seconds