Migrating RCP application with multiple perspectives to e4 [message #798433] |
Tue, 14 February 2012 12:40  |
Eclipse User |
|
|
|
I have been following the development of e4 in the blogs and have decided that it was time to get my feet wet. So far I have run my application using the e4 compatibility mode (thanks Tom), and have experimented with native e4 tutorials (thanks Lars).
The next logical step would be to create a hybrid implementation similar to the eclipse 4.2 implementation. I was not successful in searching for documentation on how to do this, so I have been using the e4 tooling and digging around in the e4 code base looking for clues. I have figured out a few things but still have a lot to learn. It would be very helpful is someone could point out some documentation on how to build hybrid application, and places in the e4 code base that I should study. I am particularly interested in how menus and perspectives are handled.
Thank you,
GB
|
|
|
|
Re: Migrating RCP application with multiple perspectives to e4 [message #800090 is a reply to message #799163] |
Thu, 16 February 2012 12:21   |
Eclipse User |
|
|
|
Thanks Lars, but this is helpful, but what I am looking for.
I am assuming that Eclipse 4.2 is using E4AP because you can look at the live model, but you can't for application running under compatibility mode.
I adding a 3.x plugin to a E4AP project to see what was automatically adapted, and noticed Commands are added to the live model, but not Menus, Views, or Perspectives. Which brought me to the conclusion that some custom code was required for the JDT and other UI projects to work with 4.2.
In the absence documentation (which I understand is normal at this state of product development) it would be useful to look at how another project interfaced to the E4AP. Given the size of the code base, I would be very appreciative if someone would save me and everyone else reading this forum a lot of time by pointing to a starting place in the code.
Regards,
GB
|
|
|
|
Re: Migrating RCP application with multiple perspectives to e4 [message #800239 is a reply to message #800090] |
Thu, 16 February 2012 16:10   |
Eclipse User |
|
|
|
Yes 4.2 is using E4AP under the covers - the team has rewritten
org.eclipse.ui.workbench to call the E4AP that's exactly the compat mode
you are talking about.
So you can look at the live model in compat mode the Eclipse 4.2 SDK
(together with JDT/PDE) is running on it.
If you add 3.x plugins you need to launch your application with compat
mode to get Views, Editors, ... recognized. IIRC the commands are
translated by the E4AP by default because the command handler system of
e4 is built on top of the old one.
Tom
Am 16.02.12 18:21, schrieb Greg Babcock:
> Thanks Lars, but this is helpful, but what I am looking for.
> I am assuming that Eclipse 4.2 is using E4AP because you can look at the
> live model, but you can't for application running under compatibility
> mode.
> I adding a 3.x plugin to a E4AP project to see what was automatically
> adapted, and noticed Commands are added to the live model, but not
> Menus, Views, or Perspectives. Which brought me to the conclusion that
> some custom code was required for the JDT and other UI projects to work
> with 4.2.
> In the absence documentation (which I understand is normal at this state
> of product development) it would be useful to look at how another
> project interfaced to the E4AP. Given the size of the code base, I
> would be very appreciative if someone would save me and everyone else
> reading this forum a lot of time by pointing to a starting place in the
> code.
>
> Regards,
>
> GB
>
|
|
|
|
|
|
Re: Migrating RCP application with multiple perspectives to e4 [message #809063 is a reply to message #800973] |
Tue, 28 February 2012 07:54  |
Eclipse User |
|
|
|
To run any 3.x plugins or RCP apps, you would run with the 4.2 Workbench. org.eclipse.ui and org.eclipse.ui.workbench provide a bridge for the Workbench services (progress, wizards, perspective extensions, etc) to the underlying Eclipse 4 architecture (modelled workbench and DI).
You can take a 3.x RCP app and run it on 4.2, but you would need to add some extra plugins to your launch config (like org.eclipse.equinox.ds which can't be found by dependency analysis. There are a few others) or by including the org.eclipse.e4.rcp feature (which provides most of the 4.2 Workbench and services).
You cannot run an Eclipse 4 application (like the e4 contacts or photo demo) and hook in 3.x views and perspectives, for example.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.04316 seconds