|
Re: EMF EditingDomain in GEF Editor [message #553219 is a reply to message #553141] |
Mon, 16 August 2010 17:16 |
Ed Merks Messages: 33217 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
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04013 seconds