Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Tooltip for viewer cells ?
Tooltip for viewer cells ? [message #483155] Mon, 31 August 2009 11:52 Go to next message
byrebg  is currently offline byrebg
Messages: 45
Registered: July 2009
Member
Hi,

I am using a JFace TableViewer in my application. I wanted to know if its
possible to provide tooltips for all the cells in the TableViewer (On
mouse hover on a cell in the selected row)

Thanks in advance for help.

Regards,
BG
Re: Tooltip for viewer cells ? [message #483384 is a reply to message #483155] Tue, 01 September 2009 12:15 Go to previous messageGo to next message
byrebg  is currently offline byrebg
Messages: 45
Registered: July 2009
Member
Hi,

I was able to find out a solution for my requirement. The table's default
tooltip text can be overridden by the customized cell value.

So while handling the MouseHover event, a update of the table tooltiptext
can be used.

i.e : Add the following lines int the Switch Case for MouseHover

ViewerCell cell=viewer.getCell(new Point(event.x, event.y));
viewer.getTable().setToolTipText(cell.getText());


Thanks and Regards,
BG
Re: Tooltip for viewer cells ? [message #485488 is a reply to message #483384] Sat, 12 September 2009 00:11 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5419
Registered: July 2009
Senior Member
Take a look at ColumnViewerToolTipSupport

Tom

BG schrieb:
> Hi,
>
> I was able to find out a solution for my requirement. The table's
> default tooltip text can be overridden by the customized cell value.
> So while handling the MouseHover event, a update of the table
> tooltiptext can be used.
>
> i.e : Add the following lines int the Switch Case for MouseHover
>
> ViewerCell cell=viewer.getCell(new Point(event.x, event.y));
> viewer.getTable().setToolTipText(cell.getText());
>
>
> Thanks and Regards,
> BG
>
Previous Topic:TableViewerValidation
Next Topic:Treeviewer losing expand/collapse boxes when jarred
Goto Forum:
  


Current Time: Thu Oct 23 18:48:11 GMT 2014

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

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