Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-08 17:06:31 +0000
committerUwe Stieber2012-09-10 07:03:43 +0000
commite5c6bcdfc2ddf583834f57715abd13bf0d22e9f6 (patch)
treef46b98950f12272f97d3abed77fdee844058ff5c /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui
parent358c51348086a1206f1a99b43dd3c140ee93cf75 (diff)
downloadorg.eclipse.tcf-e5c6bcdfc2ddf583834f57715abd13bf0d22e9f6.tar.gz
org.eclipse.tcf-e5c6bcdfc2ddf583834f57715abd13bf0d22e9f6.tar.xz
org.eclipse.tcf-e5c6bcdfc2ddf583834f57715abd13bf0d22e9f6.zip
Target Explorer: Assert threading assumption of debug service implementation
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.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 7e479b39d..70ba6b96f 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
@@ -58,6 +58,8 @@ public class DebugService extends AbstractService implements IDebugService {
}
protected void internalAttach(final Object context, final IPropertiesContainer data, final ICallback callback) {
+ Assert.isTrue(!Protocol.isDispatchThread(), "Illegal Thread Access"); //$NON-NLS-1$
+
Assert.isNotNull(context);
Assert.isNotNull(data);
Assert.isNotNull(callback);

Back to the top