public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }
/** * Discard all edits contained in the UndoManager. */ public void discard() { undo.discardAllEdits(); }
/** * Invoked when the user activates the "Clear All Drawings" menu option. Could also be used just before writing the * Zone out to persistent storage in order to keep the file size as small as possible (but leaving it there for * debugging might be nice). */ public void clear() { manager.discardAllEdits(); }
/** Called from discardAllEdits() inner class */ private void superDiscardAllEdits() { super.discardAllEdits(); }
/** {@inheritDoc} */ public void setText(String t) { super.setText(t); undoManager.discardAllEdits(); }
@Override public synchronized void discardAllEdits() { super.discardAllEdits(); _bPaused = false; _undoAtomNest.clear(); }
/** * This method listens for property change events and discards all edits * if it hears are NETWORK_VIEW_FOCUSED event. * * @param e The change event. */ public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(CytoscapeDesktop.NETWORK_VIEW_FOCUSED)) { CyUndo.undoManager.discardAllEdits(); } } }
@Override public synchronized void discardAllEdits() { super.discardAllEdits(); this.main.setUndoEnabled(false); }
@Override public synchronized void discardAllEdits() { super.discardAllEdits(); discardCache(); } }
@Override public void discardAllEdits() { super.discardAllEdits(); updateUI(); }
@Override public synchronized void discardAllEdits() { super.discardAllEdits(); updateDirty(); }
private void loadFrom(LogPreferences prefs) { logLevel_.setSelectedItem(prefs.logLevel); wrapLinesBox_.setSelected(prefs.wrapLines); limitLogOutputCheckBox_.setSelected(prefs.limitLogOutput); logCharacterLimitModel_.setValue(prefs.logCharacterLimit); patternField_.setText(prefs.logPattern); patternUndoManager_.discardAllEdits(); previewLog_.setForegroundsFrom(prefs.logStyleForegrounds); }
/** * This method listens for changes to the current network and discards all * edits when the network changes. * * @param e The change event. */ public void handleEvent(final SetCurrentNetworkViewEvent e) { if (e.getNetworkView() != null) undo.getUndoManager().discardAllEdits(); }
/** * Discards all edits. */ @Override public void discardAllEdits() { super.discardAllEdits(); updateActions(); setHasSignificantEdits(false); }
/** * Convenience method for clearing out the UndoManager */ public void purgeUndos() { if (undoMngr != null) { undoMngr.discardAllEdits(); undoAction.updateUndoState(); redoAction.updateRedoState(); } }
public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }
public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }
public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }
public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }
public void discardAllEdits() { boolean undoable = canUndo(); boolean redoable = canRedo(); boolean changed = hasChanged(); super.discardAllEdits(); modificationMarker = editToBeUndone(); firePropertyChangeEvent(UndoManager.UndoName, undoable, canUndo()); firePropertyChangeEvent(UndoManager.UndoName, redoable, canRedo()); }