How to store reference to the separate diagram created for given View [message #50198] |
Mon, 18 September 2006 14:22 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05739 seconds