wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes ColumnLabelProvider SWT tooltip problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ColumnLabelProvider SWT tooltip problem" Watch "ColumnLabelProvider SWT tooltip problem" New topic
Author

ColumnLabelProvider SWT tooltip problem

Diarmuid Mc Donald
Greenhorn

Joined: Jul 17, 2007
Posts: 9
Hi guys,

i am using eclipse 3.3, I have created a class that extends ColumnLabelProvider and have added this to a TreeViewerColumn.

The getText and getImage work fine, but the getToolTipText(), never seems to get called. I also have getToolTipImage() returning a blank image.

Any help would be greatly appreciated
Diarmuid Mc Donald
Greenhorn

Joined: Jul 17, 2007
Posts: 9
I had to add the TreeViewer enable ColumnViewerToolTipSupport for the TreeViewer

ColumnViewerToolTipSupport.enableFor(treeViewer);
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ColumnLabelProvider SWT tooltip problem