/** * Updates this action's enabled state and tool tip text. This action is enabled only when there * is a previous frame in the frame list. The tool tip text is "Back to " plus the tool tip text * for the previous frame. */ public void update() { super.update(); Frame previousFrame = getPreviousFrame(); setEnabled(previousFrame != null); setToolTipText(getToolTipText(previousFrame)); }
/** * Updates this action's enabled state. This action is enabled only when there is a frame for the * current selection. */ @Override public void update() { super.update(); Frame selectionFrame = getSelectionFrame(0); setEnabled(selectionFrame != null); }