int textHeight;
void drawText(String label, GC gc, Point position, int index) {	Table parent = getParent();	boolean drawSelection;	int textOffset;	int textHeight;			if (label != null) {		drawSelection = (index == TableColumn.FIRST || (parent.getStyle() & SWT.FULL_SELECTION) != 0);		if (isSelected() == true && drawSelection == true) {			gc.setBackground(getSelectionBackgroundColor());			gc.setForeground(getSelectionForegroundColor());		}		textHeight = gc.stringExtent(label).y;		textOffset = (parent.getItemHeight() - textHeight) / 2;			// vertically center the text		gc.drawString(label, position.x, position.y + textOffset);		if (isSelected() == true && drawSelection == true) {			gc.setBackground(parent.getBackground());			gc.setForeground(parent.getForeground());		}	}}