@Override public void cancelEditor() { fEditor.removeListener(this); }
@Override public void applyEditorValue() { fEditor.removeListener(this); modifyValue(fRow, fCol, fEditor.getValue()); }
/** * Cancels the active cell editor, without saving the value back to the * domain model. */ public void cancelEditing() { if (fCellEditor != null) { setEditor(null, null, 0); fCellEditor.removeListener(fCellEditorListener); CellEditor oldEditor = fCellEditor; fCellEditor = null; oldEditor.deactivate(); } }
/** * Cancels the active cell editor, without saving the value back to the * domain model. */ public void cancelEditing() { if (cellEditor != null) { setEditor(null, null, 0); cellEditor.removeListener(cellEditorListener); CellEditor oldEditor = cellEditor; cellEditor = null; oldEditor.deactivate(); } }
public void deactivate() { fCellEditor.removeListener(this); fControl.removeFocusListener(this); fCellEditor.deactivate(); fTree1.forceFocus(); }
/** * Deactivate the currently active cell editor. */ /* package */ void deactivateCellEditor() { treeEditor.setEditor(null, null, columnToEdit); if (cellEditor != null) { cellEditor.deactivate(); fireCellEditorDeactivated(cellEditor); cellEditor.removeListener(editorListener); cellEditor = null; } // clear any error message from the editor setErrorMessage(null); }
/** * Deactivate the currently active cell editor. */ /* package */ void deactivateCellEditor() { treeEditor.setEditor(null, null, columnToEdit); if (cellEditor != null) { cellEditor.deactivate(); fireCellEditorDeactivated(cellEditor); cellEditor.removeListener(editorListener); cellEditor = null; } // clear any error message from the editor setErrorMessage(null); }
/** * Deactivate the currently active cell editor. */ /* package */ void deactivateCellEditor() { treeEditor.setEditor(null, null, columnToEdit); if (cellEditor != null) { cellEditor.deactivate(); fireCellEditorDeactivated(cellEditor); cellEditor.removeListener(editorListener); cellEditor = null; } // clear any error message from the editor setErrorMessage(null); }
/** * Deactivates the currently active cell editor. */ public void applyEditorValue() { CellEditor c = fCellEditor; 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 ? fCellEditor = null; Item t = fTableItem; // 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(fCellEditorListener); Control control = c.getControl(); if (control != null) { if (fMouseListener != null) { control.removeMouseListener(fMouseListener); } if (fFocusListener != null) { control.removeFocusListener(fFocusListener); } } c.deactivate(); } }
/** * 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(); } }
cellEditor.removeListener(cellEditorListener);
cellEditor.removeListener(cellEditorListener);
c.removeListener(cellEditorListener); Control control = c.getControl(); if (control != null && !control.isDisposed()) {
cellEditor.removeListener(cellEditorListener);
c.removeListener(cellEditorListener); Control control = c.getControl(); if (control != null && !control.isDisposed()) {
c.removeListener(cellEditorListener); Control control = c.getControl(); if (control != null && !control.isDisposed()) {