public void toggleActions(){
for (int i = 0; i < actions.length; i++) {
AnAction action = actions[i];
if (action instanceof RerunScriptAction) {
RerunScriptAction rerunScriptAction = (RerunScriptAction) action;
rerunScriptAction.setEnabled(!rerunScriptAction.isEnabled());
}
if (action instanceof StopScriptAction) {
StopScriptAction stopScriptAction = (StopScriptAction) action;
stopScriptAction.setEnabled(!stopScriptAction.isEnabled());