Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connections behavior
Connections behavior [message #180456] Wed, 02 April 2008 10:16 Go to next message
Eclipse UserFriend
Hello,

Two questions about connections:

1)

I've got two nodes A and B and A can point to B. (A -> B). To create a
connection we need with GMF to drag and drop from A to B. Is it possible
to also have a connection from A to B when dragging from B to A ?

2)

Instead of dragging and dropping the connection, I would like to click
on A, then I obtain a dangling connection, and then I click on B to
perform the connection. How can I do that?

Thanks in advance.
Re: Connections behavior [message #180482 is a reply to message #180456] Wed, 02 April 2008 10:19 Go to previous messageGo to next message
Eclipse UserFriend
This is essentially what the connection handles do. Are they not
sufficient?

- Cherie

Youmm P. wrote:
> Hello,
>
> Two questions about connections:
>
> 1)
>
> I've got two nodes A and B and A can point to B. (A -> B). To create a
> connection we need with GMF to drag and drop from A to B. Is it possible
> to also have a connection from A to B when dragging from B to A ?
>
> 2)
>
> Instead of dragging and dropping the connection, I would like to click
> on A, then I obtain a dangling connection, and then I click on B to
> perform the connection. How can I do that?
>
> Thanks in advance.
Re: Connections behavior [message #180500 is a reply to message #180482] Wed, 02 April 2008 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Cherie Revells wrote:
> This is essentially what the connection handles do. Are they not
> sufficient?
Not really, I need to base the behavior on a previous editor.

I would like to have like the connection handles, but without keeping
the left mouse button pressed, and this dangling connection would be
created by clicking on the node with a button from the palette.

And only one button. If I have only a directed reference between A and
B, I don't want the user to select A then B. Selecting B and then A
should be fine.
Re: Connections behavior [message #180507 is a reply to message #180482] Wed, 02 April 2008 10:54 Go to previous messageGo to next message
Eclipse UserFriend
Cherie Revells wrote:
> This is essentially what the connection handles do. Are they not
> sufficient?
Not really, I need to base the behavior on a previous editor.

I would like to have like the connection handles, but without keeping
the left mouse button pressed, and this dangling connection would be
created by clicking on the node with a button from the palette.

And only one button. If I have only a directed reference between A and
B, I don't want the user to select A then B. Selecting B and then A
should be fine.
Re: Connections behavior [message #180662 is a reply to message #180456] Thu, 03 April 2008 03:47 Go to previous messageGo to next message
Eclipse UserFriend
Ad 1)
Yes, that's possible. Just add a second link mapping and switch
source/target feature. In case you are using an EReference, use the
opposite EReference.

Ad 2)
I'd recommend to have a look at GEF then. Sounds rather complicated and
I doubt that the GMF runtime will offer you much help.

Jan

Youmm P. schrieb:
> Hello,
>
> Two questions about connections:
>
> 1)
>
> I've got two nodes A and B and A can point to B. (A -> B). To create a
> connection we need with GMF to drag and drop from A to B. Is it possible
> to also have a connection from A to B when dragging from B to A ?
>
> 2)
>
> Instead of dragging and dropping the connection, I would like to click
> on A, then I obtain a dangling connection, and then I click on B to
> perform the connection. How can I do that?
>
> Thanks in advance.
Re: Connections behavior [message #180676 is a reply to message #180662] Thu, 03 April 2008 04:09 Go to previous message
Eclipse UserFriend
> Yes, that's possible. Just add a second link mapping and switch
> source/target feature. In case you are using an EReference, use the
> opposite EReference.
>
The problem is that my reference is directed. I don't have any opposite
EReference, can we do that without?
Previous Topic:link between subtypes of an element. Does not work with connection handles. Possible Bug.
Next Topic:the Problem of Compartment's compartment's Layout! GMF's Bug????
Goto Forum:
  


Current Time: Mon Jul 07 23:25:20 EDT 2025

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

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

Back to the top