Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-02 03:39:34 -0400
committerUwe Stieber2013-10-02 03:55:18 -0400
commit10437c51adcdf3d7913b2990e6eb837cfe4efaeb (patch)
treed1cc6bda685f0f227a7d5760610514005eadc0b3 /target_explorer
parentc613de809415bcce3b50c5a57b1855dab73ed60c (diff)
downloadorg.eclipse.tcf-10437c51adcdf3d7913b2990e6eb837cfe4efaeb.tar.gz
org.eclipse.tcf-10437c51adcdf3d7913b2990e6eb837cfe4efaeb.tar.xz
org.eclipse.tcf-10437c51adcdf3d7913b2990e6eb837cfe4efaeb.zip
Target Explorer: Pass on the launch to the caller on attaching the debugger
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
index 69b91bc93..809b23f57 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
@@ -108,6 +108,7 @@ public class DebugService extends AbstractService implements IDebugService {
if (launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH) && !launch.isTerminated()) {
IModelNode[] contexts = LaunchContextsPersistenceDelegate.getLaunchContexts(launch.getLaunchConfiguration());
if (contexts != null && contexts.length == 1 && contexts[0].equals(context)) {
+ callback.setProperty("launch", launch); //$NON-NLS-1$
skip = true;
}
}
@@ -124,6 +125,7 @@ public class DebugService extends AbstractService implements IDebugService {
public void launchAdded(ILaunch launch) {
if (launch != null && finConfig.equals(launch.getLaunchConfiguration())) {
DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(this);
+ callback.setProperty("launch", launch); //$NON-NLS-1$
callback.done(this, Status.OK_STATUS);
}
}

Back to the top