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:
Anton Makeev
2012-07-08 11:23:08 +02:00
parent 2cd947b5d6
commit 4f3c46baec
2 changed files with 6 additions and 1 deletions
@@ -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;
@@ -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);