1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <?eclipse version="3.4"?> |
---|
3 | <plugin> |
---|
4 | <!--<extension |
---|
5 | point="org.eclipse.ui.views"> |
---|
6 | <view |
---|
7 | name="Intstantiated Requirements" |
---|
8 | icon="icons/requirement.gif" |
---|
9 | category="org.openmodelica.modelicaml.gen.modelica.category1" |
---|
10 | class="org.openmodelica.modelicaml.helper.views.InstantiatedRequirementsView" |
---|
11 | id="org.openmodelica.modelicaml.helper.view.instantiated.requirements"> |
---|
12 | </view> |
---|
13 | </extension> |
---|
14 | --> |
---|
15 | <extension |
---|
16 | point="org.eclipse.ui.commands"> |
---|
17 | <!-- |
---|
18 | <command |
---|
19 | id="org.openmodelica.modelicaml.helper.commands.instantiaterequirements" |
---|
20 | name="Instantiate Requirements"> |
---|
21 | </command> |
---|
22 | <command |
---|
23 | id="org.openmodelica.modelicaml.helper.commands.updateTestOracleElements" |
---|
24 | name="Create/Update Test Oracle Elements"> |
---|
25 | </command> |
---|
26 | --> |
---|
27 | <command |
---|
28 | id="org.openmodelica.modelicaml.helper.commands.generatesimmodels" |
---|
29 | name="Generate Verification Models Popup"> |
---|
30 | </command> |
---|
31 | <command |
---|
32 | id="org.openmodelica.modelicaml.helper.commands.toolbar.generatesimmodels" |
---|
33 | name="Generate Verification Models Toolbar"> |
---|
34 | </command> |
---|
35 | <command |
---|
36 | id="org.openmodelica.modelicaml.helper.commands.toolbar.discoverScenToReqRelations" |
---|
37 | name="Discover Scenarios to Requirements Relations Toolbar"> |
---|
38 | </command> |
---|
39 | <command |
---|
40 | id="org.openmodelica.modelicaml.helper.commands.toolbar.automaticScenarioBasedVerification" |
---|
41 | name="Automatic Scenario-Based Verification"> |
---|
42 | </command> |
---|
43 | <command |
---|
44 | id="org.openmodelica.modelicaml.helper.commands.toolbar.analyzesimulationresults" |
---|
45 | name="Analyze Simulation Results Toolbar"> |
---|
46 | </command> |
---|
47 | </extension> |
---|
48 | <extension |
---|
49 | point="org.eclipse.ui.handlers"> |
---|
50 | <!-- |
---|
51 | <handler |
---|
52 | class="org.openmodelica.modelicaml.helper.handlers.InstantiateRequirementsHandler" |
---|
53 | commandId="org.openmodelica.modelicaml.helper.commands.instantiaterequirements"> |
---|
54 | <activeWhen> |
---|
55 | <with |
---|
56 | variable="selection"> |
---|
57 | <count |
---|
58 | value="1"> |
---|
59 | </count> |
---|
60 | <iterate> |
---|
61 | <adapt |
---|
62 | type="org.eclipse.emf.ecore.EObject"> |
---|
63 | <and> |
---|
64 | <instanceof |
---|
65 | value="org.eclipse.uml2.uml.Class"> |
---|
66 | </instanceof> |
---|
67 | <or> |
---|
68 | <test |
---|
69 | args="ModelicaML::ModelicaClassConstructs::Block" |
---|
70 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
71 | </test> |
---|
72 | <test |
---|
73 | args="ModelicaML::ModelicaClassConstructs::Model" |
---|
74 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
75 | </test> |
---|
76 | <test |
---|
77 | args="ModelicaML::ModelicaClassConstructs::ModelicaClass" |
---|
78 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
79 | </test> |
---|
80 | </or> |
---|
81 | <and> |
---|
82 | <not> |
---|
83 | <instanceof |
---|
84 | value="org.eclipse.uml2.uml.Behavior"> |
---|
85 | </instanceof> |
---|
86 | </not> |
---|
87 | </and> |
---|
88 | </and> |
---|
89 | </adapt> |
---|
90 | </iterate> |
---|
91 | </with> |
---|
92 | </activeWhen> |
---|
93 | </handler> |
---|
94 | <handler |
---|
95 | class="org.openmodelica.modelicaml.helper.handlers.GenerateTestOracleElementsHandler" |
---|
96 | commandId="org.openmodelica.modelicaml.helper.commands.updateTestOracleElements"> |
---|
97 | <activeWhen> |
---|
98 | <with |
---|
99 | variable="selection"> |
---|
100 | <count |
---|
101 | value="1"> |
---|
102 | </count> |
---|
103 | <iterate> |
---|
104 | <adapt |
---|
105 | type="org.eclipse.emf.ecore.EObject"> |
---|
106 | <and> |
---|
107 | <instanceof |
---|
108 | value="org.eclipse.uml2.uml.Class"> |
---|
109 | </instanceof> |
---|
110 | <or> |
---|
111 | <test |
---|
112 | args="ModelicaML::ModelicaClassConstructs::Block" |
---|
113 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
114 | </test> |
---|
115 | <test |
---|
116 | args="ModelicaML::ModelicaClassConstructs::Model" |
---|
117 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
118 | </test> |
---|
119 | <test |
---|
120 | args="ModelicaML::ModelicaClassConstructs::ModelicaClass" |
---|
121 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
122 | </test> |
---|
123 | </or> |
---|
124 | <and> |
---|
125 | <not> |
---|
126 | <instanceof |
---|
127 | value="org.eclipse.uml2.uml.Behavior"> |
---|
128 | </instanceof> |
---|
129 | </not> |
---|
130 | </and> |
---|
131 | </and> |
---|
132 | </adapt> |
---|
133 | </iterate> |
---|
134 | </with> |
---|
135 | </activeWhen> |
---|
136 | </handler> |
---|
137 | --> |
---|
138 | <handler |
---|
139 | class="org.openmodelica.modelicaml.helper.handlers.VeMGenaratorPopupHandler" |
---|
140 | commandId="org.openmodelica.modelicaml.helper.commands.generatesimmodels"> |
---|
141 | <activeWhen> |
---|
142 | <with |
---|
143 | variable="selection"> |
---|
144 | <count |
---|
145 | value="1"> |
---|
146 | </count> |
---|
147 | <iterate> |
---|
148 | <adapt |
---|
149 | type="org.eclipse.emf.ecore.EObject"> |
---|
150 | <and> |
---|
151 | <instanceof |
---|
152 | value="org.eclipse.uml2.uml.Class"> |
---|
153 | </instanceof> |
---|
154 | <or> |
---|
155 | <test |
---|
156 | args="ModelicaML::ModelicaClassConstructs::Block" |
---|
157 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
158 | </test> |
---|
159 | <test |
---|
160 | args="ModelicaML::ModelicaClassConstructs::Model" |
---|
161 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
162 | </test> |
---|
163 | <test |
---|
164 | args="ModelicaML::ModelicaClassConstructs::ModelicaClass" |
---|
165 | property="org.openmodelica.modelicaml.testers.hasStereotype"> |
---|
166 | </test> |
---|
167 | </or> |
---|
168 | <and> |
---|
169 | <not> |
---|
170 | <instanceof |
---|
171 | value="org.eclipse.uml2.uml.Behavior"> |
---|
172 | </instanceof> |
---|
173 | </not> |
---|
174 | </and> |
---|
175 | </and> |
---|
176 | </adapt> |
---|
177 | </iterate> |
---|
178 | </with> |
---|
179 | </activeWhen> |
---|
180 | </handler> |
---|
181 | <handler |
---|
182 | class="org.openmodelica.modelicaml.helper.handlers.VeMGenaratorToobarHandler" |
---|
183 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.generatesimmodels"> |
---|
184 | </handler> |
---|
185 | <handler |
---|
186 | class="org.openmodelica.modelicaml.helper.handlers.ScenariosToRequirementsRelationsDiscoveryToolbarHandler" |
---|
187 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.discoverScenToReqRelations"> |
---|
188 | </handler> |
---|
189 | <handler |
---|
190 | class="org.openmodelica.modelicaml.helper.handlers.AutomaticScenarioBasedVerificationToolbarHandler" |
---|
191 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.automaticScenarioBasedVerification"> |
---|
192 | </handler> |
---|
193 | <handler |
---|
194 | class="org.openmodelica.modelicaml.helper.handlers.AnalyzeSimulationResultsToolbarHandler" |
---|
195 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.analyzesimulationresults"> |
---|
196 | </handler> |
---|
197 | </extension> |
---|
198 | <extension |
---|
199 | point="org.eclipse.ui.menus"> |
---|
200 | <menuContribution |
---|
201 | locationURI="toolbar:org.eclipse.ui.main.toolbar"> |
---|
202 | <toolbar |
---|
203 | id="org.openmodelica.modelicaml.toolbar.helper" |
---|
204 | label="ModelicaML Verification"> |
---|
205 | |
---|
206 | <!--<visibleWhen |
---|
207 | checkEnabled="false"> |
---|
208 | <with |
---|
209 | variable="activeWorkbenchWindow.activePerspective"> |
---|
210 | <equals |
---|
211 | value="org.openmodelica.modelicaml.perspective"> |
---|
212 | </equals> |
---|
213 | </with> |
---|
214 | </visibleWhen> |
---|
215 | --> |
---|
216 | |
---|
217 | <separator |
---|
218 | name="org.openmodelica.modelicaml.helper.separator1" |
---|
219 | visible="true"> |
---|
220 | </separator> |
---|
221 | <command |
---|
222 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.automaticScenarioBasedVerification" |
---|
223 | icon="icons/automaticScenarioBasedVerification.gif" |
---|
224 | label="Automatic Scenario-Based Verification" |
---|
225 | style="push" |
---|
226 | tooltip="Automatic Scenario-Based Verification"> |
---|
227 | <visibleWhen> |
---|
228 | <with |
---|
229 | variable="activeEditorId"> |
---|
230 | <equals |
---|
231 | value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
---|
232 | </equals> |
---|
233 | </with> |
---|
234 | </visibleWhen> |
---|
235 | |
---|
236 | <!--<visibleWhen> |
---|
237 | <reference definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel"/> |
---|
238 | </visibleWhen> |
---|
239 | --> |
---|
240 | </command> |
---|
241 | <command |
---|
242 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.discoverScenToReqRelations" |
---|
243 | icon="icons/discoverRelations2.gif" |
---|
244 | label="Discover Relations Between Scenarios and Requirements" |
---|
245 | style="push" |
---|
246 | tooltip="Discover Relations Between Scenarios and Requirements"> |
---|
247 | |
---|
248 | <visibleWhen> |
---|
249 | <with |
---|
250 | variable="activeEditorId"> |
---|
251 | <equals |
---|
252 | value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
---|
253 | </equals> |
---|
254 | </with> |
---|
255 | </visibleWhen> |
---|
256 | |
---|
257 | <!--<visibleWhen> |
---|
258 | <reference definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel"/> |
---|
259 | </visibleWhen> |
---|
260 | --> |
---|
261 | </command> |
---|
262 | <separator |
---|
263 | name="org.openmodelica.modelicaml.helper.separator2" |
---|
264 | visible="true"> |
---|
265 | </separator> |
---|
266 | <command |
---|
267 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.generatesimmodels" |
---|
268 | icon="icons/new_testsuite.gif" |
---|
269 | label="Create Design Verification Models" |
---|
270 | style="push" |
---|
271 | tooltip="Create Design Verification Models"> |
---|
272 | <visibleWhen> |
---|
273 | <with |
---|
274 | variable="activeEditorId"> |
---|
275 | <equals |
---|
276 | value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
---|
277 | </equals> |
---|
278 | </with> |
---|
279 | </visibleWhen> |
---|
280 | |
---|
281 | <!--<visibleWhen> |
---|
282 | <reference definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel"/> |
---|
283 | </visibleWhen> |
---|
284 | --> |
---|
285 | </command> |
---|
286 | <separator |
---|
287 | name="org.openmodelica.modelicaml.helper.separator3" |
---|
288 | visible="true"> |
---|
289 | </separator> |
---|
290 | <command |
---|
291 | commandId="org.openmodelica.modelicaml.helper.commands.toolbar.analyzesimulationresults" |
---|
292 | icon="icons/runanalysis.gif" |
---|
293 | label="Analyze Verification Results" |
---|
294 | style="push" |
---|
295 | tooltip="Analyze Verification Results"> |
---|
296 | <visibleWhen> |
---|
297 | <with |
---|
298 | variable="activeEditorId"> |
---|
299 | <equals |
---|
300 | value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
---|
301 | </equals> |
---|
302 | </with> |
---|
303 | </visibleWhen> |
---|
304 | |
---|
305 | <!--<visibleWhen> |
---|
306 | <reference definitionId="org.eclipse.papyrus.uml.diagram.common.IsPapyrusActiveWithUMLModel"/> |
---|
307 | </visibleWhen> |
---|
308 | --> |
---|
309 | </command> |
---|
310 | <!-- |
---|
311 | <command |
---|
312 | commandId="org.openmodelica.modelicaml.helper.commands.runtests" |
---|
313 | icon="icons/tscriptrun.gif" |
---|
314 | label="Run Design Verification Models" |
---|
315 | style="push" |
---|
316 | tooltip="Run Design Verification Models"> |
---|
317 | <visibleWhen> |
---|
318 | <with |
---|
319 | variable="activeEditorId"> |
---|
320 | <equals |
---|
321 | value="org.eclipse.papyrus.infra.core.papyrusEditor"> |
---|
322 | </equals> |
---|
323 | </with> |
---|
324 | </visibleWhen> |
---|
325 | </command> |
---|
326 | --> |
---|
327 | </toolbar> |
---|
328 | </menuContribution> |
---|
329 | </extension> |
---|
330 | |
---|
331 | </plugin> |
---|