|
Re: html tooltip in draw2d [message #217546 is a reply to message #217506] |
Wed, 07 June 2006 18:51 |
Eclipse User |
|
|
|
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 #217616 is a reply to message #217546] |
Fri, 09 June 2006 00:48 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03129 seconds