Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Two instances of same diagram type for one model file
Two instances of same diagram type for one model file [message #54578] Mon, 25 September 2006 03:01 Go to next message
Eclipse UserFriend
Originally posted by: kalin.nakov.gmail.com

Hi,

I have created a model and a diagram editors in GMF, let's say MyEditor.
MyEditor works well with one diagram per model. But when I initialize a
second diagram from the same model and delete or add something there, it
gets reflected in the first diagram and also in the model itself. Is it
possible to create two diagrams of the same type for one model and have
instances in the model and only references in the diagrams, so that when
I delete a node in one diagram, it stays both in the model and the other
diagram? I want the model to be union of all diagrams.

Said in simple words I want something like the repository-based UML
tools - have one repository and many class diagrams to it. The
repository is the union of all diagrams.

Is there a native support in GMF for this, or I should create my own
implementation? If so, can you advise me where to start from?

Thanks in advance!
Re: Two instances of same diagram type for one model file [message #54819 is a reply to message #54578] Mon, 25 September 2006 05:45 Go to previous message
Eclipse UserFriend
Hello Kalin,

Try making your diagram non-synchronized (see: http://wiki.eclipse.org/index.php/GMF_GenModel_Hints#Diagram _group,
Synchronized).

-----------------
Alex Shatalin
Previous Topic:again: how to make an editPart non-resizable ?
Next Topic:Connection with Label to have enumerated values
Goto Forum:
  


Current Time: Wed May 07 22:28:04 EDT 2025

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

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

Back to the top