Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add multiple shapes with connectors at ones(I want to add at ones several shapes)
Add multiple shapes with connectors at ones [message #988742] Sun, 02 December 2012 06:54 Go to next message
Michael Germany is currently offline Michael Germany
Messages: 2
Registered: December 2012
Junior Member
Hello Community,

I have to implement a modelling editor for a special language. In this language there are main shapes(S1) with affixed nodes(pins (P)) and other shapes(S2). Connections (->) between shapes S1 and S2 are only possible via these Pins. Now I want to improve user experience by creating at ones a chain P->S2.

index.php/fa/12565/0/

I know that I should extend a method addChild in class S1EditPart, but I still have no idea how to implement this behaviour.

Thanks
  • Attachment: 3shapes.png
    (Size: 3.17KB, Downloaded 50 times)
Re: Add multiple shapes with connectors at ones [message #988795 is a reply to message #988742] Mon, 03 December 2012 03:59 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 695
Registered: November 2009
Senior Member
Hi,

if it is about adding childe you can get the job done in gmfmap. Add a FeatureSeqInitializer and ReferenceNewElement to your model element. You can set this up by addinf a further FeatureSweInitializer and FeatureValueSpecs to this newly created model element.

Ralph
Previous Topic:Add multiple shapes with connectors at ones
Next Topic:Editor not created?
Goto Forum:
  


Current Time: Thu Apr 17 03:53:40 EDT 2014

Powered by FUDForum. Page generated in 0.03784 seconds