Bug 255229 [Viewers] [3.5] NPE in ColumnViewerToolTipSupport
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ViewerRow.java
* Note: Requires {@link StyledCellLabelProvider} with owner draw enabled.
	 * 
	 * @param columnIndex the index of the column
	 * @param styleRanges the styled ranges
	 * 
	 * @since 3.4
	 */
	public void setStyleRanges(int columnIndex, StyleRange[] styleRanges) {
		getItem().setData(KEY_TEXT_LAYOUT + columnIndex, styleRanges);
	}
	
	
	/**
	 * Returns the style ranges to be applied on the text label at the column index or <code>null</code> if no
	 * style ranges have been set.
	 * 
	 * @param columnIndex the index of the column
	 * @return styleRanges the styled ranges
	 * 
	 * @since 3.4
	 */
	public StyleRange[] getStyleRanges(int columnIndex) {
		return (StyleRange[]) getItem().getData(KEY_TEXT_LAYOUT + columnIndex);
	}
	
	int getWidth(int columnIndex) {
		return getBounds(columnIndex).width;
	}
}