RerunScriptAction rerunScriptAction = (RerunScriptAction) action;
rerunScriptAction.setEnabled(!rerunScriptAction.isEnabled());
}
if (action instanceof StopScriptAction) {
StopScriptAction stopScriptAction = (StopScriptAction) action;
stopScriptAction.setEnabled(!stopScriptAction.isEnabled());
}
if (action instanceof CloseScriptConsoleAction) {
CloseScriptConsoleAction closeSctiptConsoleAction = (CloseScriptConsoleAction) action;
closeSctiptConsoleAction.setEnabled(!closeSctiptConsoleAction.isEnabled());