SOE on setEnabled(). setEnabled() changes were propagated back to action group with the request to update state (EA-71014)

This commit is contained in:
Nikolay Krasko
2016-02-04 18:47:44 +03:00
committed by Nikolay Krasko
parent e82d549853
commit 1e50847985
@@ -21,13 +21,11 @@ import com.intellij.openapi.actionSystem.DefaultActionGroup;
import com.intellij.openapi.actionSystem.Presentation;
public class KotlinActionGroup extends DefaultActionGroup {
@Override
public void update(AnActionEvent event) {
Presentation p = event.getPresentation();
boolean hasProject = event.getData(CommonDataKeys.PROJECT) != null;
p.setVisible(hasProject);
p.setEnabled(hasProject);
}
}