Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-09-13 16:24:28 +0000
committerDonald Dunne2016-09-15 16:58:37 +0000
commitd5a2dd61569f06e2bc4813e300048f25e9843512 (patch)
treed7a67de07693a6774fbc4925f95f74f30a8af572 /plugins
parentad60920a1d0742440f6b5d127a7cb086f01dc716 (diff)
downloadorg.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.tar.gz
org.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.tar.xz
org.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.zip
refinement: Add Art Explorer action to toolbar
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.ats/images/artifact_explorer.gifbin0 -> 312 bytes
-rw-r--r--plugins/org.eclipse.osee.ats/plugin.xml22
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenArtifactExplorerHandler.java28
3 files changed, 50 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats/images/artifact_explorer.gif b/plugins/org.eclipse.osee.ats/images/artifact_explorer.gif
new file mode 100644
index 00000000000..23b46a83e46
--- /dev/null
+++ b/plugins/org.eclipse.osee.ats/images/artifact_explorer.gif
Binary files differ
diff --git a/plugins/org.eclipse.osee.ats/plugin.xml b/plugins/org.eclipse.osee.ats/plugin.xml
index c096ed59ea4..d7dc6af76d0 100644
--- a/plugins/org.eclipse.osee.ats/plugin.xml
+++ b/plugins/org.eclipse.osee.ats/plugin.xml
@@ -227,6 +227,10 @@
id="org.eclipse.osee.framework.ui.skynet.atsworkdef.command"
name="ATS Work Definition Editor">
</command>
+ <command
+ id="osee.ats.actions.OpenArtifactExplorer"
+ name="Open Artifact Explorer">
+ </command>
</extension>
<extension
point="org.eclipse.ui.commandImages">
@@ -320,6 +324,10 @@
commandId="org.eclipse.osee.ats.actions.OpenReviewPerspective"
class="org.eclipse.osee.ats.actions.OpenReviewPerspectiveHandler">
</handler>
+ <handler
+ commandId="osee.ats.actions.OpenArtifactExplorer"
+ class="org.eclipse.osee.ats.actions.OpenArtifactExplorerHandler">
+ </handler>
</extension>
<extension point="org.eclipse.ui.commandImages">
<image commandId="org.eclipse.osee.ats.actions.OpenAtsPerspective" icon="images/action.gif"> </image>
@@ -343,6 +351,19 @@
</command>
</menu>
</menuContribution>
+ <menuContribution
+ locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
+ <toolbar
+ id="osee.ats.toolbar">
+ <command
+ commandId="osee.ats.actions.OpenArtifactExplorer"
+ icon="images/artifact_explorer.gif"
+ id="osee.ats.actions.OpenArtifactExplorer"
+ style="push">
+ </command>
+ </toolbar>
+ </menuContribution>
+
</extension>
@@ -441,4 +462,5 @@
name="ATS">
</page>
</extension>
+
</plugin>
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenArtifactExplorerHandler.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenArtifactExplorerHandler.java
new file mode 100644
index 00000000000..6e509a50d73
--- /dev/null
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenArtifactExplorerHandler.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2016 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.ats.actions;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.osee.ats.core.util.AtsUtilCore;
+import org.eclipse.osee.framework.ui.skynet.explorer.ArtifactExplorer;
+
+/**
+ * @author Donald G. Dunne
+ */
+public class OpenArtifactExplorerHandler extends AbstractHandler {
+
+ @Override
+ public Object execute(ExecutionEvent event) {
+ ArtifactExplorer.exploreBranch(AtsUtilCore.getAtsBranch());
+ return null;
+ }
+} \ No newline at end of file

Back to the top