int itemIndex = getParent().indexOf(this); Vector labels = getDataLabels(); String label = null;  if (itemIndex == -1) { error(SWT.ERROR_CANNOT_GET_TEXT); } if (columnIndex >= 0 && columnIndex < labels.size()) { label = (String) labels.elementAt(columnIndex); } if (label == null) { label = ""; } return label;
return getText(0);
public String getText(int columnIndex) {	checkWidget();	int itemIndex = getParent().indexOf(this);	Vector labels = getDataLabels();	String label = null;		if (itemIndex == -1) {		error(SWT.ERROR_CANNOT_GET_TEXT);	}		if (columnIndex >= 0 && columnIndex < labels.size()) {		label = (String) labels.elementAt(columnIndex);	}	if (label == null) {		label = "";			// label vector is initialized with null instead of empty Strings	}	return label;}