diff options
author | Shuai Li | 2015-07-02 13:51:17 +0000 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org | 2015-10-16 15:18:06 +0000 |
commit | b7b4751163e15b96f0aa3e41364e20fc8ad0b162 (patch) | |
tree | 273b292bcab85350c986efd9f42fd6898b2e2ab4 /plugins/editor | |
parent | 2b5fd864d3f7acba83741fba194e068a7a75adc1 (diff) | |
download | org.eclipse.papyrus-b7b4751163e15b96f0aa3e41364e20fc8ad0b162.tar.gz org.eclipse.papyrus-b7b4751163e15b96f0aa3e41364e20fc8ad0b162.tar.xz org.eclipse.papyrus-b7b4751163e15b96f0aa3e41364e20fc8ad0b162.zip |
Bug 471697 - [Navigation] Toolbar buttons to go to next/previous diagram
in active window
- Toolbar contributon
Change-Id: I6d102749f384d666fd3d28d81f03ef6844d771be
Signed-off-by: Shuai Li <shuai.li@cea.fr>
Diffstat (limited to 'plugins/editor')
-rw-r--r-- | plugins/editor/org.eclipse.papyrus.editor/icons/arrow_left.gif | bin | 0 -> 327 bytes | |||
-rw-r--r-- | plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif | bin | 0 -> 541 bytes | |||
-rw-r--r-- | plugins/editor/org.eclipse.papyrus.editor/plugin.xml | 39 |
3 files changed, 39 insertions, 0 deletions
diff --git a/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_left.gif b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_left.gif Binary files differnew file mode 100644 index 00000000000..4fb41501036 --- /dev/null +++ b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_left.gif diff --git a/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif Binary files differnew file mode 100644 index 00000000000..19567890aa8 --- /dev/null +++ b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif diff --git a/plugins/editor/org.eclipse.papyrus.editor/plugin.xml b/plugins/editor/org.eclipse.papyrus.editor/plugin.xml index 656c9b7a877..f930ad22cd4 100644 --- a/plugins/editor/org.eclipse.papyrus.editor/plugin.xml +++ b/plugins/editor/org.eclipse.papyrus.editor/plugin.xml @@ -71,5 +71,44 @@ </activeWhen> </handler> </extension> + <extension + point="org.eclipse.ui.menus"> + <menuContribution + locationURI="toolbar:org.eclipse.ui.main.toolbar"> + <toolbar + id="org.eclipse.papyrus.uml.diagram.ui.toolbar"> + <command + commandId="org.eclipse.papyrus.editor.previousTabCommand" + icon="icons/arrow_left.gif" + label="Previous Diagram" + style="push" + tooltip="Previous diagram in active window"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + <command + commandId="org.eclipse.papyrus.editor.nextTabCommand" + icon="icons/arrow_right.gif" + label="Next Diagram" + style="push" + tooltip="Next diagram in active window"> + <visibleWhen> + <with + variable="activeEditorId"> + <equals + value="org.eclipse.papyrus.infra.core.papyrusEditor"> + </equals> + </with> + </visibleWhen> + </command> + </toolbar> + </menuContribution> + </extension> </plugin> |