Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to store reference to the separate diagram created for given View
How to store reference to the separate diagram created for given View [message #50198] Mon, 18 September 2006 18:22
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hi,

There was a lot of discussions in this newsgroup regarding possibility to
open the contents of the deep element in separate diagram. I checked it, but
it looks like my question was not discussed yet.

So, I have a class diagram registered for uml2.Package EClass. I have
toplevel mapping for Packages as well and I was able to write custom
editpolicy to open separate diagram editor for the inner package. Thus, when
users double clicks at the package figure, I am presenting slightly
different version of generated Init Diagram File wizard, allowing to select
the file name for new diagram that will show an inner package.

Now I want to persist this information in the original diagram, just to make
sure that subsequent double click will open the same diagram again. To
achieve this I've created my own extension of runtime.notation model,
defining ad hoc LinkedDiagramStyle that has reference ref Diagram[*]
linkedDiagram. An EditPolicy fist tries to resolve existing diagrams
referenced from this style instance and opens Wizard only if nothing usefull
found.

It works, but I am not sure that it is "right" way to do this. Do I miss
something?

Regards,
Michael
Previous Topic:Open a dialog for editing elements
Next Topic:Side-affixed children can not be placed in compartments
Goto Forum:
  


Current Time: Sat Jul 13 02:35:05 GMT 2024

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

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

Back to the top