gc.setFont(item.getFont());
void calculateItemHeight(SelectableItem item) {	GC gc;	String itemText;	int itemHeight = -1;	if (itemImageExtent != null && textHeight != -1) {		return;	}	itemText = item.getText();	if (itemText != null && textHeight == -1) {		gc = new GC(this);		itemHeight = gc.stringExtent(itemText).y;		textHeight = itemHeight;		gc.dispose();	}	if (itemImageExtent == null) {		itemImageExtent = getImageExtent(item);		if (itemImageExtent != null) {			if (itemImageExtent.y > textHeight) {				itemHeight = itemImageExtent.y;			}			else {				itemHeight = textHeight;			}		}	}	itemHeight += getItemPadding();									// make sure that there is empty space below the image/text	if (itemHeight > getItemHeight()) {								// only set new item height if it's higher because new, 		setItemHeight(itemHeight);									// smaller item height may not include an icon	}}