Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically switch workspace
Programmatically switch workspace [message #1707940] Thu, 10 September 2015 16:28
Artemis Papakonstantinou is currently offline Artemis PapakonstantinouFriend
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!

Previous Topic:java.lang.NullPointerException when using Java deep-clone library in Eclipse plug-in
Next Topic:Plugin installed but not loaded
Goto Forum:
  


Current Time: Fri Apr 19 09:48:42 GMT 2024

Powered by FUDForum. Page generated in 0.02139 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top