Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Child Reference of a node
Child Reference of a node [message #719297] Fri, 26 August 2011 12:02
Eclipse UserFriend
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:

http://i.imgur.com/LgFsH.png

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 12:03] by Moderator

Previous Topic:Action on diagram focus
Next Topic:Create nodes programmatically
Goto Forum:
  


Current Time: Thu Jul 17 03:10:13 EDT 2025

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

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

Back to the top