How to reuse Eclipse3.x workbench on Eclipse4 platform [message #1806380] |
Wed, 08 May 2019 05:34  |
Eclipse User |
|
|
|
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 #1806523 is a reply to message #1806401] |
Fri, 10 May 2019 03:03  |
Eclipse User |
|
|
|
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();
|
|
|
Powered by
FUDForum. Page generated in 0.03568 seconds