Child Reference of a node [message #719297] |
Fri, 26 August 2011 16:02 |
Alex Kravets Messages: 561 Registered: November 2009 |
Senior Member |
|
|
Hello,
I am trying to implement functionality where I can drag and drop element from CN view into element of the editor. Model and the generated code works for most part, but what happens is that when I DnD from the view both model and visual elements get into model. I want to only emf model to be updated without the visual elements, and I don't want gef model to be updated at all. I guess when I add Node Mapping with child's diagram node that's what triggers gef code to be created, but if I omit this that validation fails for gmfmap. Is it possible to do what I am trying to do? Do I need to revise my model?
Here is the screenshot of gmfmap:
And here is the resulting xml:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<workflow:Map xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:workflow="http://example.com/workflow">
<nodes xsi:type="workflow:DecisionNode" name="sdfsdf">
<scripts xsi:type="workflow:Script"/>
<scripts name="c"/>
</nodes>
</workflow:Map>
[Updated on: Fri, 26 August 2011 16:03] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.02719 seconds