Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » double-click to open another diagram
double-click to open another diagram [message #104586] Fri, 16 February 2007 11:17
Eclipse UserFriend
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
Previous Topic:SetLocation Of Editpart in the Editor
Next Topic:Dynamically created links created on collapced compartment is not visible
Goto Forum:
  


Current Time: Wed Dec 04 19:15:44 GMT 2024

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

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

Back to the top