Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-08-24 18:38:25 +0000
committerrbrooks2010-08-24 18:38:25 +0000
commit6681d4693226c034833f97c89d254f0f2b118f2f (patch)
tree2b15535bfc768176978be80838385aa48c3373bf /plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards
parent070d82ff516fa4804a26d683513ea5ea8ac178bb (diff)
downloadorg.eclipse.osee-6681d4693226c034833f97c89d254f0f2b118f2f.tar.gz
org.eclipse.osee-6681d4693226c034833f97c89d254f0f2b118f2f.tar.xz
org.eclipse.osee-6681d4693226c034833f97c89d254f0f2b118f2f.zip
make IOperation.run return status instead of an operation
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesImportPage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesImportPage.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesImportPage.java
index 2e985a5648e..dd3e4d8463e 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesImportPage.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesImportPage.java
@@ -208,12 +208,13 @@ public class OseeTypesImportPage extends WizardDataTransferPage {
}
protected boolean executeOperation(final IOperation operation) {
+ final IStatus[] status = new IStatus[1];
try {
getContainer().run(true, true, new IRunnableWithProgress() {
@Override
public void run(IProgressMonitor monitor) {
- Operations.executeWork(operation, monitor);
+ status[0] = Operations.executeWork(operation, monitor);
}
});
} catch (InterruptedException e) {
@@ -223,11 +224,10 @@ public class OseeTypesImportPage extends WizardDataTransferPage {
return false;
}
- IStatus status = operation.getStatus();
- if (status.isOK()) {
+ if (status[0].isOK()) {
setErrorMessage(null);
} else {
- setErrorMessage(status.getMessage());
+ setErrorMessage(status[0].getMessage());
}
return true;
}

Back to the top