File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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);
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ColumnLabelProvider SWT tooltip problem