if (table.isDisposed()) return; table.removeListener(SWT.FocusIn, tableListener); table.removeListener(SWT.MouseDown, tableListener); int columns = table.getColumnCount(); for (int i = 0; i < columns; i++) { TableColumn col = table.getColumn(i); col.removeListener(SWT.Resize, resizeListener); } ScrollBar hBar = table.getHorizontalBar(); if (hBar != null) { hBar.removeListener(SWT.Selection, resizeListener); } ScrollBar vBar = table.getVerticalBar(); if (vBar != null) { vBar.removeListener(SWT.Selection, resizeListener); } }
if (table.isDisposed()) return; int oldRow = row; row = -1; int count = table.getItemCount(); if (count == 0) { resize(); } else { setRowColumn(oldRow == 0 ? 0 : oldRow -1, column, true); } }
		public void run() {			if (table.isDisposed())				return;			table.removeListener(SWT.FocusIn, tableListener);			table.removeListener(SWT.MouseDown, tableListener);			int columns = table.getColumnCount();			for (int i = 0; i < columns; i++) {				TableColumn col = table.getColumn(i);				col.removeListener(SWT.Resize, resizeListener);			}			ScrollBar hBar = table.getHorizontalBar();			if (hBar != null) {				hBar.removeListener(SWT.Selection, resizeListener);			}			ScrollBar vBar = table.getVerticalBar();			if (vBar != null) {				vBar.removeListener(SWT.Selection, resizeListener);			}		}