Community
Participate
Working Groups
Like ColumnViewerToolTipSupport#enableFor() can be used to activate tooltips on a TableViewer, it should also be possible to activate tooltips for a TreeViewer.
Created attachment 187649 [details] Enable cell tooltips in TreeViewer This patch add support for cell tooltips in TreeViewer + all needed client/server re-factorings.
I saw changes regarding cell tooltips for the Tree arrive in CVS (including the JFace API part), but it doesn't seem to work. Am I missing something?
Hi Ruediger, could you provide a snippet that doesn't work for you?
I extended the TreeViewerExample from the org.eclipse.rap.examples.pages plug-in: * added ColumnViewerToolTipSupport.enableFor( viewer ) after creating the TreeViewers * implemented getToolTipText() in the label provider Is there anything else necessary to get tooltips for the TreeViewer?
I did exactly the same testing.... and it works. Make sure that you do this for the second TreeViewer (with columns). Just found that is doesn't work for Tree/TableViewer without columns (first TreeViewer).
Thanks for the fast reply, Ivan. I only used the column-less TreeViewer. It works on the one with columns.
The cell tooltips for column-less Tree/TableViewer is fixed in CVS HEAD.
Is this worth a N&N entry? What do you think?
Sure... I plan to write it on Monday :-)