Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Adding shapes to the Diagram on the open of the Editor(I want add shapes to the diagram from model when the Editor is getting opened)
Adding shapes to the Diagram on the open of the Editor [message #1693879] Wed, 29 April 2015 05:56 Go to next message
Kalpana Ramasamy is currently offline Kalpana RamasamyFriend
Messages: 7
Registered: January 2015
Junior Member
I have a scenario-

Project and Nodes

I want to link Diagram-> Project

Shape -> Nodes

On open when creating Diagram will link Project to diagram

So I need to know the place where i can add Nodes to Diagram when the editor is getting opened
Re: Adding shapes to the Diagram on the open of the Editor [message #1693958 is a reply to message #1693879] Wed, 29 April 2015 13:39 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1899
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi,

do you really want to add nodes to the diagram when the editor is being
opened? That would lead to the editor being dirty right after opening it.

Or do you mean you would like to add nodes when you create a new diagram
(file)? That should be rather easy, as there somehow needs to be a action
that triggers the diagram creation and there you could hook your
functionality to add the nodes.

HTH,
Michael
Re: Adding shapes to the Diagram on the open of the Editor [message #1694004 is a reply to message #1693958] Thu, 30 April 2015 03:43 Go to previous messageGo to next message
Kalpana Ramasamy is currently offline Kalpana RamasamyFriend
Messages: 7
Registered: January 2015
Junior Member
Hi Michael,

I have existing model objects(nodes) in the project,which will be given as input to editor

On first time open of the Editor,that is say when i create a diagram ,i want to add pictogram elements of these objects/nodes in the editor

Thanks,
Best Regards,
Kalpana R
Re: Adding shapes to the Diagram on the open of the Editor [message #1694076 is a reply to message #1694004] Thu, 30 April 2015 12:00 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1899
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Kalpana R,

have you seen the tutorial section on "Dark Feature Processing"? Meant is
adding stuff to a diagram while it is not opened:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.graphiti.doc%2Fresources%2Fdocu%2Fgfw%2Fdark-feature-processing.htm&cp=27_1_11

The classes referenced on that page are part of the SDK tutorial plugin. You
could hook in similar functionality into the action you trigger to create
the diagram.

Michael
Previous Topic:Graph Editor
Next Topic:Kieler-Show Layout View in Graphiti
Goto Forum:
  


Current Time: Fri Nov 16 09:14:41 GMT 2018

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

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

Back to the top