/** * Deactivates the currently active cell editor. */ public void applyEditorValue() { CellEditor c = this.cellEditor; if (c != null) { // null out cell editor before calling save // in case save results in applyEditorValue being re-entered // see 1GAHI8Z: ITPUI:ALL - How to code event notification when // using cell editor ? this.cellEditor = null; Item t = this.tableItem; // don't null out table item -- same item is still selected if (t != null && !t.isDisposed()) { saveEditorValue(c, t); } setEditor(null, null, 0); c.removeListener(cellEditorListener); Control control = c.getControl(); if (control != null) { if (mouseListener != null) { control.removeMouseListener(mouseListener); } if (focusListener != null) { control.removeFocusListener(focusListener); } } c.deactivate(); } }