Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to reuse Eclipse3.x workbench on Eclipse4 platform(How to reuse Eclipse3.x workbench on Eclipse4 platform)
How to reuse Eclipse3.x workbench on Eclipse4 platform [message #1806380] Wed, 08 May 2019 09:34 Go to next message
xin zhang is currently offline xin zhangFriend
Messages: 5
Registered: April 2019
Junior Member
Our RCP application is upgrade from Eclipse 3.x to Eclipse4, When using Eclipse3.x, we created a lot of customized perspectives, as I know, there are stored in the org.eclipse.ui.workbench.prefs, but after upgrading to Eclipse4, those customized perspective is not reused because Eclipse4 store all the customized perspective under org.eclipse.e4.workbench

So the question is how we could reuse those customized perspective created in Eclipse3.x under the new Eclipse4 platform.
Re: How to reuse Eclipse3.x workbench on Eclipse4 platform [message #1806401 is a reply to message #1806380] Wed, 08 May 2019 13:34 Go to previous messageGo to next message
Eclipse UserFriend
So there are some facilities to migrate legacy workbenches to Eclipse 4. There's also an import/export perspective handler in org.eclipse.ui.internal.registry.ImportExportPespectiveHandler.
Re: How to reuse Eclipse3.x workbench on Eclipse4 platform [message #1806523 is a reply to message #1806401] Fri, 10 May 2019 07:03 Go to previous message
xin zhang is currently offline xin zhangFriend
Messages: 5
Registered: April 2019
Junior Member
Thanks for your hint, finally I resolve the issue in below way.

1. write 2 simple RCP application, one application is based on Eclipse3.4.2 for export the workspace's preference, another application is based on Eclipse4.6.3 for import the workspace's preference.

2. The code for the application based on Eclipse3.4.2 is as below, in this way, I can export old workspace's preference.

IWizard wizard = new PreferencesExportWizard();
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
dialog.open();

3. The code for the application based on Eclipse4.6.3 is as below, in this way, I can import old workspace's preference to the new workspace.

IWizard wizard = new PreferencesImportWizard();
WizardDialog dialog = new WizardDialog(Display.getCurrent().getActiveShell(), wizard);
dialog.open();
Previous Topic:How to disable calling viewPart.saveState at some interval
Next Topic:Eclipse RCP 3.x to 4.8 migration
Goto Forum:
  


Current Time: Thu Dec 26 18:38:13 GMT 2024

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

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

Back to the top