mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
CPP-30047 Don't show execution target name in run configuration selector
IJ-CR-95900 GitOrigin-RevId: 0897302091988b5e8a4d5f4b86fb4c917a8dd7ea
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dbda136487
commit
0b3b83f757
@@ -116,11 +116,14 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
|
||||
presentation.putClientProperty(BUTTON_MODE, null);
|
||||
if (project != null && target != null && settings != null) {
|
||||
String name = Executor.shortenNameIfNeeded(settings.getName());
|
||||
if (target != DefaultExecutionTarget.INSTANCE && !target.isExternallyManaged()) {
|
||||
name += " | " + target.getDisplayName();
|
||||
} else {
|
||||
if (!ExecutionTargetManager.canRun(settings.getConfiguration(), target)) {
|
||||
name += " | " + ExecutionBundle.message("run.configurations.combo.action.nothing.to.run.on");
|
||||
if (!ExperimentalUI.isNewUI()) { // there's a separate combo-box for execution targets in new UI
|
||||
if (target != DefaultExecutionTarget.INSTANCE && !target.isExternallyManaged()) {
|
||||
name += " | " + target.getDisplayName();
|
||||
}
|
||||
else {
|
||||
if (!ExecutionTargetManager.canRun(settings.getConfiguration(), target)) {
|
||||
name += " | " + ExecutionBundle.message("run.configurations.combo.action.nothing.to.run.on");
|
||||
}
|
||||
}
|
||||
}
|
||||
presentation.setText(name, false);
|
||||
@@ -225,7 +228,7 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
|
||||
|
||||
|
||||
if (!ExperimentalUI.isNewUI()) {
|
||||
// no need for targets list in `All configuration` in new UI, since there is a separate combobox for them
|
||||
// no need for targets list in `All configurations` in new UI, since there is a separate combobox for them
|
||||
addTargetGroup(project, allActionsGroup);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user