mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show task combo if any server configured
This commit is contained in:
@@ -87,16 +87,17 @@ public class SwitchTaskCombo extends ComboBoxAction implements DumbAware {
|
||||
presentation.setIcon(null);
|
||||
}
|
||||
else {
|
||||
LocalTask activeTask = TaskManager.getManager(project).getActiveTask();
|
||||
TaskManager taskManager = TaskManager.getManager(project);
|
||||
LocalTask activeTask = taskManager.getActiveTask();
|
||||
presentation.setVisible(true);
|
||||
presentation.setEnabled(true);
|
||||
|
||||
if (isImplicit(activeTask) && !TaskSettings.getInstance().ALWAYS_DISPLAY_COMBO) {
|
||||
presentation.setText("");
|
||||
presentation.setIcon(null);
|
||||
presentation.setDescription("Switch Tasks");
|
||||
if (isImplicit(activeTask) &&
|
||||
taskManager.getAllRepositories().length == 0 &&
|
||||
!TaskSettings.getInstance().ALWAYS_DISPLAY_COMBO) {
|
||||
presentation.setVisible(false);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
String s = getText(activeTask);
|
||||
presentation.setText(s);
|
||||
presentation.setIcon(activeTask.getIcon());
|
||||
|
||||
Reference in New Issue
Block a user