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

Bug 312315

Summary: TableItem/TreeItem.getBounds() needs more explicit documentation
Product: [Eclipse Project] Platform Reporter: Scott Kovatch <skovatch>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: Documentation
Version: 3.6   
Target Milestone: 3.6 RC3   
Hardware: All   
OS: All   
Whiteboard:

Description Scott Kovatch CLA 2010-05-10 14:07:49 EDT
While fixing 309753 there was some confusion on my part about what TreeItem.getBounds() is really returning. It should return the bounds of the text portion of the item, but it's not clear from the javadoc that that is the case. If there is an image set for the item it isn't part of the bounds.

Likewise, there's no documentation that I can find about SWT.MeasureItem, EraseItem and PaintItem. The snippets show how they are being used, but there's no documentation about the values sent in the event.
Comment 1 Grant Gayed CLA 2010-05-21 14:15:49 EDT
The missing API spec for custom draw is part of bug 81334.  As a side note (not implying that this is a substitute for the javadoc) custom draw is described in http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html .

The javadoc for getBounds() has been clarified for Table/Tree > 20100521.