mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hide disabled executor actions
This commit is contained in:
@@ -192,6 +192,7 @@ public class ExecutorRegistryImpl extends ExecutorRegistry {
|
||||
|
||||
if (project == null || !project.isInitialized() || project.isDisposed() || DumbService.getInstance(project).isDumb()) {
|
||||
presentation.setEnabled(false);
|
||||
presentation.setVisible(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -212,6 +213,7 @@ public class ExecutorRegistryImpl extends ExecutorRegistry {
|
||||
}
|
||||
|
||||
presentation.setEnabled(enabled);
|
||||
presentation.setVisible(enabled);
|
||||
presentation.setText(text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user