diff options
author | donald.g.dunne | 2016-09-13 16:24:28 +0000 |
---|---|---|
committer | Donald Dunne | 2016-09-15 16:58:37 +0000 |
commit | d5a2dd61569f06e2bc4813e300048f25e9843512 (patch) | |
tree | d7a67de07693a6774fbc4925f95f74f30a8af572 | |
parent | ad60920a1d0742440f6b5d127a7cb086f01dc716 (diff) | |
download | org.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.tar.gz org.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.tar.xz org.eclipse.osee-d5a2dd61569f06e2bc4813e300048f25e9843512.zip |
refinement: Add Art Explorer action to toolbar
Change-Id: Iaf29b6c2a001999f818a07f00b9ef6c7467e3f96
-rw-r--r-- | plugins/org.eclipse.osee.ats/images/artifact_explorer.gif | bin | 0 -> 312 bytes | |||
-rw-r--r-- | plugins/org.eclipse.osee.ats/plugin.xml | 22 | ||||
-rw-r--r-- | plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/actions/OpenArtifactExplorerHandler.java | 28 |
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 Binary files differnew file mode 100644 index 00000000000..23b46a83e46 --- /dev/null +++ b/plugins/org.eclipse.osee.ats/images/artifact_explorer.gif 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 |