Skip to main content



      Home
Home » Eclipse Projects » GEF » Show tooltip for handle
Show tooltip for handle [message #81296] Wed, 28 May 2003 07:45 Go to next message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

I want to have tooltip for my handle in GEF editor.
How to implement this better?

--
SY, Konstantin.
Re: Show tooltip for handle [message #81383 is a reply to message #81296] Wed, 28 May 2003 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could try using the figure's setTooltip method. However, this tooltip
would always appear, even in situation when then SelectionTool is not
active, and clicking on the handle wouldn't cause a drag.

Another way would be to use showFreedback(Request), where the request is
REQ_SELECTION or REQ_SELECTION_HOVER. These feedback requests are only sent
when the SelectionTool is active. Your EditPart would get these requests
any time the mouse is over the editpart, so you would have to look at the
request's mouse location and compare it to each of the handles. Since some
areas of the handle are outside the bounds of the editpart's primary figure,
you could register the handles themselves as part of the editpart's visuals.

"Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
news:Vq3tl6QJDHA.1724@fairy.ao.nlmk...
> I want to have tooltip for my handle in GEF editor.
> How to implement this better?
>
> --
> SY, Konstantin.
Re: Show tooltip for handle [message #81396 is a reply to message #81383] Wed, 28 May 2003 10:39 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

> request's mouse location and compare it to each of the handles. Since
some
> areas of the handle are outside the bounds of the editpart's primary
figure,
> you could register the handles themselves as part of the editpart's
visuals.

Actually, ignore that part, it would break normal targeting during drag
operations.

>
> "Konstantin Scheglov" <scheglov_ke@nlmk.ru> wrote in message
> news:Vq3tl6QJDHA.1724@fairy.ao.nlmk...
> > I want to have tooltip for my handle in GEF editor.
> > How to implement this better?
> >
> > --
> > SY, Konstantin.
>
>
Previous Topic:Handle click on part of figure
Next Topic:understanding connection invalidation
Goto Forum:
  


Current Time: Sat Jul 12 22:45:49 EDT 2025

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

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

Back to the top