Home » Eclipse Projects » GEF » Connection feedback during reconnect
Connection feedback during reconnect [message #41004] |
Mon, 11 November 2002 08:49  |
Eclipse User |
|
|
|
Hi
in my app i have nodes with several terminals, all mapped to the same
terminal. when i drag an already existing connection source to this anchor
(i.e., reconnection the source of the connection) i have a jface dialog
that allows the user to select the wanted terminal from the list of the
terminals of this anchor. my problem is that once the dialog apears, the
source connection feedback (i.e., the connection that was drag on the
screen), instead of "sticking" to the selected anchor, bounce back to the
anchor it was set before, and only after the user selects an appropriate
terminal, and the right command gets executed, the connection is connected
right again.
does anyone have an idea what am i doing wrong?
p.s.
i've tried to debug it, it seems that until the code reaches to the method
runEventLoop in the class org.eclipse.jface.window.Window, the conncetion
is connected right.
|
|
|
Re: Connection feedback during reconnect [message #41097 is a reply to message #41004] |
Mon, 11 November 2002 10:14   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
From what class are you displaying the Dialog?
It sounds like ConnectionEndpointTracker is receiving mouseUp(), which does
an eraseSourceFeedback(), *after* which you display the dialog.
You could extend mouseUp() in your own ConncetionEndpointTracker. On mouse
up, first you would popup the dialog and choose the terminal. Then you
might take that information and put it in the target Request
(updateTargetRequest()), and update the current command one last time, then
call super, whic hwill execut the command.
"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:aqochv$f7b$1@rogue.oti.com...
> Hi
> in my app i have nodes with several terminals, all mapped to the same
> terminal. when i drag an already existing connection source to this anchor
> (i.e., reconnection the source of the connection) i have a jface dialog
> that allows the user to select the wanted terminal from the list of the
> terminals of this anchor. my problem is that once the dialog apears, the
> source connection feedback (i.e., the connection that was drag on the
> screen), instead of "sticking" to the selected anchor, bounce back to the
> anchor it was set before, and only after the user selects an appropriate
> terminal, and the right command gets executed, the connection is connected
> right again.
> does anyone have an idea what am i doing wrong?
>
> p.s.
> i've tried to debug it, it seems that until the code reaches to the method
> runEventLoop in the class org.eclipse.jface.window.Window, the conncetion
> is connected right.
>
|
|
|
Re: Connection feedback during reconnect [message #41315 is a reply to message #41097] |
Mon, 11 November 2002 10:30  |
Eclipse User |
|
|
|
Randy Hudson wrote:
Hi,
i'm activating the dialog from the handleButtonUp method in the class that
extends ConnectionEndpointTracker in my project, and i called
super.handleButtonUp.. after i updated the current command , which is done
after i read the values from the dialog (between dialog.open() and
dialog.close() the connection jumps to its prior source). is it possible
that showing a new shell (that holds my dialog) can cause such a thing?
thanks
yoav
> From what class are you displaying the Dialog?
> It sounds like ConnectionEndpointTracker is receiving mouseUp(), which does
> an eraseSourceFeedback(), *after* which you display the dialog.
> You could extend mouseUp() in your own ConncetionEndpointTracker. On mouse
> up, first you would popup the dialog and choose the terminal. Then you
> might take that information and put it in the target Request
> (updateTargetRequest()), and update the current command one last time, then
> call super, whic hwill execut the command.
> "Yoav Rubin" <yoav@il.ibm.com> wrote in message
> news:aqochv$f7b$1@rogue.oti.com...
> > Hi
> > in my app i have nodes with several terminals, all mapped to the same
> > terminal. when i drag an already existing connection source to this anchor
> > (i.e., reconnection the source of the connection) i have a jface dialog
> > that allows the user to select the wanted terminal from the list of the
> > terminals of this anchor. my problem is that once the dialog apears, the
> > source connection feedback (i.e., the connection that was drag on the
> > screen), instead of "sticking" to the selected anchor, bounce back to the
> > anchor it was set before, and only after the user selects an appropriate
> > terminal, and the right command gets executed, the connection is connected
> > right again.
> > does anyone have an idea what am i doing wrong?
> >
> > p.s.
> > i've tried to debug it, it seems that until the code reaches to the method
> > runEventLoop in the class org.eclipse.jface.window.Window, the conncetion
> > is connected right.
> >
|
|
|
Goto Forum:
Current Time: Tue May 13 00:40:24 EDT 2025
Powered by FUDForum. Page generated in 0.02995 seconds
|