Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » EMF EditingDomain in GEF Editor
EMF EditingDomain in GEF Editor [message #619940] Mon, 16 August 2010 14:36 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: August 2010
Junior Member
Hi,

I'm using EMF and GEF to visualize and edit a model.

The EMF.Editor provides the standard tree editor and the GEF editor is in use to have a graphical view on the same model and to edit it, e.g. with the palette.

The goal is to use the both editors independently , therefore both can access the file which includes the model data.

If both editors may be open, they are supposed to register as a listener to the CommandStack included by the EditDomain(GEF) or EditingDomain(EMF) of the other editor, so changes made in one editor are transmitted to the other one and replicate the command on the CommandStack there. (Undo and redo should be realized this way.)

One problem I focus now is to write the changes made in the GEF Editor to the data model without using the EMF.Editor, so it has not be opened.

Is there a possibility to add an EMF EditingDomain (to access the underlying model) in the GEF Editor and synchronize it with the one in EMF Editor, if this will be opened?

Can I use a TransactionalEditingDomain for both editors to administrate the model? Of course I would use a extra EditDomain for graphical editing in the GEF Editor.

Thanking you in anticipation
Re: EMF EditingDomain in GEF Editor [message #619941 is a reply to message #619940] Mon, 16 August 2010 17:16 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
Comments below.

jBasti@gmx.de wrote:
> Hi,
>
> I'm using EMF and GEF to visualize and edit a model.
>
> The EMF.Editor provides the standard tree editor and the GEF editor is
> in use to have a graphical view on the same model and to edit it, e.g.
> with the palette.
> The goal is to use the both editors independently , therefore both can
> access the file which includes the model data.
Wouldn't a single integrated editor be better?
>
> If both editors may be open, they are supposed to register as a
> listener to the CommandStack included by the EditDomain(GEF) or
> EditingDomain(EMF) of the other editor, so changes made in one editor
> are transmitted to the other one and replicate the command on the
> CommandStack there. (Undo and redo should be realized this way.)
It sounds more like you should have a shared editing domain. That issue
is discussed in the context of GMF quite frequently...
>
> One problem I focus now is to write the changes made in the GEF Editor
> to the data model without using the EMF.Editor, so it has not be opened.
You've looked at the red book about EMF/GEF intergration?
> Is there a possibility to add an EMF EditingDomain (to access the
> underlying model) in the GEF Editor and synchronize it with the one in
> EMF Editor, if this will be opened?
The red book talks about how to integrate the two command frameorks;
GEF's is a modified version of the originally shared EMF one. :-(
>
> Can I use a TransactionalEditingDomain for both editors to
> administrate the model?
That's what GMF does yes.
> Of course I would use a extra EditDomain for graphical editing in the
> GEF Editor.
>
> Thanking you in anticipation
>
Previous Topic:EMF EditingDomain in GEF Editor
Next Topic:Re: Authoritative Ecore metamodel definition?
Goto Forum:
  


Current Time: Sat Oct 25 19:06:53 GMT 2014

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

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