/** * Update Undo/Redo icons state * * @param canUndo Flag whether the undo button should be enabled * @param canRedo Flag whether the redo button should be enabled */ public void updateUndoRedoIcons(boolean canUndo, boolean canRedo) { toolbar.updateUndoRedoIcons(canUndo, canRedo); } }
/** * Called when history changes, it updates toolbar */ @Override public void notifyChangeInHistory(UndoHistory history) { ((JMeterToolBar)toolbar).updateUndoRedoIcons(history.canUndo(), history.canRedo()); }