permanent synchronizing GMF and EMF-Editor that use the same file as modelfile. [message #57371] |
Fri, 29 September 2006 03:04  |
Eclipse User |
|
|
|
Hi folks,
I'm not quite sure if this is really a gmf-question, maybe its emf, but
who knows if someone in this forum could provide help.
I've got the EMF-generated editor running to edit instances of my Model.
I've got a GMF-generated graphical editor running that uses the file of
the emf-editor as a modelfile and the instances of the emf-editor to
work with and change.(I use a selection of the emf-editor by doubleclick
to open the graphical editor with exactly this selection, using the root
of the selection as DiagramRoot and the selection's subnodes as nodes
for the diagram to display)
What i want to do now is some kind of autosave or permanent
synchronization, because I've got some viewers linked to the EMF-Editor
and showing the editor-input, that should always be uptodate.
By now synchronization only takes place if I save the current state of
the graphical editor. Is there a way to perform the save-action
programmatically without user interaction?
I'd be pleased for any help
Thanks Alex Haag
|
|
|
|
Re: permanent synchronizing GMF and EMF-Editor that use the same file as modelfile. [message #58313 is a reply to message #57371] |
Mon, 02 October 2006 09:59  |
Eclipse User |
|
|
|
Originally posted by: vcciubot.uwaterloo.ca
To extend the question, is it possible to share an editing domain between
the GMF editor and the EMF generated editor, create the editing domain on
the GMF side and pass some sort of proxy to the EMF editor?
Basically, if I wrap an EMF Command into an AbstractEMFOperation, can this
command be executed on the GMF editing domain?
thank you
vlad
On Fri, 29 Sep 2006 09:04:21 +0200, Alex Haag wrote:
> Hi folks,
>
> I'm not quite sure if this is really a gmf-question, maybe its emf, but
> who knows if someone in this forum could provide help.
>
> I've got the EMF-generated editor running to edit instances of my Model.
> I've got a GMF-generated graphical editor running that uses the file of
> the emf-editor as a modelfile and the instances of the emf-editor to
> work with and change.(I use a selection of the emf-editor by doubleclick
> to open the graphical editor with exactly this selection, using the root
> of the selection as DiagramRoot and the selection's subnodes as nodes
> for the diagram to display)
> What i want to do now is some kind of autosave or permanent
> synchronization, because I've got some viewers linked to the EMF-Editor
> and showing the editor-input, that should always be uptodate.
>
> By now synchronization only takes place if I save the current state of
> the graphical editor. Is there a way to perform the save-action
> programmatically without user interaction?
>
> I'd be pleased for any help
>
> Thanks Alex Haag
|
|
|
Powered by
FUDForum. Page generated in 0.03804 seconds