Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » problem with Reconnecting a connection
problem with Reconnecting a connection [message #12961] Wed, 10 July 2002 14:44 Go to next message
Yoav Rubin is currently offline Yoav RubinFriend
Messages: 93
Registered: July 2009
Member
Hi
i have a editparts on my canvas which are nodes in a graph, an i would
like my users to be able to drag a connection that was created between two
nodes to other node. i tried to do it the same way as in the logic
example, but i coulnd't underastand there something. after a change in the
source of a logic element, a property change is fired with the type
"source", i couln't find anybody that listens to this type, but somehow it
works. i tried to do it the same way, but in my app it doesn't, the
connection returns to it's original source after the mouse is released.
any ideas
thanks
yoav
Re: problem with Reconnecting a connection [message #12991 is a reply to message #12961] Wed, 10 July 2002 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

The LogicSubpart (which is a Node for a connection) fires INPUTS or OUTPUTS
changed. The LogicEditPart listens for these changes, and refreshes
source/target connections.

"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:aghh8b$875$1@rogue.oti.com...
> Hi
> i have a editparts on my canvas which are nodes in a graph, an i would
> like my users to be able to drag a connection that was created between two
> nodes to other node. i tried to do it the same way as in the logic
> example, but i coulnd't underastand there something. after a change in the
> source of a logic element, a property change is fired with the type
> "source", i couln't find anybody that listens to this type, but somehow it
> works. i tried to do it the same way, but in my app it doesn't, the
> connection returns to it's original source after the mouse is released.
> any ideas
> thanks
> yoav
>
Re: problem with Reconnecting a connection [message #13020 is a reply to message #12991] Wed, 10 July 2002 16:33 Go to previous messageGo to next message
Yoav Rubin is currently offline Yoav RubinFriend
Messages: 93
Registered: July 2009
Member
Hi
after verifying stuff in my code, i found out that the command that is
returned from getReconnectSourceCommand in the editpolicy, and from some
reason (which i couldn't find) does not get executed. any ideas?
(the canExecute method returns true)
thanks
yoav

Randy Hudson wrote:

> The LogicSubpart (which is a Node for a connection) fires INPUTS or OUTPUTS
> changed. The LogicEditPart listens for these changes, and refreshes
> source/target connections.

> "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> news:aghh8b$875$1@rogue.oti.com...
> > Hi
> > i have a editparts on my canvas which are nodes in a graph, an i would
> > like my users to be able to drag a connection that was created between two
> > nodes to other node. i tried to do it the same way as in the logic
> > example, but i coulnd't underastand there something. after a change in the
> > source of a logic element, a property change is fired with the type
> > "source", i couln't find anybody that listens to this type, but somehow it
> > works. i tried to do it the same way, but in my app it doesn't, the
> > connection returns to it's original source after the mouse is released.
> > any ideas
> > thanks
> > yoav
> >
Re: problem with Reconnecting a connection [message #13047 is a reply to message #13020] Wed, 10 July 2002 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

Put a breakpoint in ConnectionEndpointTracker.handleButtonUp() and debug it.
Is this command compounded with any other commands perhaps?

"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:aghnk7$c4k$1@rogue.oti.com...
> Hi
> after verifying stuff in my code, i found out that the command that is
> returned from getReconnectSourceCommand in the editpolicy, and from some
> reason (which i couldn't find) does not get executed. any ideas?
> (the canExecute method returns true)
> thanks
> yoav
>
> Randy Hudson wrote:
>
> > The LogicSubpart (which is a Node for a connection) fires INPUTS or
OUTPUTS
> > changed. The LogicEditPart listens for these changes, and refreshes
> > source/target connections.
>
> > "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> > news:aghh8b$875$1@rogue.oti.com...
> > > Hi
> > > i have a editparts on my canvas which are nodes in a graph, an i would
> > > like my users to be able to drag a connection that was created between
two
> > > nodes to other node. i tried to do it the same way as in the logic
> > > example, but i coulnd't underastand there something. after a change in
the
> > > source of a logic element, a property change is fired with the type
> > > "source", i couln't find anybody that listens to this type, but
somehow it
> > > works. i tried to do it the same way, but in my app it doesn't, the
> > > connection returns to it's original source after the mouse is
released.
> > > any ideas
> > > thanks
> > > yoav
> > >
>
>
>
>
>
Re: problem with Reconnecting a connection [message #13073 is a reply to message #13047] Thu, 11 July 2002 10:38 Go to previous message
Yoav Rubin is currently offline Yoav RubinFriend
Messages: 93
Registered: July 2009
Member
this command is not compounded with other commands.
Randy Hudson wrote:

> Put a breakpoint in ConnectionEndpointTracker.handleButtonUp() and debug it.
> Is this command compounded with any other commands perhaps?

> "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> news:aghnk7$c4k$1@rogue.oti.com...
> > Hi
> > after verifying stuff in my code, i found out that the command that is
> > returned from getReconnectSourceCommand in the editpolicy, and from some
> > reason (which i couldn't find) does not get executed. any ideas?
> > (the canExecute method returns true)
> > thanks
> > yoav
> >
> > Randy Hudson wrote:
> >
> > > The LogicSubpart (which is a Node for a connection) fires INPUTS or
> OUTPUTS
> > > changed. The LogicEditPart listens for these changes, and refreshes
> > > source/target connections.
> >
> > > "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> > > news:aghh8b$875$1@rogue.oti.com...
> > > > Hi
> > > > i have a editparts on my canvas which are nodes in a graph, an i would
> > > > like my users to be able to drag a connection that was created between
> two
> > > > nodes to other node. i tried to do it the same way as in the logic
> > > > example, but i coulnd't underastand there something. after a change in
> the
> > > > source of a logic element, a property change is fired with the type
> > > > "source", i couln't find anybody that listens to this type, but
> somehow it
> > > > works. i tried to do it the same way, but in my app it doesn't, the
> > > > connection returns to it's original source after the mouse is
> released.
> > > > any ideas
> > > > thanks
> > > > yoav
> > > >
> >
> >
> >
> >
> >
Previous Topic:GEF and MultipageEditorPart
Next Topic:Toolbar EditPartAction disabled
Goto Forum:
  


Current Time: Sun Oct 06 09:19:45 GMT 2024

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

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

Back to the top