Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Problems migrating GEF application to e4
Problems migrating GEF application to e4 [message #754971] Sun, 06 November 2011 02:22 Go to next message
Anders Forsell is currently offline Anders Forsell
Messages: 120
Registered: July 2009
Senior Member
Hello,

I am trying to migrate an RCP application that is using EMF and GEF to e4 (Eclipse 4.1.1).
I realized that GEF has a dependency to org.eclipse.ui.workbench, bundle-version="[3.2.0,4.0.0)", preventing it to be used without the compatibility layer.

The problem is I don't know how to make the GEF part use the compatibility layer and the other views, such as the EMF model tree and property view, to be normal e4 parts.
Is it even possible? Will I face limitations in how the views can communicate using the selection service, etc.

Thanks in advance for any help,

Anders
Re: Problems migrating GEF application to e4 [message #755237 is a reply to message #754971] Mon, 07 November 2011 13:36 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

the compat layer is somewhere around 3.100.0 or 3.200.0, we didn't bump it up to 4.0.0 because it doesn't break API (well, not really Smile

If you run on Eclipse SDK 4.1 or Eclipse SDK 4.2 (the milestone releases) you'll get the compatibility layer.

PW


Re: Problems migrating GEF application to e4 [message #755586 is a reply to message #755237] Tue, 08 November 2011 16:12 Go to previous messageGo to next message
Anders Forsell is currently offline Anders Forsell
Messages: 120
Registered: July 2009
Senior Member
Ok, I tried adding my GEF editing view as a "part" in Application.e4xmi?
I got a NPE in "getSite()" and understand that the IEditorPart is not initialized correctly.

Can an editor/view that uses the compat layer coexist with "e4" parts defined in Application.e4xmi? And if so how do I declare that in the model?

Will things like old selection providers work seamlessly with the new selection service?

Thanks,

Anders
Re: Problems migrating GEF application to e4 [message #755728 is a reply to message #755586] Wed, 09 November 2011 06:53 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
If you want to use E3.x parts, you need to use the compatibility layer The E4AP is not in itself backwards compatible with the E3.x model.
Re: Problems migrating GEF application to e4 [message #755875 is a reply to message #755728] Wed, 09 November 2011 17:43 Go to previous messageGo to next message
Anders Forsell is currently offline Anders Forsell
Messages: 120
Registered: July 2009
Senior Member
Ok, as I understand it I really have to use the compatibility layer to run my RCP 3.x application will all its' views and editor defined in plugin.xml.
It's a pity that GEF is not ported to e4, the remaining views would easily be portable to e4.

What limitations will I have running through the compatibility layer with respect to CSS styling, dependency injection, etc. ?
Re: Problems migrating GEF application to e4 [message #755907 is a reply to message #755875] Thu, 10 November 2011 01:59 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5282
Registered: July 2009
Senior Member
Am 09.11.11 23:43, schrieb Anders Forsell:
> Ok, as I understand it I really have to use the compatibility layer to
> run my RCP 3.x application will all its' views and editor defined in
> plugin.xml.
> It's a pity that GEF is not ported to e4, the remaining views would
> easily be portable to e4.
>
> What limitations will I have running through the compatibility layer
> with respect to CSS styling, dependency injection, etc. ?
>

None really:
* CSS is equal to e4
* DI can be used with the e4 bridge
See
* http://tomsondev.bestsolution.at/category/eclipse/e4/
*
http://tomsondev.bestsolution.at/2011/06/10/how-to-apply-the-e4-programming-model-to-3-x/
*
http://tomsondev.bestsolution.at/2011/07/01/eclipse-4-1-run-your-3-x-rcp-in-4-1/

Tom
Previous Topic:How get width and height of a part
Next Topic:Are draw2d objects turned into modeled objects?
Goto Forum:
  


Current Time: Fri Aug 22 06:02:50 EDT 2014

Powered by FUDForum. Page generated in 0.02534 seconds