use of com.intellij.openapi.editor.EditorGutter in project intellij-community by JetBrains.
the class PyStudyRunContextAction method update.
@Override
public void update(AnActionEvent event) {
final ConfigurationContext context = ConfigurationContext.getFromContext(event.getDataContext());
final Location location = context.getLocation();
if (location == null)
return;
super.update(event);
final InputEvent inputEvent = event.getInputEvent();
final Presentation presentation = event.getPresentation();
if (inputEvent == null && !(context.getDataContext().getData(PlatformDataKeys.CONTEXT_COMPONENT) instanceof EditorGutter)) {
presentation.setText("");
}
}
Aggregations