Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2014-01-28 07:24:05 +0000
committerTobias Schwarz2014-01-28 07:24:05 +0000
commit10e21a359e19ce80f256027ea0a453eeff314645 (patch)
tree80956b2b14ae7314ba36d01205e8a931979bf2fa /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui
parent7acd502c496c272f781512fe2779caddbc81fc9f (diff)
downloadorg.eclipse.tcf-10e21a359e19ce80f256027ea0a453eeff314645.tar.gz
org.eclipse.tcf-10e21a359e19ce80f256027ea0a453eeff314645.tar.xz
org.eclipse.tcf-10e21a359e19ce80f256027ea0a453eeff314645.zip
Target Explorer: add callback to be able to wait for debugger start
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java8
1 files changed, 7 insertions, 1 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 8e3df6862..4a6866a5f 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
@@ -37,6 +37,7 @@ import org.eclipse.tcf.te.runtime.model.interfaces.IModelNode;
import org.eclipse.tcf.te.runtime.services.AbstractService;
import org.eclipse.tcf.te.runtime.services.interfaces.IDebugService;
import org.eclipse.tcf.te.runtime.utils.StatusHelper;
+import org.eclipse.tcf.te.tcf.launch.core.delegates.Launch;
import org.eclipse.tcf.te.tcf.launch.core.interfaces.ILaunchTypes;
import org.eclipse.tcf.te.ui.swt.DisplayUtil;
@@ -127,7 +128,12 @@ public class DebugService extends AbstractService implements IDebugService {
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);
+ if (launch instanceof Launch) {
+ ((Launch)launch).setCallback(callback);
+ }
+ else {
+ callback.done(this, Status.OK_STATUS);
+ }
}
}

Back to the top