Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can I get the diagram after I get the viewer?
How can I get the diagram after I get the viewer? [message #226489] Fri, 17 April 2009 08:33 Go to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Hello,

Now I can get the viewer, and how can I get the diagram on it?

Thank you very much!

Regards,
changqing
Re: How can I get the diagram after I get the viewer? [message #226544 is a reply to message #226489] Fri, 17 April 2009 09:28 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello changqing,

> Now I can get the viewer, and how can I get the diagram on it?
Use Workbench API to access curerntly active Editor/View.
Diagram instance you can probably get from the selection.

-----------------
Alex Shatalin
Re: How can I get the diagram after I get the viewer? [message #226551 is a reply to message #226489] Fri, 17 April 2009 09:34 Go to previous message
Javier is currently offline JavierFriend
Messages: 57
Registered: July 2009
Member
EditPartViewer.getContents() should return your root EditPart, and from
there you can get the Diagram
Previous Topic:Connection creation customization
Next Topic:[Announce] GMF 2.2.0 I200904161928 is available
Goto Forum:
  


Current Time: Thu Apr 25 14:39:05 GMT 2024

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

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

Back to the top