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

Bug 328387

Summary: [Tree] Add Tree#getGridLineWidth()
Product: [RT] RAP Reporter: Elias Volanakis <elias>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 1.4   
Target Milestone: 1.4 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Elias Volanakis CLA 2010-10-21 13:28:30 EDT
For single-sourcing we should have tree.getGridLineWidth() - just as we also have table.getGridLineWidth().

Here is the code from SWT:


/**
 * Returns the width in pixels of a grid line.
 *
 * @return the width of a grid line in pixels
 * 
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 * 
 * @since 3.1
 */
public int getGridLineWidth () {
	checkWidget ();
	return GRID_WIDTH;
}
Comment 1 Ivan Furnadjiev CLA 2010-10-21 13:55:28 EDT
Fixed in CVS HEAD.