Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Connection without semantic object
Connection without semantic object [message #731654] Sun, 02 October 2011 09:35 Go to next message
Martin Fluegge is currently offline Martin Fluegge
Messages: 141
Registered: July 2009
Senior Member
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 #731663 is a reply to message #731654] Sun, 02 October 2011 10:59 Go to previous messageGo to next message
Andreas Graf is currently offline Andreas Graf
Messages: 151
Registered: July 2009
Senior Member
Hi Martin,

have you tried leaving out the link statement? i.e., not linking to null but not linking at all?

Andreas
Re: Connection without semantic object [message #731672 is a reply to message #731663] Sun, 02 October 2011 11:49 Go to previous message
Martin Fluegge is currently offline Martin Fluegge
Messages: 141
Registered: July 2009
Senior Member
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
Previous Topic:Difference between Diagram Type and Diagram Type Provider
Next Topic:Graphiti service release 0.7.2 is available for download
Goto Forum:
  


Current Time: Wed Sep 24 00:34:21 GMT 2014

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

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