|
Re: Arc from Label [message #637323 is a reply to message #637299] |
Fri, 05 November 2010 03:46 |
|
Hi,
Here you are only asking about the visual representation of the connection. Do you want this connection to be somehow represented on your semantic model as well? I mean given an Attribute model object, do you want to find out to which other element it has been connected to? If so, you need to change your Attribute model class so that it has an "outgoingConnection" reference which is of the type of your Connection model object - and then you'll need to add a new link mapping in your mapping definition.
On the other hand if you simply need connections leaving out of the parent to be 'snapped' into attribute labels, you need to employ a custom NodeFigure on the parent edit part and customize the anchoring behavior. You can follow http://gmfsamples.tuxfamily.org/wiki/doku.php?id=gmf_tutoria l6 to find out how to customize anchoring behavior.
Hope this helps.
- Asiri
|
|
|
|
Re: Arc from Label [message #637341 is a reply to message #637299] |
Fri, 05 November 2010 07:22 |
|
Hi,
I'm afraid I cannot give you a direct answer, but I have few questions (to understand your problem clearly).
- So your AttributeEditParts are contained within a XXXCompartmentEditPart which is inside your ClassEditPart is it?
- In your link mapping for attribute connections, what is the containment feature of AttributePortArc?
- I will deduce that you also have another form of links associated with classes themselves, is there some overlapping between these two link types that might be causing the problem?
- Asiri
|
|
|
|
Re: Arc from Label [message #637348 is a reply to message #637346] |
Fri, 05 November 2010 07:53 |
|
Hi,
Schoenboeck wrote on Fri, 05 November 2010 03:46 |
When I change the graphical representation of Attribute to let's say again a Rectanlge with a Label and if I introduce a NodeMapping for Attributes in the gmfgraph model everything works fine.
|
To me this looks like the correct approach (I'm bit unclear about how you have made the other approach work). Any reason why you don't like this (working) approach?
- Asiri
[Updated on: Fri, 05 November 2010 07:55] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03700 seconds