Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Adding Object to a line
Adding Object to a line [message #78313] Thu, 16 November 2006 14:48 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Folks,

I have a need to do something like the following:

I have two blocks connected with a line
Right click on a line and add a property
That results in something (like a marker) being added to the line
I can connect a line to that something (marker) and to another block.

Any ideas ?
Can GMF do this ?

I was thinking that adding property to line resulted in connection port
being added to line...possible ?

Thanks.
Re: Adding Object to a line [message #78938 is a reply to message #78313] Mon, 20 November 2006 15:50 Go to previous message
Eclipse UserFriend
Alan,

I don't see any reason why it wouldn't be possible to accomplish this
with the GMF Runtime. Your marker needs to be an INodeEditPart to allow
connections to be created to it. It could be located on the connection
similar to how connection labels are located (i.e. with a locator).
This marker could be a child of the connection, so the connection could
add a new child when it gets an event that the property has been added.

I might be able to answer more specific questions about this if you have
them.

Regards,
Cherie

Alan wrote:
> Folks,
>
> I have a need to do something like the following:
>
> I have two blocks connected with a line
> Right click on a line and add a property
> That results in something (like a marker) being added to the line
> I can connect a line to that something (marker) and to another block.
>
> Any ideas ?
> Can GMF do this ?
>
> I was thinking that adding property to line resulted in connection port
> being added to line...possible ?
>
> Thanks.
>
>
Previous Topic:Changing background of label
Next Topic:Defining audits in GMF
Goto Forum:
  


Current Time: Thu Mar 13 13:43:26 EDT 2025

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

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

Back to the top