Skip to main content


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 11:54 Go to next message
Michael Germany is currently offline Michael GermanyFriend
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 153 times)
Re: Add multiple shapes with connectors at ones [message #988795 is a reply to message #988742] Mon, 03 December 2012 08:59 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
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 25 11:08:27 GMT 2024

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

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

Back to the top