Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding a line to the canvas
Adding a line to the canvas [message #211028] Wed, 12 November 2008 16:43 Go to next message
H Cortiguera is currently offline H CortigueraFriend
Messages: 4
Registered: July 2009
Junior Member
I'm a total beginner to this framework, and I'm quite lost.

I need to put a line into the canvas of the editor, but I don't know how

Thanks
Re: Adding a line to the canvas [message #211063 is a reply to message #211028] Wed, 12 November 2008 21:14 Go to previous messageGo to next message
Jevon  is currently offline Jevon Friend
Messages: 164
Registered: July 2009
Senior Member
Hi,

Do you want the line in the diagram to represent an element in the
model? e.g.

<root>
<object a>
<object b>
<connection from:a to:b>
</root>

If you would like the 'connection' object to be represented as a line
between a and b, you will need to specify it's visual notation in your
..gmfgraph, the creation tool in the .gmftool, the mapping in the
..gmfmap, and then combine them all together into the .gmfgen to generate
your diagram editor. The GMF tutorials go into this quite well.

Jevon

H Cortiguera wrote:
> I'm a total beginner to this framework, and I'm quite lost.
>
> I need to put a line into the canvas of the editor, but I don't know how
>
> Thanks
>
Re: Adding a line to the canvas [message #211119 is a reply to message #211063] Thu, 13 November 2008 11:34 Go to previous message
H Cortiguera is currently offline H CortigueraFriend
Messages: 4
Registered: July 2009
Junior Member
Thanks Jevon

The line is not a connection between two items, it should represent a
single attribute (it's a timeline) of an object of the model.

So, i have an object with a time attribute, represented with this line,
and this line should be able to move along the canvas
Previous Topic:SVGImageType error
Next Topic:Feature Label Mapping
Goto Forum:
  


Current Time: Fri Apr 26 22:49:59 GMT 2024

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

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

Back to the top