Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: f429711d74369db5ee4e6e031455e9c046b4d5d8 (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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

   <extension
         point="org.eclipse.ui.commands">
      <category
            name="eTrice Commands"
            id="org.eclipse.etrice.ui.commands.category">
      </category>
      <command
            name="open associated textual model"
            categoryId="org.eclipse.etrice.ui.commands.category"
            id="org.eclipse.etrice.ui.commands.commands.editModel">
      </command>
      <command
            description="open this ActorClass&apos;s structure as diagram"
            id="org.eclipse.etrice.core.room.ui.editStructure"
            name="Edit Structure">
      </command>
      <command
            description="open this ActorClass&apos;s state machine as diagram"
            id="org.eclipse.etrice.core.room.ui.editBehavior"
            name="Edit Behavior">
      </command>
      <command
            description="export all structure and behavior diagrams as files"
            id="org.eclipse.etrice.core.room.ui.exportDiagrams"
            name="Export Diagrams">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            commandId="org.eclipse.etrice.core.room.ui.editBehavior"
            class="org.eclipse.etrice.ui.commands.handlers.EditBehaviorHandler">
         <activeWhen>
            <with variable="activeEditorId">
	     		<or>
	               <equals
	                     value="org.eclipse.etrice.ui.structure.editor.StructureEditor">
	               </equals>
	               <equals
	                     value="org.eclipse.etrice.core.Room">
	               </equals>
	         	</or>
            </with>
         </activeWhen>
      </handler>
      <handler
            commandId="org.eclipse.etrice.core.room.ui.editStructure"
            class="org.eclipse.etrice.ui.commands.handlers.EditStructureHandler">
         <activeWhen>
            <with
                  variable="activeEditorId">
               <or>
	               <equals
	                     value="org.eclipse.etrice.ui.behavior.editor.BehaviorEditor">
	               </equals>
	               <equals
	                     value="org.eclipse.etrice.core.Room">
	               </equals>
               </or>
            </with>
         </activeWhen>
      </handler>
      <handler
            commandId="org.eclipse.etrice.ui.commands.commands.editModel"
            class="org.eclipse.etrice.ui.commands.handlers.EditModelHandler">
         <activeWhen>
            <or>
	            <with
	                  variable="activeEditorId">
	               <equals
	                     value="org.eclipse.etrice.ui.behavior.editor.BehaviorEditor">
	               </equals>
	            </with>
	            <with
	                  variable="activeEditorId">
	               <equals
	                     value="org.eclipse.etrice.ui.structure.editor.StructureEditor">
	               </equals>
	            </with>
            </or>
         </activeWhen>
      </handler>
      <handler
            commandId="org.eclipse.etrice.core.room.ui.exportDiagrams"
            class="org.eclipse.etrice.ui.commands.handlers.ExportDiagramsHandler">
         <activeWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.etrice.core.Room">
               </equals>
            </with>
         </activeWhen>
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.eclipse.etrice.core.room.ui.editBehavior"
            contextId="org.eclipse.ui.contexts.window"
            sequence="M3+B"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </key>
      <key
            commandId="org.eclipse.etrice.core.room.ui.editStructure"
            contextId="org.eclipse.ui.contexts.window"
            sequence="M3+S"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </key>
      <key
            commandId="org.eclipse.etrice.ui.commands.commands.editModel"
            contextId="org.eclipse.ui.contexts.window"
            sequence="M3+M"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </key>
      <key
            commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"
            contextId="org.eclipse.etrice.ui.common.base.context"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="F3">
      </key>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu?after=additions">
         <menu
               label="eTrice"
               mnemonic="T"
               id="org.eclipse.etrice.ui.commands.menus.eTrice">
            <command
                  commandId="org.eclipse.etrice.core.room.ui.editBehavior"
                  icon="icons/Behavior.gif"
                  id="org.eclipse.etrice.ui.commands.menus.editBehavior"
                  label="Open Behavior"
                  mnemonic="B">
            </command>
            <command
                  commandId="org.eclipse.etrice.core.room.ui.editStructure"
                  icon="icons/Structure.gif"
                  id="org.eclipse.etrice.ui.commands.menus.editStructure"
                  label="Open Structure"
                  mnemonic="S">
            </command>
            <command
                  commandId="org.eclipse.etrice.ui.commands.commands.editModel"
                  icon="icons/RoomModel.gif"
                  id="org.eclipse.etrice.ui.commands.menus.openModel"
                  label="Open Model"
                  mnemonic="M">
            </command>
         </menu>
      </menuContribution>
  <menuContribution
        allPopups="false"
        locationURI="popup:org.eclipse.etrice.core.room.outline?after=editStructure">
     <command
           commandId="org.eclipse.etrice.core.room.ui.editBehavior"
           id="editBehavior"
           label="Edit Behavior"
           style="push">
        <visibleWhen
              checkEnabled="true">
           <iterate>
              <adapt
                    type="org.eclipse.xtext.ui.editor.outline.IOutlineNode">
              </adapt>
           </iterate>
        </visibleWhen>
     </command>
  </menuContribution>
  <menuContribution
        allPopups="false"
        locationURI="popup:org.eclipse.etrice.core.room.outline">
     <command
           commandId="org.eclipse.etrice.core.room.ui.editStructure"
           id="editStructure"
           label="Edit Structure"
           style="push">
        <visibleWhen
              checkEnabled="true">
           <iterate>
              <adapt
                    type="org.eclipse.xtext.ui.editor.outline.IOutlineNode">
              </adapt>
           </iterate>
        </visibleWhen>
     </command>
  </menuContribution>
  <menuContribution
        allPopups="false"
        locationURI="popup:org.eclipse.etrice.core.room.outline?after=editBehavior">
     <command
           commandId="org.eclipse.etrice.core.room.ui.exportDiagrams"
           id="exportDiagrams"
           label="Export Diagrams"
           style="push">
        <visibleWhen
              checkEnabled="true">
           <iterate>
              <adapt
                    type="org.eclipse.xtext.ui.editor.outline.IOutlineNode">
              </adapt>
           </iterate>
        </visibleWhen>
     </command>
  </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.etrice.ui.commands.handlers.OpenDeclaration"
            commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
         <activeWhen>
            <with
                  variable="activeEditorId">
               <or>
                  <equals
                        value="org.eclipse.etrice.ui.behavior.editor.BehaviorEditor">
                  </equals>
                  <equals
                        value="org.eclipse.etrice.ui.structure.editor.StructureEditor">
                  </equals>
               </or>
            </with>
         </activeWhen>
      </handler>
   </extension>

</plugin>

Back to the top