int columns = table.getColumnCount(); for (int i = 0; i < columns; i++) { TableColumn col = table.getColumn(i);
if (column != -1) { TableColumn col = table.getColumn(column); col.removeListener(SWT.Dispose, disposeColumnListener); col.removeListener(SWT.Move, resizeListener);
void dispose(Event event) {	Display display = getDisplay();	display.asyncExec(new Runnable() {		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);			}		}	});}