/** * Adds the given command to current compound command. * * @param cmd * The command to add */ public void addToCurrentCompoundCommand(AbstractUndoableCommand cmd) { getCurrentCompoundCommand().addCommand(cmd); // Fire the 'doCompoundEdit' event historyBrowser.fireDoCompoundEdit (new HistoryBrowserEvent(getCurrentCompoundCommand())); }
/** * Adds the given command to current compound command. * * @param cmd * The command to add */ public void addToCurrentCompoundCommand(AbstractUndoableCommand cmd) { getCurrentCompoundCommand().addCommand(cmd); // Fire the 'doCompoundEdit' event historyBrowser.fireDoCompoundEdit (new HistoryBrowserEvent(getCurrentCompoundCommand())); }
/** * Adds and executes the current compound command to history browser. */ public void performCurrentCompoundCommand() { if (getCurrentCompoundCommand().getCommandNumber() > 0) { historyBrowser.addCommand(getCurrentCompoundCommand()); // Fire the 'compoundEditPerformed' event historyBrowser.fireCompoundEditPerformed (new HistoryBrowserEvent(currentCompoundCommand)); // Reset the current compound command currentCompoundCommand = null; } }
/** * Adds and executes the current compound command to history browser. */ public void performCurrentCompoundCommand() { if (getCurrentCompoundCommand().getCommandNumber() > 0) { historyBrowser.addCommand(getCurrentCompoundCommand()); // Fire the 'compoundEditPerformed' event historyBrowser.fireCompoundEditPerformed (new HistoryBrowserEvent(currentCompoundCommand)); // Reset the current compound command currentCompoundCommand = null; } }