Control control = item.getControl(); if (control != null && !control.isDisposed()) { control.setVisible(false); }
void destroyItem(CoolItem item) {	int row = findItem(item).y;	if (row == -1) return;	Rectangle bounds = item.getBounds();	removeItemFromRow(item, row);	redraw(bounds.x, bounds.y, CoolItem.MINIMUM_WIDTH, bounds.height, false);		Control control = item.getControl();	if (control != null && !control.isDisposed()) {		control.setVisible(false);	}		/* Fix the id of each remaining item. */	for (row = 0; row < items.length; row++) {		for (int i = 0; i < items[row].length; i++) {			CoolItem next = items[row][i];			if (next.id > item.id) --next.id; 			}		}	relayout();	}