/** * Returns whether a redo is possible. * * @see #canUndo() * @see #redoLastAction() */ public boolean canRedo() { return undoManager.canRedo(); }
/** * Attempt to redo the last action. * * @see #undoLastAction() */ public void redoLastAction() { // NOTE: The try/catch block shouldn't be necessary... try { if (undoManager.canRedo()) { undoManager.redo(); } } catch (CannotRedoException cre) { cre.printStackTrace(); } }
if (canRedo()) { a.setEnabled(true); text = getRedoPresentationName();
@Override public boolean isRedo() { return this.undoManager.canRedo(); }
/** * Returns whether a redo is possible. * * @see #canUndo() * @see #redoLastAction() */ public boolean canRedo() { return undoManager.canRedo(); }
@Override public boolean isRedo() { return this.undoManager.canRedo(); }
/** * Attempt to redo the last action. * * @see #undoLastAction() */ public void redoLastAction() { // NOTE: The try/catch block shouldn't be necessary... try { if (undoManager.canRedo()) undoManager.redo(); } catch (CannotRedoException cre) { cre.printStackTrace(); } }
/** * Attempt to redo the last action. * * @see #undoLastAction() */ public void redoLastAction() { // NOTE: The try/catch block shouldn't be necessary... try { if (undoManager.canRedo()) { undoManager.redo(); } } catch (CannotRedoException cre) { cre.printStackTrace(); } }
/** * Attempt to redo the last action. * * @see #undoLastAction() */ public void redoLastAction() { // NOTE: The try/catch block shouldn't be necessary... try { if (undoManager.canRedo()) undoManager.redo(); } catch (CannotRedoException cre) { cre.printStackTrace(); } }
@Override public boolean redo() { if (this.undoManager.canRedo() && isTextEditorVisible()) { try { this.undoManager.redo(); } catch (final CannotRedoException ex) { LOGGER.warn("Can't make redo in plantUML editor : " + ex.getMessage()); } finally { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { startRenderScript(); } }); } } return this.undoManager.canRedo(); }
if (canRedo()) { a.setEnabled(true); text = getRedoPresentationName();
if (canRedo()) { a.setEnabled(true); text = getRedoPresentationName();
if (canRedo()) { a.setEnabled(true); text = getRedoPresentationName();