mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AppCode:Run Configurations: executable target support (OC-3083)
AppCode:Instruments: refactored runner, now uses same base as a normal runner, tests support (OC-2373)
This commit is contained in:
@@ -25,13 +25,14 @@ import com.intellij.execution.ui.RunContentDescriptor;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.actionSystem.PlatformDataKeys;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.UserDataHolderBase;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
|
||||
public class ExecutionEnvironment {
|
||||
public class ExecutionEnvironment extends UserDataHolderBase {
|
||||
@Nullable private final Project myProject;
|
||||
|
||||
@NotNull private RunProfile myRunProfile;
|
||||
|
||||
+4
@@ -99,6 +99,10 @@ public class RunConfigurationsComboBoxAction extends ComboBoxAction implements D
|
||||
String name = settings.getName();
|
||||
if (target != DefaultExecutionTarget.INSTANCE) {
|
||||
name += " | " + target.getDisplayName();
|
||||
} else {
|
||||
if (!settings.canRunOn(target)) {
|
||||
name += " | Nothing to run on";
|
||||
}
|
||||
}
|
||||
presentation.setText(name, false);
|
||||
setConfigurationIcon(presentation, settings, project);
|
||||
|
||||
Reference in New Issue
Block a user