Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » permanent synchronizing GMF and EMF-Editor that use the same file as modelfile.
permanent synchronizing GMF and EMF-Editor that use the same file as modelfile. [message #57371] Fri, 29 September 2006 07:04 Go to next message
Alexander Haag is currently offline Alexander HaagFriend
Messages: 119
Registered: July 2009
Senior Member
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 #58268 is a reply to message #57371] Mon, 02 October 2006 13:45 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Alex,

Please try reading newsgroup archive - this question was discussed a numer
of times in past. For example:

http://www.eclipse.org/search/search.cgi?q=gmf+shared+editin g+domain&cmd=Search%21&form=extended&wf=574a74&a mp;ps=10&m=all&t=5&ul=&wm=wrd&t=News& ;t=Mail

or

http://www.eclipse.org/search/search.cgi?q=gmf+synchronizati on&cmd=Search%21&form=extended&wf=574a74&ps= 10&m=all&t=5&ul=&wm=wrd&t=News&t=Mai l

-----------------
Alex Shatalin
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 13:59 Go to previous message
Eclipse UserFriend
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
Previous Topic:Pulling attribute from a referenced object
Next Topic:Bug in Ecore Editor, assotiation between Eclass and EEnum
Goto Forum:
  


Current Time: Sat Oct 19 11:49:57 GMT 2024

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

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

Back to the top