Generating Elements Automatically [message #500834] |
Sun, 29 November 2009 12:46 |
sebastian.sprenger Messages: 16 Registered: November 2009 |
Junior Member |
|
|
Hi everyone, im new to GMF. I have got the following problem. I created an Editor, which allows me to generate a node on the canvas. Always when I create a node, i wanted to create a child element automatically (but it should not be drawn on the canvas). I managed this via the mapping file by adding "Feature Seq Initializer", "Reference New Element Spec", another "Feature Seq Initializer", a "Feature Value Spec" and a "Value Expression". That worked so far, the XML-File generated by the Editor contains the element. But, I wasn`t able to set an attribute value of the element. I thought this works with the Body of the "Value Expression", but I wasn`t able to manage it.
So my questions are, is the mentioned way the right way to create elements automatically and how can I set Attribute-Values of the Elements automatically.
Somebody help please.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds