Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjphillips2010-07-08 17:23:43 -0400
committerjphillips2010-07-08 17:23:43 -0400
commita05124c0c6cffbb3989531489be3ac7153b65377 (patch)
treee886f05319208f279de5ccd92553041c8c270976 /plugins/org.eclipse.osee.framework.lifecycle
parentb52013d80bf4f41fa8394df0cf544f988bcc2262 (diff)
downloadorg.eclipse.osee-a05124c0c6cffbb3989531489be3ac7153b65377.tar.gz
org.eclipse.osee-a05124c0c6cffbb3989531489be3ac7153b65377.tar.xz
org.eclipse.osee-a05124c0c6cffbb3989531489be3ac7153b65377.zip
Diffstat (limited to 'plugins/org.eclipse.osee.framework.lifecycle')
-rw-r--r--plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
index b4ea692588..790118e943 100644
--- a/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
+++ b/plugins/org.eclipse.osee.framework.lifecycle/src/org/eclipse/osee/framework/lifecycle/AbstractLifecycleOperation.java
@@ -12,6 +12,7 @@
package org.eclipse.osee.framework.lifecycle;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.osee.framework.core.operation.AbstractOperation;
import org.eclipse.osee.framework.lifecycle.internal.OperationPointId;
@@ -32,12 +33,15 @@ public abstract class AbstractLifecycleOperation extends AbstractOperation {
@Override
protected final void doWork(IProgressMonitor monitor) throws Exception {
- service.dispatch(monitor, lifecyclepoint, OperationPointId.CHECK_CONDITION_ID.name());
- service.dispatch(monitor, lifecyclepoint, OperationPointId.PRE_CONDITION_ID.name());
- try {
- doCoreWork(monitor);
- } finally {
- service.dispatch(monitor, lifecyclepoint, OperationPointId.POST_CONDITION_ID.name());
+ IStatus status = service.dispatch(monitor, lifecyclepoint, OperationPointId.CHECK_CONDITION_ID.name());
+
+ if (status.isOK()) {
+ service.dispatch(monitor, lifecyclepoint, OperationPointId.PRE_CONDITION_ID.name());
+ try {
+ doCoreWork(monitor);
+ } finally {
+ service.dispatch(monitor, lifecyclepoint, OperationPointId.POST_CONDITION_ID.name());
+ }
}
}

Back to the top