Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » new Diagram(Creating and opening a diagram programmatically)
new Diagram [message #1001954] Thu, 17 January 2013 15:55 Go to next message
Juliane Mueller is currently offline Juliane Mueller
Messages: 30
Registered: August 2011
Member
Dear all,

I want to create a resource for a new graphiti diagram, and open it programmatically.
I know this is possible, but I don't found any example or tutorial.
Do you know a good example or a kind of solution?

Regards, Juliane
Re: new Diagram [message #1001972 is a reply to message #1001954] Thu, 17 January 2013 16:21 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1595
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Juliane,

there's an example of this in the tutorial, see the two classes in this
package:
http://git.eclipse.org/c/gmp/org.eclipse.gmp.graphiti.git/tree/examples/org.eclipse.graphiti.examples.tutorial/src/org/eclipse/graphiti/examples/tutorial/handlers

(They define an command and its handler that create a new diagram containing
all EClasses in the project. It's registered as a context menu function on
the Classes node in the project explorer in plugin.xml.)

Michael
Previous Topic:AutoUpdate Text associated to a ConnectionDecorator
Next Topic:Custom Save
Goto Forum:
  


Current Time: Wed Sep 17 15:52:35 GMT 2014

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

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