source: trunk/modelicaml/org.openmodelica.modelicaml.helper/plugin.xml @ 1596

Last change on this file since 1596 was 1596, checked in by wschamai, 12 years ago

MOD: Enhancements for simulation setting, report generation.

File size: 13.0 KB
Line 
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            allPopups="false"
202            locationURI="toolbar:org.eclipse.ui.main.toolbar">
203         <toolbar
204               id="org.openmodelica.modelicaml.toolbar.helper"
205               label="ModelicaML Verification">
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            <separator
216                  name="org.openmodelica.modelicaml.helper.separator1"
217                  visible="true">
218            </separator>
219            <command
220                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.automaticScenarioBasedVerification"
221                  icon="icons/automaticScenarioBasedVerification.gif"
222                  label="Automatic Scenario-Based Verification"
223                  style="push"
224                  tooltip="Automatic Scenario-Based Verification">
225               <visibleWhen>
226                  <with
227                        variable="activeEditorId">
228                     <equals
229                           value="org.eclipse.papyrus.core.papyrusEditor">
230                     </equals>
231                  </with>
232               </visibleWhen>
233            </command>
234            <command
235                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.discoverScenToReqRelations"
236                  icon="icons/correlationset.gif"
237                  label="Discover Relations Between Scenarios and Requirements"
238                  style="push"
239                  tooltip="Discover Relations Between Scenarios and Requirements">
240               <visibleWhen>
241                  <with
242                        variable="activeEditorId">
243                     <equals
244                           value="org.eclipse.papyrus.core.papyrusEditor">
245                     </equals>
246                  </with>
247               </visibleWhen>
248            </command>
249            <separator
250                  name="org.openmodelica.modelicaml.helper.separator2"
251                  visible="true">
252            </separator>
253            <command
254                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.generatesimmodels"
255                  icon="icons/new_testsuite.gif"
256                  label="Create Design Verification Models"
257                  style="push"
258                  tooltip="Create Design Verification Models">
259               <visibleWhen>
260                  <with
261                        variable="activeEditorId">
262                     <equals
263                           value="org.eclipse.papyrus.core.papyrusEditor">
264                     </equals>
265                  </with>
266               </visibleWhen>
267            </command>
268            <separator
269                  name="org.openmodelica.modelicaml.helper.separator3"
270                  visible="true">
271            </separator>
272            <command
273                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.analyzesimulationresults"
274                  icon="icons/runanalysis.gif"
275                  label="Analyze Verification Results"
276                  style="push"
277                  tooltip="Analyze Verification Results">
278               <visibleWhen>
279                  <with
280                        variable="activeEditorId">
281                     <equals
282                           value="org.eclipse.papyrus.core.papyrusEditor">
283                     </equals>
284                  </with>
285               </visibleWhen>
286            </command>
287            <!--
288            <command
289                  commandId="org.openmodelica.modelicaml.helper.commands.runtests"
290                  icon="icons/tscriptrun.gif"
291                  label="Run Design Verification Models"
292                  style="push"
293                  tooltip="Run Design Verification Models">
294               <visibleWhen>
295                  <with
296                        variable="activeEditorId">
297                     <equals
298                           value="org.eclipse.papyrus.core.papyrusEditor">
299                     </equals>
300                  </with>
301               </visibleWhen>
302            </command>
303            -->
304         </toolbar>
305      </menuContribution>
306   </extension>
307
308</plugin>
Note: See TracBrowser for help on using the repository browser.