Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » html tooltip in draw2d
html tooltip in draw2d [message #217506] Wed, 07 June 2006 08:25 Go to next message
Nicolas Rousseau is currently offline Nicolas RousseauFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I'd like to be able to set a tooltip in html, but in draw2d. (to use in GEF)

A tooltip like the one used in the java editor for javadoc would be nice.

Is there something that already exists ? I didn't see anything to do that
yet.
Or maybe someone got some tips to make one.

Thanks,

Nicolas
Re: html tooltip in draw2d [message #217546 is a reply to message #217506] Wed, 07 June 2006 18:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You should use your own PopupHelper class which responds to the
SELECTION_HOVER request when EditPart#performRequest is called. Create the
SWT widget for a browser on the popup's shell. Draw2d tooltips are not
suitable for diagrams, just the palette and similar uses.

"Nicolas Rousseau" <nicolasrousseau@hotmail.com> wrote in message
news:e662hr$tef$1@utils.eclipse.org...
> Hi,
>
> I'd like to be able to set a tooltip in html, but in draw2d. (to use in
> GEF)
>
> A tooltip like the one used in the java editor for javadoc would be nice.
>
> Is there something that already exists ? I didn't see anything to do that
> yet.
> Or maybe someone got some tips to make one.
>
> Thanks,
>
> Nicolas
>
>
Re: html tooltip in draw2d [message #217574 is a reply to message #217546] Thu, 08 June 2006 08:16 Go to previous messageGo to next message
Nicolas Rousseau is currently offline Nicolas RousseauFriend
Messages: 18
Registered: July 2009
Junior Member
ok thanks,
I didn't use that yet, i'll look for that.

"Randy Hudson" <none@us.ibm.com> a
Re: html tooltip in draw2d [message #217616 is a reply to message #217546] Fri, 09 June 2006 00:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

i recall seeing some tooltip implementation code in the GEF samples many
months ago, but i can't find them now. can someone point me at them?

Randy Hudson wrote:
> You should use your own PopupHelper class which responds to the
> SELECTION_HOVER request when EditPart#performRequest is called. Create the
> SWT widget for a browser on the popup's shell. Draw2d tooltips are not
> suitable for diagrams, just the palette and similar uses.
>
> "Nicolas Rousseau" <nicolasrousseau@hotmail.com> wrote in message
> news:e662hr$tef$1@utils.eclipse.org...
>> Hi,
>>
>> I'd like to be able to set a tooltip in html, but in draw2d. (to use in
>> GEF)
>>
>> A tooltip like the one used in the java editor for javadoc would be nice.
>>
>> Is there something that already exists ? I didn't see anything to do that
>> yet.
>> Or maybe someone got some tips to make one.
>>
>> Thanks,
>>
>> Nicolas
>>
>>
>
>
GEF direction from GMF changes.(was: Re: html tooltip in draw2d) [message #217624 is a reply to message #217546] Fri, 09 June 2006 16:55 Go to previous message
Eclipse UserFriend
Originally posted by: alnospammajor.noboxspamspoon.com

GMF appears to handle a similar situation by creating a new role,
EditPolicyRoles.POPUPBAR_ROLE, and handling the popup in an editpolicy.

is this something that will work itself into GEF at some point?

i need to implement tooltips soon. i'm wondering if its worth extracting
the changes from GMF and creating a patch for GEF. i'm guessing the
tooltip could be a special case of a POPUPBAR.

or should i be going the PopupHelper route as you suggest?

al

Randy Hudson wrote:
> You should use your own PopupHelper class which responds to the
> SELECTION_HOVER request when EditPart#performRequest is called. Create the
> SWT widget for a browser on the popup's shell. Draw2d tooltips are not
> suitable for diagrams, just the palette and similar uses.
>
> "Nicolas Rousseau" <nicolasrousseau@hotmail.com> wrote in message
> news:e662hr$tef$1@utils.eclipse.org...
>> Hi,
>>
>> I'd like to be able to set a tooltip in html, but in draw2d. (to use in
>> GEF)
>>
>> A tooltip like the one used in the java editor for javadoc would be nice.
>>
>> Is there something that already exists ? I didn't see anything to do that
>> yet.
>> Or maybe someone got some tips to make one.
>>
>> Thanks,
>>
>> Nicolas
>>
>>
>
>
Previous Topic:Problems with connections
Next Topic:EditPart Creation question
Goto Forum:
  


Current Time: Wed Feb 05 07:53:23 GMT 2025

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

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

Back to the top