|Connection without semantic object [message #731654]
||Sun, 02 October 2011 05:35
| Martin Fluegge
Registered: July 2009
First let me say that I am Graphiti newbie, so the answer to my question
might be quite obvious, but hidden behind my humble knowledge. If so,
let my apologize in advance.
I followed the graphiti tutorial from the help and used this as base to
adapt it to my own simple example model.
Actually I have an EObject – let's call it AClass – which is represented
by a node, similar to the EClass in the tutorial. But my AClass has a
connection to its subclasses which is modelled as reference feature. SO
I do not have an own EObject representing the relationship.
If I connect the nodes with a reference (adding a subclass to an AClass)
the addition works fine on the semantic level
(XXXCreateConnectionFeature.createConnection()). But I modified the
XXXAddConnectionFeature a bit according to my meta-model. As I do not an
equivalent to EReference I simply pasted null to the linkage call like this:
But this results into a dotted red line with a tool tip, saying that
there is no business model attached, although the line should appear a
solid black line.
Well, as a workaround A simply pasted the source object. Then the line
appears correctly. Is this the correct way to do it? Or is there another
option to get the solid black line when having von semantic model attach
Thanks in advance.
Powered by FUDForum
. Page generated in 0.01447 seconds