Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-03-16 06:04:09 +0000
committerUwe Stieber2012-03-16 06:04:09 +0000
commit8220fd0591dea7f869b9d33c6279d6ca270c447f (patch)
tree045797ed768b67a66838f5e06373f9d4e064aae2 /target_explorer/plugins/org.eclipse.tcf.te.launch.core
parentbfe7fb32f8519d321367ab9e090961353e5ead2a (diff)
downloadorg.eclipse.tcf-8220fd0591dea7f869b9d33c6279d6ca270c447f.tar.gz
org.eclipse.tcf-8220fd0591dea7f869b9d33c6279d6ca270c447f.tar.xz
org.eclipse.tcf-8220fd0591dea7f869b9d33c6279d6ca270c447f.zip
Target Explorer: Linux application launch UI work
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.launch.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/steps/AbstractLaunchStep.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/steps/AbstractLaunchStep.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/steps/AbstractLaunchStep.java
index 8b425d9e4..0eede62f0 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/steps/AbstractLaunchStep.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/steps/AbstractLaunchStep.java
@@ -8,6 +8,7 @@ package org.eclipse.tcf.te.launch.core.steps;
import org.eclipse.core.runtime.Assert;
import org.eclipse.debug.core.ILaunch;
+import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.tcf.te.launch.core.lm.interfaces.IContextSelectorLaunchAttributes;
import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
import org.eclipse.tcf.te.runtime.model.interfaces.IModelNode;
@@ -43,4 +44,16 @@ public abstract class AbstractLaunchStep extends AbstractStep {
Assert.isTrue(context instanceof IModelNode);
return (IModelNode)context;
}
+
+ /**
+ * Returns the uses launch configuration.
+ *
+ * @param context The step context.
+ * @return
+ */
+ protected ILaunchConfiguration getLaunchConfiguration(IStepContext context) {
+ ILaunch launch = getLaunch(context);
+ Assert.isNotNull(launch);
+ return launch.getLaunchConfiguration();
+ }
}

Back to the top