Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Add a SubElement to an new created Element
Add a SubElement to an new created Element [message #501134] Tue, 01 December 2009 08:55
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
Hi,

i have a problem. I have to create a new Element (Rectangle, with something).
After creating this, it have to instantly connect to an other element. I have some problems in doing this.
My Mapping:

<nodes>
<containmentFeature
href="model.ecore#//Diagram/Lines"/>
<ownedChild>
<domainMetaElement
href="model.ecore#//Dot"/>
<domainInitializer
xsi:type="gmfmap:FeatureSeqInitializer">
<initializers
xsi:type="gmfmap:ReferenceNewElementSpec">
<feature
xsi:type="ecore:EReference"
href="model.ecore#//Dot/sourceConnections"/>
</initializers>
<initializers
xsi:type="gmfmap:FeatureValueSpec">
<feature
xsi:type="ecore:EReference"
href="model.ecore#//Dot/sourceConnections"/>
<value/>
</initializers>
</domainInitializer>
<tool
xsi:type="gmftool:CreationTool"
href="model.gmftool#//@palette/@tools.0/@tools.0"/>
<diagramNode
href="model.gmfgraph#Dot"/>
<children
referencedChild="//@nodes.0/@ownedChild">
<containmentFeature
href="model.ecore#//Diagram/Lines"/>
<childrenFeature
href="model.ecore#//Dot/target"/>
</children>
</ownedChild>
</nodes>

i am not a guru and i know this mapping is totally wrong, but i think its the right way to solve this.

Thanks

Thomas
Previous Topic:DnD
Next Topic:Need old popup properties behavior
Goto Forum:
  


Current Time: Wed Apr 14 17:54:34 GMT 2021

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

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

Back to the top