|
Re: problem with Reconnecting a connection [message #12991 is a reply to message #12961] |
Wed, 10 July 2002 03:39 |
Eclipse User |
|
|
|
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 |
Yoav Rubin 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 |
Eclipse User |
|
|
|
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 |
Yoav Rubin 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
> > > >
> >
> >
> >
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.03277 seconds