Eclilpse Modeling Framework Support

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Eclilpse Modeling Framework Support

Postby derrydavis » Mon May 14, 2007 7:17 pm

How do I merge forms created in SWT Designer into an EMF generated editor? I would like to take custom forms and replace and/or extend the multi page editor forms generated by EMF.
Thanks in advance,
Derry
derrydavis
 
Posts: 3
Joined: Mon May 14, 2007 6:19 am

Re: Eclilpse Modeling Framework Support

Postby Eric Clayberg » Tue May 15, 2007 2:49 am

derrydavis wrote:How do I merge forms created in SWT Designer into an EMF generated editor? I would like to take custom forms and replace and/or extend the multi page editor forms generated by EMF.

I have never seen a form generated by EMF.

Is there something unique about them that prevents you from doing this now?

If you are having a problem doing this, you shold post an example of what you have tried and describe why it isn't working.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby derrydavis » Tue May 15, 2007 7:39 am

Hi Eric,
Thanks for the reply.
I have never seen a form generated by EMF.

EMF actually generates an Eclipse ui editor based on an Ecore model input (which I'm generating from an XSD schema). As far as I can tell there is not a specific form class for the editor. Rather the editor creates a jface viewer with a composite and a treeviewer within the editor code itself. It then binds this code to an adapter factory editing domain.
Is there something unique about them that prevents you from doing this now?

I think this is unique in that we're trying to take custom built forms and bind them into an editor generated by Eclipse, specifically EMF.
you shold post an example of what you have tried and describe why it isn't working

If I take this tutorial as an example> Generate an EMF model using XML Schema (XSD)http://dev.eclipse.org/viewcvs/indextools.cgi/org.eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html
I've tried to bind a custom form built using swt-designer into the resultant editor java class. What I'm unable to get working is binding the editing domain data to the various controls within the custom form(s) (instead of a treeview 'form' as supplied by the editor).
Hope this makes sense.
derrydavis
 
Posts: 3
Joined: Mon May 14, 2007 6:19 am

Postby Eric Clayberg » Tue May 15, 2007 9:51 am

derrydavis wrote:I've tried to bind a custom form built using swt-designer into the resultant editor java class. What I'm unable to get working is binding the editing domain data to the various controls within the custom form(s) (instead of a treeview 'form' as supplied by the editor). Hope this makes sense.

Unfortunately not. I don't know anything about EMF, so I really have no idea what you are trying to do or how to make it work. Have you posted your question to the Eclispe EMF newsgroup? The code that SWT Designer generates is pure SWT/JFace/RCP code identical to what you might write by hand. That implies that the same issue with EMF would exist regardless of whether you were using SWT Designer or not. If EMF has some means to bind (whatever that means in this context) a custom form to the code that it creates, the process should be the same whether you create the custom form by hand or use SWT Designer. Since you are trying to hook into the EMF framework, instructions for how to do this should naturally come from the EMF team (assuming that it is possible).
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests