Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to initialize the diagram with some shapes
How to initialize the diagram with some shapes [message #1775213] Thu, 26 October 2017 11:51 Go to next message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
When start my plug-in, I want to put some shapes in the diagram.How can I do?
Re: How to initialize the diagram with some shapes [message #1775274 is a reply to message #1775213] Fri, 27 October 2017 06:39 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
I would suggest that you start with going through our tuturial, it explains all the steps that are required to build a graphical editor based on Graphiti. The tutorial can be found here:
http://help.eclipse.org/kepler/index.jsp?nav=%2F27_1

Michael
Re: How to initialize the diagram with some shapes [message #1775321 is a reply to message #1775274] Fri, 27 October 2017 15:21 Go to previous messageGo to next message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
Sorry, Maybe my statement is not clear. When the plugin starts to run, the diagram is empty. Then, I can put shape on the diagram through palette. There is no any shape on the diagram. But I want the plugin to start running with some shapes on the diagram.
What should I do?
Re: How to initialize the diagram with some shapes [message #1775686 is a reply to message #1775321] Fri, 03 November 2017 13:27 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
You should do that at the place where you create your diagram. in the tutorial this is done by the org.eclipse.graphiti.examples.common.ui.CreateDiagramWizard class which will just create an empty diagram.

HTH,
Michael
Re: How to initialize the diagram with some shapes [message #1775876 is a reply to message #1775686] Tue, 07 November 2017 14:11 Go to previous message
xi yahui is currently offline xi yahuiFriend
Messages: 32
Registered: October 2017
Member
Thanks
Previous Topic:Create visual container for GA's
Next Topic:Listeners on Shape
Goto Forum:
  


Current Time: Tue Oct 15 03:12:16 GMT 2024

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

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

Back to the top