Skip to main content



      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 03:55
Eclipse UserFriend
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: Tue Jul 08 18:07:58 EDT 2025

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

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

Back to the top