Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get root DiagramImpl from the sub-diagram editor
How to get root DiagramImpl from the sub-diagram editor [message #198229] Tue, 22 July 2008 09:36 Go to next message
Li Junhong is currently offline Li JunhongFriend
Messages: 1012
Registered: July 2009
Senior Member
Hi all,

I have opened the sub-diagram editor, but can I get the root view of
DiagramImpl from the sub-diagram view? What api should I use? Thanks!~

Regards!
Li Junhong
Re: How to get root DiagramImpl from the sub-diagram editor [message #198298 is a reply to message #198229] Tue, 22 July 2008 12:00 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Li,

Try:
subDiagram.eResource().getContents() and select first instance of Diagram
or a diagram containing a node referencing same domain model element.

-----------------
Alex Shatalin
Previous Topic:GMF Wizards
Next Topic:Audit rule OCL
Goto Forum:
  


Current Time: Thu Apr 25 11:18:40 GMT 2024

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

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

Back to the top