Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » How do I implement complex model changes via EOperations?
How do I implement complex model changes via EOperations? [message #61458] Thu, 12 October 2006 08:38 Go to next message
Eclipse UserFriend
Hello,

I have a question concerning complex model changes via an EOperation and
generally about multiple view support of GMF.

Let's take the mindmap tutorial as example: If I create both the
EMF-Editor and the GMF-Editor the EMF-Editor displays the changes. But
if I change something in the EMF-Editor the GMF-Editor doesn't "see" the
changes until I reload the model file.

Does GMF allow synchronisation with model changes made by another editor
or is this a general constraint? If it allows multiple views, how do I
generally implement them?

So, if I have a complex model change one of my EOperation performs, how
do I implement this? My first approach was to build an action that
affects directly the semantic-model. Unfortunately a TransactionManager
seems to cancel this operation. I took a look at the Requests in
org.eclipse.gmf.runtim.diagram.ui.requests but at a first glance there
seemed to be no obvious choice for such a request. What would be a
general approach to realize such a complex change operation?

Thanks and greetings,
Alexander
Re: How do I implement complex model changes via EOperations? [message #62122 is a reply to message #61458] Fri, 13 October 2006 08:49 Go to previous messageGo to next message
Eclipse UserFriend
Hello Alexander,

> Let's take the mindmap tutorial as example: If I create both the
> EMF-Editor and the GMF-Editor the EMF-Editor displays the changes. But
> if I change something in the EMF-Editor the GMF-Editor doesn't "see"
> the changes until I reload the model file.
Please search i the newsgroup. There was a number of posting concerning
synchronization of GMF diagrams with each other. The same ideas could be
used to handle synchronization of the GMF diagram with EMF-generated editor
contents.

-----------------
Alex Shatalin
Re: How do I implement complex model changes via EOperations? [message #62645 is a reply to message #62122] Sun, 15 October 2006 10:23 Go to previous message
Eclipse UserFriend
Thank you very much. Didn't look close enough ...

Alexander

Alex Shatalin schrieb:
> Hello Alexander,
>
>> Let's take the mindmap tutorial as example: If I create both the
>> EMF-Editor and the GMF-Editor the EMF-Editor displays the changes. But
>> if I change something in the EMF-Editor the GMF-Editor doesn't "see"
>> the changes until I reload the model file.
> Please search i the newsgroup. There was a number of posting concerning
> synchronization of GMF diagrams with each other. The same ideas could be
> used to handle synchronization of the GMF diagram with EMF-generated
> editor contents.
>
> -----------------
> Alex Shatalin
>
>
Previous Topic:"load resource" from editor canvas fails
Next Topic:Multiple EOpposite?
Goto Forum:
  


Current Time: Wed Jun 18 02:30:11 EDT 2025

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

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

Back to the top