Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/42280/#msg_42280
I am using GridColumnLabelProvider to put a image in one of the columns of
my grid view. But am not able to put (return) a tooltip text for the
image. I tried with getTooltipText but no use. Is there any API to put the
tooltip for images?
Thanks,
BG]]>BG2007-10-29T14:29:32-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/42415/#msg_42415
believe that functionality is in the viewer. You should be able to call
GridItem.setToolTipText(index,String) in your GCLP.update(ViewerCell)
method.
Regards,
-Chris
BG wrote:
> Hello,
>
> I am using GridColumnLabelProvider to put a image in one of the columns
> of my grid view. But am not able to put (return) a tooltip text for the
> image. I tried with getTooltipText but no use. Is there any API to put
> the tooltip for images?
> Thanks,
> BG
>]]>Chris Gross2007-10-29T17:12:54-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/585948/#msg_585948
believe that functionality is in the viewer. You should be able to call
GridItem.setToolTipText(index,String) in your GCLP.update(ViewerCell)
method.
Regards,
-Chris
BG wrote:
> Hello,
>
> I am using GridColumnLabelProvider to put a image in one of the columns
> of my grid view. But am not able to put (return) a tooltip text for the
> image. I tried with getTooltipText but no use. Is there any API to put
> the tooltip for images?
> Thanks,
> BG
>]]>Chris Gross2007-10-29T17:12:54-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/585984/#msg_585984
are there no hover-events generated by the Grid when one moves the
mouse. The ToolTip support build into ever viewer inheriting from JFace
listens to those events and opens a SWT-Shell to present the ToolTip
which could be very fancy.
If this is not working for Grid like it does for SWT I think we need a
bug with a snippet and track the problem down.
Tom
Chris Gross schrieb:
> Grid does have the ability to show cell specific tooltips but I don't
> believe that functionality is in the viewer. You should be able to call
> GridItem.setToolTipText(index,String) in your GCLP.update(ViewerCell)
> method.
>
> Regards,
> -Chris
>
> BG wrote:
>> Hello,
>>
>> I am using GridColumnLabelProvider to put a image in one of the
>> columns of my grid view. But am not able to put (return) a tooltip
>> text for the image. I tried with getTooltipText but no use. Is there
>> any API to put the tooltip for images?
>> Thanks,
>> BG
>>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-10-29T17:31:45-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/42471/#msg_42471
are there no hover-events generated by the Grid when one moves the
mouse. The ToolTip support build into ever viewer inheriting from JFace
listens to those events and opens a SWT-Shell to present the ToolTip
which could be very fancy.
If this is not working for Grid like it does for SWT I think we need a
bug with a snippet and track the problem down.
Tom
Chris Gross schrieb:
> Grid does have the ability to show cell specific tooltips but I don't
> believe that functionality is in the viewer. You should be able to call
> GridItem.setToolTipText(index,String) in your GCLP.update(ViewerCell)
> method.
>
> Regards,
> -Chris
>
> BG wrote:
>> Hello,
>>
>> I am using GridColumnLabelProvider to put a image in one of the
>> columns of my grid view. But am not able to put (return) a tooltip
>> text for the image. I tried with getTooltipText but no use. Is there
>> any API to put the tooltip for images?
>> Thanks,
>> BG
>>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-10-29T17:31:45-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/585993/#msg_585993
for me tooltips simply work as designed (I've tested on OS-X) only
please take a look at the nebula-snippets available in CVS (Snippet5 is
holds the code).
I suppose you simply forgot to add this line to your Viewer-Setup :-)
which is required to get ToolTips working for ColumnViewer and it's
friends :-)
We should try to port more JFace-Snippets and make a dedicated wiki page
(any volunteers :-) most of the time the only task is to copy the
existing JFace-Snippet and replace the Table/TreeViewer for their grid
counter parts.
Tom
Tom Schindl schrieb:
> Hi,
>
> are there no hover-events generated by the Grid when one moves the
> mouse. The ToolTip support build into ever viewer inheriting from JFace
> listens to those events and opens a SWT-Shell to present the ToolTip
> which could be very fancy.
>
> If this is not working for Grid like it does for SWT I think we need a
> bug with a snippet and track the problem down.
>
> Tom
>
> Chris Gross schrieb:
>> Grid does have the ability to show cell specific tooltips but I don't
>> believe that functionality is in the viewer. You should be able to
>> call GridItem.setToolTipText(index,String) in your
>> GCLP.update(ViewerCell) method.
>>
>> Regards,
>> -Chris
>>
>> BG wrote:
>>> Hello,
>>>
>>> I am using GridColumnLabelProvider to put a image in one of the
>>> columns of my grid view. But am not able to put (return) a tooltip
>>> text for the image. I tried with getTooltipText but no use. Is there
>>> any API to put the tooltip for images?
>>> Thanks,
>>> BG
>>>
>
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-10-29T18:43:06-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/42486/#msg_42486
for me tooltips simply work as designed (I've tested on OS-X) only
please take a look at the nebula-snippets available in CVS (Snippet5 is
holds the code).
I suppose you simply forgot to add this line to your Viewer-Setup :-)
which is required to get ToolTips working for ColumnViewer and it's
friends :-)
We should try to port more JFace-Snippets and make a dedicated wiki page
(any volunteers :-) most of the time the only task is to copy the
existing JFace-Snippet and replace the Table/TreeViewer for their grid
counter parts.
Tom
Tom Schindl schrieb:
> Hi,
>
> are there no hover-events generated by the Grid when one moves the
> mouse. The ToolTip support build into ever viewer inheriting from JFace
> listens to those events and opens a SWT-Shell to present the ToolTip
> which could be very fancy.
>
> If this is not working for Grid like it does for SWT I think we need a
> bug with a snippet and track the problem down.
>
> Tom
>
> Chris Gross schrieb:
>> Grid does have the ability to show cell specific tooltips but I don't
>> believe that functionality is in the viewer. You should be able to
>> call GridItem.setToolTipText(index,String) in your
>> GCLP.update(ViewerCell) method.
>>
>> Regards,
>> -Chris
>>
>> BG wrote:
>>> Hello,
>>>
>>> I am using GridColumnLabelProvider to put a image in one of the
>>> columns of my grid view. But am not able to put (return) a tooltip
>>> text for the image. I tried with getTooltipText but no use. Is there
>>> any API to put the tooltip for images?
>>> Thanks,
>>> BG
>>>
>
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------]]>Thomas Schindl2007-10-29T18:43:06-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/586061/#msg_586061
built-in cell tooltip support in Grid. That wouldn't be very difficult
to do by modifying GridColumnLabelProvider. Anyway, the existing
support should be more than sufficient.
-Chris
Tom Schindl wrote:
> Hi,
>
> for me tooltips simply work as designed (I've tested on OS-X) only
> please take a look at the nebula-snippets available in CVS (Snippet5 is
> holds the code).
>
> I suppose you simply forgot to add this line to your Viewer-Setup :-)
>
> -----8<-----
> ColumnViewerToolTipSupport.enableFor(v,ToolTip.NO_RECREATE);
> -----8<-----
>
> which is required to get ToolTips working for ColumnViewer and it's
> friends :-)
>
> We should try to port more JFace-Snippets and make a dedicated wiki page
> (any volunteers :-) most of the time the only task is to copy the
> existing JFace-Snippet and replace the Table/TreeViewer for their grid
> counter parts.
>
> Tom
>
> Tom Schindl schrieb:
>> Hi,
>>
>> are there no hover-events generated by the Grid when one moves the
>> mouse. The ToolTip support build into ever viewer inheriting from
>> JFace listens to those events and opens a SWT-Shell to present the
>> ToolTip which could be very fancy.
>>
>> If this is not working for Grid like it does for SWT I think we need a
>> bug with a snippet and track the problem down.
>>
>> Tom
>>
>> Chris Gross schrieb:
>>> Grid does have the ability to show cell specific tooltips but I don't
>>> believe that functionality is in the viewer. You should be able to
>>> call GridItem.setToolTipText(index,String) in your
>>> GCLP.update(ViewerCell) method.
>>>
>>> Regards,
>>> -Chris
>>>
>>> BG wrote:
>>>> Hello,
>>>>
>>>> I am using GridColumnLabelProvider to put a image in one of the
>>>> columns of my grid view. But am not able to put (return) a tooltip
>>>> text for the image. I tried with getTooltipText but no use. Is there
>>>> any API to put the tooltip for images?
>>>> Thanks,
>>>> BG
>>>>
>>
>>
>
>]]>Chris Gross2007-10-30T17:46:17-00:00Re: How to provide tooltip text for images in grid view?
https://www.eclipse.org/forums/index.php/mv/msg/13409/42616/#msg_42616
built-in cell tooltip support in Grid. That wouldn't be very difficult
to do by modifying GridColumnLabelProvider. Anyway, the existing
support should be more than sufficient.
-Chris
Tom Schindl wrote:
> Hi,
>
> for me tooltips simply work as designed (I've tested on OS-X) only
> please take a look at the nebula-snippets available in CVS (Snippet5 is
> holds the code).
>
> I suppose you simply forgot to add this line to your Viewer-Setup :-)
>
> -----8<-----
> ColumnViewerToolTipSupport.enableFor(v,ToolTip.NO_RECREATE);
> -----8<-----
>
> which is required to get ToolTips working for ColumnViewer and it's
> friends :-)
>
> We should try to port more JFace-Snippets and make a dedicated wiki page
> (any volunteers :-) most of the time the only task is to copy the
> existing JFace-Snippet and replace the Table/TreeViewer for their grid
> counter parts.
>
> Tom
>
> Tom Schindl schrieb:
>> Hi,
>>
>> are there no hover-events generated by the Grid when one moves the
>> mouse. The ToolTip support build into ever viewer inheriting from
>> JFace listens to those events and opens a SWT-Shell to present the
>> ToolTip which could be very fancy.
>>
>> If this is not working for Grid like it does for SWT I think we need a
>> bug with a snippet and track the problem down.
>>
>> Tom
>>
>> Chris Gross schrieb:
>>> Grid does have the ability to show cell specific tooltips but I don't
>>> believe that functionality is in the viewer. You should be able to
>>> call GridItem.setToolTipText(index,String) in your
>>> GCLP.update(ViewerCell) method.
>>>
>>> Regards,
>>> -Chris
>>>
>>> BG wrote:
>>>> Hello,
>>>>
>>>> I am using GridColumnLabelProvider to put a image in one of the
>>>> columns of my grid view. But am not able to put (return) a tooltip
>>>> text for the image. I tried with getTooltipText but no use. Is there
>>>> any API to put the tooltip for images?
>>>> Thanks,
>>>> BG
>>>>
>>
>>
>
>]]>Chris Gross2007-10-30T17:46:17-00:00