Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Child Reference of a node
Child Reference of a node [message #719297] Fri, 26 August 2011 16:02
Alex Kravets is currently offline Alex KravetsFriend
Messages: 554
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:

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 16:03]

Report message to a moderator

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


Current Time: Sat Mar 06 03:18:05 GMT 2021

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

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

Back to the top