Connection without semantic object [message #731654] |
Sun, 02 October 2011 05:35  |
Eclipse User |
|
|
|
Hi guys,
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:
link(connection, null);
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
to it?
Thanks in advance.
Cheers,
Martin
|
|
|
|
Re: Connection without semantic object [message #731672 is a reply to message #731663] |
Sun, 02 October 2011 07:49  |
Eclipse User |
|
|
|
Am 02.10.2011 12:59, schrieb Andreas Graf:
> Hi Martin,
>
> have you tried leaving out the link statement? i.e., not linking to null
> but not linking at all?
>
Ah! That's it.
Could have guessed it myself :(
Thanks for this quick response. :)
Cheers,
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.03372 seconds