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

Bug 346670

Summary: Provide API for tooltips on table cells
Product: [RT] Riena Reporter: Stephan Mann <stephan.mann>
Component: ridgetAssignee: Thorsten Schenkel <thorsten.schenkel>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: christian.campo
Version: 3.0.0   
Target Milestone: 3.0.0   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 346859    
Bug Blocks:    
Attachments:
Description Flags
TableRidget with JFace tool tips for cells none

Description Stephan Mann CLA 2011-05-20 09:01:18 EDT
Please provide an API to set tooltips on table cells. This is supported by JFace but there is no ridget API in Riena.
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet037FancyCustomTooltips.java?view=markup
Comment 1 Thorsten Schenkel CLA 2011-06-01 05:26:11 EDT
The API of the TableRidget has a new method: setNativeToolTip(boolean)
This allows to decide between two different implementation for tool tip.
1. native: displays the SWT tool tips
2. not native: uses JFace tool tips
The JFace tool tips can be customized by the developer. Therefore the interface IColumnFormatter has some new methods (e.g. getToolTipBackgroundColor, getToolTipImage).
Both implementations (native and JFace) can display different tool tip texts for every cell. The developer must implement the method IColumnFormatter.getToolTip(Object) to return the text of the cell tool tip.
Comment 2 Thorsten Schenkel CLA 2011-06-01 05:27:23 EDT
Created attachment 197071 [details]
TableRidget with JFace tool tips for cells
Comment 3 Thorsten Schenkel CLA 2011-06-01 05:35:53 EDT
The patch also includes the changes of the bug 346859.
Comment 4 Thorsten Schenkel CLA 2011-06-20 03:58:07 EDT
patch commited