Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334675

Summary: Provide tooltip support for TreeViewer
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: JFaceAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan
Version: unspecified   
Target Milestone: 1.4 M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Enable cell tooltips in TreeViewer none

Description Rüdiger Herrmann CLA 2011-01-18 12:19:03 EST
Like ColumnViewerToolTipSupport#enableFor() can be used to activate tooltips on a TableViewer, it should also be possible to activate tooltips for a TreeViewer.
Comment 1 Ivan Furnadjiev CLA 2011-01-26 10:55:48 EST
Created attachment 187649 [details]
Enable cell tooltips in TreeViewer

This patch add support for cell tooltips in TreeViewer + all needed client/server re-factorings.
Comment 2 Rüdiger Herrmann CLA 2011-01-28 10:23:11 EST
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?
Comment 3 Ivan Furnadjiev CLA 2011-01-28 10:33:03 EST
Hi Ruediger, could you provide a snippet that doesn't work for you?
Comment 4 Rüdiger Herrmann CLA 2011-01-28 10:55:02 EST
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?
Comment 5 Ivan Furnadjiev CLA 2011-01-28 11:02:51 EST
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).
Comment 6 Rüdiger Herrmann CLA 2011-01-28 11:07:56 EST
Thanks for the fast reply, Ivan. I only used the column-less TreeViewer. It works on the one with columns.
Comment 7 Ivan Furnadjiev CLA 2011-01-28 11:39:20 EST
The cell tooltips for column-less Tree/TableViewer is fixed in CVS HEAD.
Comment 8 Rüdiger Herrmann CLA 2011-01-28 12:50:41 EST
Is this worth a N&N entry? What do you think?
Comment 9 Ivan Furnadjiev CLA 2011-01-28 13:00:03 EST
Sure... I plan to write it on Monday :-)