Links with Arrows [message #43976] |
Sun, 10 September 2006 12:22  |
Eclipse User |
|
|
|
Hi,
what would I need to do to be able to generate an Editor that draws
Links with an arrow? (Like the Ecore editor does)
Felix
|
|
|
Re: Links with Arrows [message #44008 is a reply to message #43976] |
Sun, 10 September 2006 15:11  |
Eclipse User |
|
|
|
Originally posted by: Jerry.silverglobe.com
Felix Dorner wrote:
> Hi,
>
> what would I need to do to be able to generate an Editor that draws
> Links with an arrow? (Like the Ecore editor does)
>
>
> Felix
Felix,
I'm not sure if this is the "proper" way, but it works like a charm for me.
In your gmfgraph file, add a new Polyline Decoration to your figure
gallery. To this decoration add three template points with x and y
properties of (-1, 1), (0,0), and (-1,-1) respectively. (This creates a
template that looks like an arrow on a connector pointing towards three
o'clock.)
Next, go to the Polyline Connection figure that represents your link and
attach the new decoration to the Target Decoration property.
That's it.
Jerry
|
|
|
Powered by
FUDForum. Page generated in 0.11246 seconds