Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Anyone used Multiple Editors on one model ?
Anyone used Multiple Editors on one model ? [message #216724] Thu, 29 January 2009 16:39 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Hello all,

I am wondering if anyone has any experience of a situation where they have a
model which can be edited by mutiple GMF editors at once ?
In our case we have a model in which we can build hierarchies of objects.
So I create Object A and Object B in a diagram. Then I choose to compose the
two and so I create Container A. If I double click Container A in the
diagram I open a new diagram which shows Object A and B.
Changes to the inside of a container can effect it.
For example Object A could have an interface which it exposes upwards so
that Container A also shows it.
In this case I have changes in one editor affecting changes in another.
(remove the interface from Object A which means it has to go from Container
A)

We are running into quite complex issues with :
Undo and redo - one stack per editor or per model and so across mutiple
editors ?
Conflicting changes being made across editors ?


Any help appreciated

thanks,
Re: Anyone used Multiple Editors on one model ? [message #216960 is a reply to message #216724] Fri, 30 January 2009 15:38 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Alan,

I can suggest you two different options:

one is to share EditingDomain instance across these two editors – as a result
you’ll have exactly the same instances of all the objects in both editors,
so there will be no updating problem, but undo/redo and dirty state will
be shared across these editors.

Another option is to perform synchronization between these editors on saving
via Eclipse Resources.

Both approaches has pro- and contra- s and you just have to choose how to
implement your editor. In general I think second option can be extended with
some more intelligent (domain model specific?) merging algorithm.

-----------------
Alex Shatalin
Re: Anyone used Multiple Editors on one model ? [message #217091 is a reply to message #216960] Tue, 03 February 2009 09:08 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
For the first option, you might want to have a look at
http://code.google.com/p/gmftools/wiki/SharedEditingDomain

Regards
Jan

Alex Shatalin schrieb:
> Hello Alan,
>
> I can suggest you two different options:
> one is to share EditingDomain instance across these two editors – as a
> result you’ll have exactly the same instances of all the objects in both
> editors, so there will be no updating problem, but undo/redo and dirty
> state will be shared across these editors.
>
> Another option is to perform synchronization between these editors on
> saving via Eclipse Resources.
>
> Both approaches has pro- and contra- s and you just have to choose how
> to implement your editor. In general I think second option can be
> extended with some more intelligent (domain model specific?) merging
> algorithm.
>
> -----------------
> Alex Shatalin
>
>


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Reference Ecore Model to LayoutNode
Next Topic:Shortcut for 1:1:n containment reference chains in NodeMapping/ChildReference
Goto Forum:
  


Current Time: Sat Apr 20 04:10:53 GMT 2024

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

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

Back to the top