double-click to open another diagram [message #104586] |
Fri, 16 February 2007 11:17 |
Eclipse User |
|
|
|
Originally posted by: eterem.XXX.XX
I know there have been some threads related to this before, but I have
searched the new group several times and was not able to find directly an
answer.
I'm working on a editor which should contain different layers of diagrams.
On the top level I have a A element which I would like to double click to
open a new (different) diagram and view A's content. In this new diagram I
would like to have an element B (among others), and when double clicking
on B, a new diagram should open to view B's content, etc.
I have made editor1.gmfmap (top element is A) and editor2.gmfmap (top
element is B, and I loaded editor2.gmfmap into editor1.gmfmap and related
the corresponding canvas. The editors should share the same editing
domain, and after following the recipe at you wiki, I think this works
fine. I have also checked the generated code for editor1, and I think the
OpenDiagramEditPolicy is refering to the correct MODEL_ID and Editor ID in
the methods getDiagramKind() and getEditorId(). But still, when I run the
editors and double click on element A, I got an error message saying
"can't open diagram of kind ......".
Do anyone know the solution for this? Is the problem having different
top-level elements in the two diagram editors?
Thank you,
Eterem
|
|
|
Powered by
FUDForum. Page generated in 0.03357 seconds