Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-10-25 12:42:18 -0400
committerRyan D. Brooks2010-10-25 12:42:18 -0400
commit07a3c6445a0c8003896487e04e2ba3b600598c38 (patch)
tree47c53100b7820fc2cc960b7328283af64b0a9a1c /plugins/org.eclipse.osee.coverage
parente29e130d1c52bfac0ce2ee5a154ac802529c24f8 (diff)
downloadorg.eclipse.osee-07a3c6445a0c8003896487e04e2ba3b600598c38.tar.gz
org.eclipse.osee-07a3c6445a0c8003896487e04e2ba3b600598c38.tar.xz
org.eclipse.osee-07a3c6445a0c8003896487e04e2ba3b600598c38.zip
bug[ats_R54KZ]: Fix ATS workflows not opening from coverage product tab
Diffstat (limited to 'plugins/org.eclipse.osee.coverage')
-rw-r--r--plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/OpenMultipleWorkProductsAction.java23
1 files changed, 6 insertions, 17 deletions
diff --git a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/OpenMultipleWorkProductsAction.java b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/OpenMultipleWorkProductsAction.java
index b60d1ac6d6..6bbb505a66 100644
--- a/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/OpenMultipleWorkProductsAction.java
+++ b/plugins/org.eclipse.osee.coverage/src/org/eclipse/osee/coverage/action/OpenMultipleWorkProductsAction.java
@@ -19,15 +19,9 @@ import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.osee.coverage.editor.CoverageEditor;
-import org.eclipse.osee.coverage.internal.Activator;
import org.eclipse.osee.coverage.model.IWorkProductTaskProvider;
import org.eclipse.osee.coverage.model.WorkProductAction;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.plugin.core.util.Jobs;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery;
import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
import org.eclipse.osee.framework.ui.skynet.FrameworkImage;
import org.eclipse.osee.framework.ui.skynet.SkynetGuiPlugin;
@@ -75,18 +69,13 @@ public class OpenMultipleWorkProductsAction extends Action {
@Override
protected IStatus run(IProgressMonitor monitor) {
- try {
- IOseeCmService service = SkynetGuiPlugin.getInstance().getOseeCmService();
- List<String> guids = new ArrayList<String>();
- for (WorkProductAction action : provider.getWorkProductRelatedActions()) {
- guids.add(action.getGuid());
- }
- List<Artifact> artifacts = ArtifactQuery.getArtifactListFromIds(guids, coverageEditor.getBranch());
- service.openArtifacts(coverageEditor.getTitle() + " - Work Products", artifacts,
- OseeCmEditor.CmMultiPcrEditor);
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
+ IOseeCmService service = SkynetGuiPlugin.getInstance().getOseeCmService();
+ List<String> guids = new ArrayList<String>();
+ for (WorkProductAction action : provider.getWorkProductRelatedActions()) {
+ guids.add(action.getGuid());
}
+ service.openArtifactsById(coverageEditor.getTitle() + " - Work Products", guids,
+ OseeCmEditor.CmMultiPcrEditor);
return Status.OK_STATUS;
}
};

Back to the top