Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346670 - Provide API for tooltips on table cells
Summary: Provide API for tooltips on table cells
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: 3.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0.0   Edit
Assignee: Thorsten Schenkel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 346859
Blocks:
  Show dependency tree
 
Reported: 2011-05-20 09:01 EDT by Stephan Mann CLA
Modified: 2011-06-20 03:58 EDT (History)
1 user (show)

See Also:


Attachments
TableRidget with JFace tool tips for cells (48.77 KB, patch)
2011-06-01 05:27 EDT, Thorsten Schenkel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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