Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShuai Li2015-07-02 09:51:17 -0400
committerGerrit Code Review @ Eclipse.org2015-10-16 11:18:06 -0400
commitb7b4751163e15b96f0aa3e41364e20fc8ad0b162 (patch)
tree273b292bcab85350c986efd9f42fd6898b2e2ab4 /plugins/editor
parent2b5fd864d3f7acba83741fba194e068a7a75adc1 (diff)
downloadorg.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.gifbin0 -> 327 bytes
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gifbin0 -> 541 bytes
-rw-r--r--plugins/editor/org.eclipse.papyrus.editor/plugin.xml39
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
new file mode 100644
index 00000000000..4fb41501036
--- /dev/null
+++ b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_left.gif
Binary files differ
diff --git a/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif
new file mode 100644
index 00000000000..19567890aa8
--- /dev/null
+++ b/plugins/editor/org.eclipse.papyrus.editor/icons/arrow_right.gif
Binary files differ
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>

Back to the top