diff options
author | rbrooks | 2010-08-23 16:14:29 +0000 |
---|---|---|
committer | rbrooks | 2010-08-23 16:14:29 +0000 |
commit | cbc5e97c56b998adfa0cede78273b1cdd2793b8b (patch) | |
tree | 072641fd1c488289e39ede523753ab0495504f94 /plugins | |
parent | 4b465289a472242dc71b7635c8720cfa21995c43 (diff) | |
download | org.eclipse.osee-cbc5e97c56b998adfa0cede78273b1cdd2793b8b.tar.gz org.eclipse.osee-cbc5e97c56b998adfa0cede78273b1cdd2793b8b.tar.xz org.eclipse.osee-cbc5e97c56b998adfa0cede78273b1cdd2793b8b.zip |
remove unnecessary use of CompositeOperation from SMAWorkFlowTab and OseeTypesExportWizard
Diffstat (limited to 'plugins')
2 files changed, 4 insertions, 17 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowTab.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowTab.java index b46b17da1cc..7259d0c50d5 100644 --- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowTab.java +++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/editor/SMAWorkFlowTab.java @@ -48,8 +48,6 @@ import org.eclipse.osee.ats.util.AtsUtil; import org.eclipse.osee.ats.workflow.AtsWorkPage;
import org.eclipse.osee.ats.workflow.item.AtsWorkDefinitions;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.core.operation.CompositeOperation;
-import org.eclipse.osee.framework.core.operation.IOperation;
import org.eclipse.osee.framework.core.operation.Operations;
import org.eclipse.osee.framework.jdk.core.util.Strings;
import org.eclipse.osee.framework.logging.OseeLog;
@@ -169,11 +167,8 @@ public class SMAWorkFlowTab extends FormPage implements IActionable { }
public void refreshData() {
- List<IOperation> ops = new ArrayList<IOperation>();
- ops.add(AtsBulkLoad.getConfigLoadingOperation());
- IOperation operation = new CompositeOperation("Load SMA Workflow Tab", AtsPlugin.PLUGIN_ID, ops);
- Operations.executeAsJob(operation, true, Job.LONG, new ReloadJobChangeAdapter(sma.getEditor()));
-
+ Operations.executeAsJob(AtsBulkLoad.getConfigLoadingOperation(), true, Job.LONG, + new ReloadJobChangeAdapter(sma.getEditor())); // Don't put in operation cause doesn't have to be loaded before editor displays
OseeDictionary.load();
}
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesExportWizard.java b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesExportWizard.java index af27f8af0cd..c947ed892de 100644 --- a/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesExportWizard.java +++ b/plugins/org.eclipse.osee.framework.core.dsl.ui.integration/src/org/eclipse/osee/framework/core/dsl/ui/integration/wizards/OseeTypesExportWizard.java @@ -11,14 +11,9 @@ package org.eclipse.osee.framework.core.dsl.ui.integration.wizards; import java.io.File; -import java.util.ArrayList; -import java.util.List; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.wizard.Wizard; -import org.eclipse.osee.framework.core.dsl.ui.integration.internal.Activator; import org.eclipse.osee.framework.core.dsl.ui.integration.operations.OseeTypesExportOperation; -import org.eclipse.osee.framework.core.operation.CompositeOperation; -import org.eclipse.osee.framework.core.operation.IOperation; import org.eclipse.osee.framework.core.operation.Operations; import org.eclipse.ui.IImportWizard; import org.eclipse.ui.IWorkbench; @@ -39,11 +34,8 @@ public class OseeTypesExportWizard extends Wizard implements IImportWizard { @Override public boolean performFinish() { - final File folder = mainPage.getFile(); - - List<IOperation> ops = new ArrayList<IOperation>(); - ops.add(new OseeTypesExportOperation(folder)); - Operations.executeAsJob(new CompositeOperation("Export Osee Type Model", Activator.PLUGIN_ID, ops), true); + File folder = mainPage.getFile(); + Operations.executeAsJob(new OseeTypesExportOperation(folder), true); return true; } |