Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruwe2013-09-04 08:19:26 +0000
committeruwe2013-09-04 08:19:26 +0000
commit19c9cc800fd14c7d5f84324a798255c4618f99c7 (patch)
tree44b5ff47045bb3ca4b59936c937145f414e3f7e8 /target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper
parentc4b02a17d54a72e7603c19ab2a1d23b95bff806d (diff)
downloadorg.eclipse.tcf-19c9cc800fd14c7d5f84324a798255c4618f99c7.tar.gz
org.eclipse.tcf-19c9cc800fd14c7d5f84324a798255c4618f99c7.tar.xz
org.eclipse.tcf-19c9cc800fd14c7d5f84324a798255c4618f99c7.zip
Target Explorer: Better handle cases where stepper steps for a given operation already exist
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
index 6edded23a..239b8f7df 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.stepper/src/org/eclipse/tcf/te/runtime/stepper/job/StepperJob.java
@@ -145,7 +145,8 @@ public class StepperJob extends Job {
StepperJob job = service != null ? (StepperJob)service.getProperty(stepContext.getContextObject(), StepperJob.class.getName() + "." + operation) : null; //$NON-NLS-1$
if (service == null && stepContext.getContextObject() instanceof IPropertiesContainer)
job = (StepperJob)((IPropertiesContainer)stepContext.getContextObject()).getProperty(StepperJob.class.getName() + "." + operation); //$NON-NLS-1$
- Assert.isTrue(job == null);
+
+ if (job != null) throw new IllegalStateException("There is already a stepper job for operation '" + operation + "'."); //$NON-NLS-1$ //$NON-NLS-2$
if (service != null)
service.setProperty(stepContext.getContextObject(), StepperJob.class.getName() + "." + operation, this); //$NON-NLS-1$

Back to the top