Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ColumnLabelProvider SWT tooltip problem

 
Diarmuid Mc Donald
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to add the TreeViewer enable ColumnViewerToolTipSupport for the TreeViewer

ColumnViewerToolTipSupport.enableFor(treeViewer);
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic