@Override public void cancelEditor() { deactivateCellEditor(); }
@Override public void cancelEditor() { deactivateCellEditor(); }
public void cancelEditor() { deactivateCellEditor(); }
/** * The expand icon for a node in this viewer has been selected to collapse a * subtree. Deactivate the cell editor * * @param event * the SWT tree event */ private void handleTreeCollapse(TreeEvent event) { if (cellEditor != null) { applyEditorValue(); deactivateCellEditor(); } }
/** * The expand icon for a node in this viewer has been selected to collapse a * subtree. Deactivate the cell editor * * @param event * the SWT tree event */ private void handleTreeCollapse(TreeEvent event) { if (cellEditor != null) { applyEditorValue(); deactivateCellEditor(); } }
/** * The expand icon for a node in this viewer has been selected to collapse a * subtree. Deactivate the cell editor * * @param event * the SWT tree event */ private void handleTreeCollapse(TreeEvent event) { if (cellEditor != null) { applyEditorValue(); deactivateCellEditor(); } }
@Override public void keyReleased(KeyEvent e) { if (e.character == SWT.ESC) { deactivateCellEditor(); } else if (e.keyCode == SWT.F5) { // The following will simulate a reselect setInput(getInput()); } } });
public void keyReleased(KeyEvent e) { if (e.character == SWT.ESC) { deactivateCellEditor(); } else if (e.keyCode == SWT.F5) { // The following will simulate a reselect setInput(getInput()); } } });
@Override public void keyReleased(KeyEvent e) { if (e.character == SWT.ESC) { deactivateCellEditor(); } else if (e.keyCode == SWT.F5) { // The following will simulate a reselect setInput(getInput()); } } });
/** * Reset the properties to their default values. */ public void run() { getPropertySheet().deactivateCellEditor(); getPropertySheet().resetProperties(); } }
/** * Reset the properties to their default values. */ @Override public void run() { getPropertySheet().deactivateCellEditor(); getPropertySheet().resetProperties(); } }
/** * Reset the properties to their default values. */ @Override public void run() { getPropertySheet().deactivateCellEditor(); getPropertySheet().resetProperties(); } }
/** * Toggles the display of categories for the properties. */ @Override public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showCategories(); } else { ps.hideCategories(); } } }
/** * Toggle the display of expert properties. */ public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showExpert(); } else { ps.hideExpert(); } } }
/** * Toggle the display of expert properties. */ @Override public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showExpert(); } else { ps.hideExpert(); } } }
/** * Toggle the display of expert properties. */ @Override public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showExpert(); } else { ps.hideExpert(); } } }
/** * Toggles the display of categories for the properties. */ public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showCategories(); } else { ps.hideCategories(); } } }
/** * Toggles the display of categories for the properties. */ @Override public void run() { PropertySheetViewer ps = getPropertySheet(); ps.deactivateCellEditor(); if (isChecked()) { ps.showCategories(); } else { ps.hideCategories(); } } }
/** * The <code>PropertySheetViewer</code> implementation of this method * declared on <code>Viewer</code> method sets the objects for which the * viewer is currently showing properties. * <p> * The input must be an <code>Object[]</code> or <code>null</code>. * </p> * * @param newInput * the input of this viewer, or <code>null</code> if none */ public void setInput(Object newInput) { // need to save any changed value when user clicks elsewhere applyEditorValue(); // deactivate our cell editor deactivateCellEditor(); // set the new input to the root entry input = (Object[]) newInput; if (input == null) { input = new Object[0]; } if (rootEntry != null) { rootEntry.setValues(input); // ensure first level children are visible updateChildrenOf(rootEntry, tree); } }
/** * The <code>PropertySheetViewer</code> implementation of this method * declared on <code>Viewer</code> method sets the objects for which the * viewer is currently showing properties. * <p> * The input must be an <code>Object[]</code> or <code>null</code>. * </p> * * @param newInput * the input of this viewer, or <code>null</code> if none */ @Override public void setInput(Object newInput) { // need to save any changed value when user clicks elsewhere applyEditorValue(); // deactivate our cell editor deactivateCellEditor(); // set the new input to the root entry input = (Object[]) newInput; if (input == null) { input = new Object[0]; } if (rootEntry != null) { rootEntry.setValues(input); // ensure first level children are visible updateChildrenOf(rootEntry, tree); } // Clear any previous StatusLine messages updateStatusLine(null); }