Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Are draw2d objects turned into modeled objects?
Are draw2d objects turned into modeled objects? [message #756056] Thu, 10 November 2011 17:03 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi all,

As far as I understood, e4 is based on the idea of a fully modeled UI +
a renderer. So that, from a customer point of view, SWT does not exist
anymore, but instead, we have a model that is then rendered with SWT.
The compatibility layer turns SWT code into a model.
Am I right so far?

If yes, then my question comes to draw2d. Has the same trick be
implemented for draw2d ?

Thanks in advance.
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
Re: Are draw2d objects turned into modeled objects? [message #756180 is a reply to message #756056] Fri, 11 November 2011 12:00 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Am 10.11.11 18:03, schrieb Mickael Istria:
> Hi all,
>
> As far as I understood, e4 is based on the idea of a fully modeled UI +
> a renderer. So that, from a customer point of view, SWT does not exist
> anymore, but instead, we have a model that is then rendered with SWT.

Yes but the rendering stops a the Part-Bounderies so inside the
Part-Instance you'll have to decide in which UI-Technology you are
running and your (SWT)Java-Code is executed. All the framework passes
you is a part you can draw your self on (for SWT a Composite, for Swing
it would be a JPanel, for JavaFX a Parent, ... => this belongs to the
rendering engine creating the workbench layout).

If you want to see none SWT in action I can point you to:
https://github.com/tomsontom/e-fx-clipse/tree/master/at.bestsolution.efxclipse.runtime.workbench.renderers

who implement the rendering using JavaFX, but naturally then one also
has to implement the inner stuff using JavaFX as well.

The code in https://github.com/tomsontom/emfdatabinding-tutorial is a
bit older but you see there the same UI implemented 3 times. I've
started long ago a project called UFaceKit which would all to write such
forms once and run under different UI-Systems but that didn't made to
final stages.

> The compatibility layer turns SWT code into a model.
> Am I right so far?

The compat layer translates extension points like view, editor, ... into
model elements but not SWT.

>
> If yes, then my question comes to draw2d. Has the same trick be
> implemented for draw2d ?
>

I'm not sure about which trick you are talking here. draw2d is normally
only part of the area Eclipse 4 has handed over control to you custom code.

> Thanks in advance.
Previous Topic:Problems migrating GEF application to e4
Next Topic:Starting birt from e4 application
Goto Forum:
  


Current Time: Tue Apr 23 12:09:35 GMT 2024

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

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

Back to the top