disable action while project is starting

This commit is contained in:
Eugene Zhuravlev
2012-05-02 22:53:55 +02:00
parent 64d5ae432a
commit 5e96faf26f
@@ -94,7 +94,7 @@ public class RestartAction extends AnAction implements DumbAware {
}
presentation.setIcon(isRunning ? STOP_AND_START_ICON : myIcon);
presentation.setEnabled(true);
presentation.setEnabled(!ExecutorRegistry.getInstance().isStarting(myEnvironment.getProject(), myExecutor.getId(), myRunner.getRunnerId()));
}
public void registerShortcut(final JComponent component) {