Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connections behavior
Connections behavior [message #180456] Wed, 02 April 2008 14:16 Go to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
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 14:19 Go to previous messageGo to next message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
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 14:54 Go to previous messageGo to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
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 14:54 Go to previous messageGo to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
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 07:47 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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.


---
Get professional support from the Xtext committers at www.typefox.io
Re: Connections behavior [message #180676 is a reply to message #180662] Thu, 03 April 2008 08:09 Go to previous message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
> 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: Fri Mar 29 13:24:44 GMT 2024

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

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

Back to the top