@Override protected void fireCancelEditor() { /* bug 58540: change signature refactoring interaction: validate as you type [refactoring] */ text.setText(fOriginalValue); super.fireApplyEditorValue(); }
@Override protected void fireCancelEditor() { /* bug 58540: change signature refactoring interaction: validate as you type [refactoring] */ text.setText(fOriginalValue); super.fireApplyEditorValue(); }
protected void fireCancelEditor() { /* bug 58540: change signature refactoring interaction: validate as you type [refactoring] */ text.setText(fOriginalValue); super.fireApplyEditorValue(); }
/** * Processes a focus lost event that occurred in this cell editor. * <p> * The default implementation of this framework method applies the current * value and deactivates the cell editor. Subclasses should call this method * at appropriate times. Subclasses may also extend or reimplement. * </p> */ protected void focusLost() { if (isActivated()) { fireApplyEditorValue(); deactivate(); } }
/** * Processes a focus lost event that occurred in this cell editor. * <p> * The default implementation of this framework method applies the current * value and deactivates the cell editor. Subclasses should call this method * at appropriate times. Subclasses may also extend or reimplement. * </p> */ protected void focusLost() { if (isActivated()) { fireApplyEditorValue(); deactivate(); } }
/** * Processes a focus lost event that occurred in this cell editor. * <p> * The default implementation of this framework method applies the current * value and deactivates the cell editor. Subclasses should call this method * at appropriate times. Subclasses may also extend or reimplement. * </p> */ protected void focusLost() { if (isActivated()) { fireApplyEditorValue(); deactivate(); } }
/** * Processes a key release event that occurred in this cell editor. * <p> * The default implementation of this framework method cancels editing when * the ESC key is pressed. When the RETURN key is pressed the current value * is applied and the cell editor deactivates. Subclasses should call this * method at appropriate times. Subclasses may also extend or reimplement. * </p> * * @param keyEvent * the key event */ protected void keyReleaseOccured(KeyEvent keyEvent) { if (keyEvent.character == '\u001b') { // Escape character fireCancelEditor(); } else if (keyEvent.character == '\r') { // Return key fireApplyEditorValue(); deactivate(); } }
/** * Processes a key release event that occurred in this cell editor. * <p> * The default implementation of this framework method cancels editing when * the ESC key is pressed. When the RETURN key is pressed the current value * is applied and the cell editor deactivates. Subclasses should call this * method at appropriate times. Subclasses may also extend or reimplement. * </p> * * @param keyEvent * the key event */ protected void keyReleaseOccured(KeyEvent keyEvent) { if (keyEvent.character == '\u001b') { // Escape character fireCancelEditor(); } else if (keyEvent.character == '\r') { // Return key fireApplyEditorValue(); deactivate(); } }
/** * Processes a key release event that occurred in this cell editor. * <p> * The default implementation of this framework method cancels editing when * the ESC key is pressed. When the RETURN key is pressed the current value * is applied and the cell editor deactivates. Subclasses should call this * method at appropriate times. Subclasses may also extend or reimplement. * </p> * * @param keyEvent * the key event */ protected void keyReleaseOccured(KeyEvent keyEvent) { if (keyEvent.character == '\u001b') { // Escape character fireCancelEditor(); } else if (keyEvent.character == '\r') { // Return key fireApplyEditorValue(); deactivate(); } }