SetTooltipText for TreeItem not defined

Greetings to Stackoverflownians colleague!

I am creating an RCP Eclipse application and am facing a problem:

I want to set tooltip text on TreeItem , but this class does not inherit Control , which is a class withsetTooltipText

EDIT . It seems that jface should take care of this without problems using LabelProvider. I use the ColumnLabelProviderc method getToolTipTextfor each column of the complex TreeViewer, but it does not work. I wonder why...

+4
source share
2 answers

C TreeVieweruse

ColumnViewerToolTipSupport.enableFor(viewer);

, CellLabelProvider , getToolTipText ( , - ..).

+1

, SWT-Tree. TreeViewer (JFace), . TreeViewer .

()

!

+3

Source: https://habr.com/ru/post/1533509/


All Articles