Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Mouse up event and request
Mouse up event and request [message #165292] Mon, 24 January 2005 02:00 Go to next message
Eclipse UserFriend
Originally posted by: daniel.yahoo.com

Hi
When I drag the figure from one position to another position, I want to
popup a dialog to display some data during this process. But I only can
use Request to refresh the dialog data. When the Request happens I let the
dialog popup and when request finished(mouse up) I hide the dialog.
But I can not find the mouse up event in Request to judge if the mouse
button is up. Can GEF Request provide this function?
Thanks
Daniel.
Re: Mouse up event and request [message #165382 is a reply to message #165292] Mon, 24 January 2005 17:54 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
I am assuming by dialog you mean some sort of pop-up (like a tooltip) rather
an actual SWT/JFace dialog.

You should do this in your edit policy's (probably the resize edit policy)
showSourceFeedback() and eraseSourceFeedback() methods. You hide/remove the
dialog in the latter method. If you're using a NonResizableEditPolicy (or a
sub-class thereof), you should override show/eraseChangeBoundsFeedback().

"daniel" <daniel@yahoo.com> wrote in message
news:ct1ksb$fro$1@www.eclipse.org...
> Hi
> When I drag the figure from one position to another position, I want to
> popup a dialog to display some data during this process. But I only can
> use Request to refresh the dialog data. When the Request happens I let the
> dialog popup and when request finished(mouse up) I hide the dialog.
> But I can not find the mouse up event in Request to judge if the mouse
> button is up. Can GEF Request provide this function?
> Thanks
> Daniel.
>
Previous Topic:Two GEF views
Next Topic:Help with Palette
Goto Forum:
  


Current Time: Sat Apr 27 02:05:31 GMT 2024

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

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

Back to the top