Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 88bc6cb3de379819c00b7acda70f050eb8c96622 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
   <extension point="org.eclipse.ui.editors">
      <editor
            class="org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor"
            contributorClass="org.eclipse.papyrus.editor.PapyrusActionBarContributor"
            default="true"
            extensions="di"
            icon="icons/papyrus/Papyrus_16x16.gif"
            id="org.eclipse.papyrus.infra.core.papyrusEditor"
            matchingStrategy="org.eclipse.papyrus.editor.PapyrusMatchingStrategy"
            name="Papyrus Editor Core">
      </editor>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <category
            description="this a category of papyrus commands"
            id="org.eclipse.papyrus.editor.category"
            name="Papyrus Category">
      </category>
      
      <command
            categoryId="org.eclipse.ui.category.navigate"
            id="org.eclipse.papyrus.editor.nextTabCommand"
            name="Next Tab">
      </command>
      <command
            categoryId="org.eclipse.ui.category.navigate"
            id="org.eclipse.papyrus.editor.previousTabCommand"
            name="Previous Tab">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.eclipse.papyrus.editor.nextTabCommand"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="CTRL+TAB">
      </key>
      <key
            commandId="org.eclipse.papyrus.editor.previousTabCommand"
            contextId="org.eclipse.ui.contexts.window"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="CTRL+M2+TAB">
      </key>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.editor.handlers.NextTabHandler"
            commandId="org.eclipse.papyrus.editor.nextTabCommand">
         <activeWhen>
         	<with variable="activeEditorId">
         		<equals value="org.eclipse.papyrus.infra.core.papyrusEditor"/>
         	</with>
         </activeWhen>
      </handler>
      <handler
            class="org.eclipse.papyrus.editor.handlers.PreviousTabHandler"
            commandId="org.eclipse.papyrus.editor.previousTabCommand">
         <activeWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </activeWhen>
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
         <toolbar
               id="org.eclipse.papyrus.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