Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Links with Arrows
Links with Arrows [message #43976] Sun, 10 September 2006 12:22 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Modeling bidirectional associations in GMF's Ecore editor
Next Topic:Where can i find the GMF metamodels?
Goto Forum:
  


Current Time: Mon Jul 14 15:48:35 EDT 2025

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

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

Back to the top