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

Last change on this file since 1193 was 1022, checked in by wschamai, 13 years ago
  • remaned "Test" into "Verification"
  • modification due to profile update
File size: 6.8 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">
30      </command>
31   </extension>
32   <extension
33         point="org.eclipse.ui.handlers">
34      <!--
35      <handler
36            class="org.openmodelica.modelicaml.helper.handlers.InstantiateRequirementsHandler"
37            commandId="org.openmodelica.modelicaml.helper.commands.instantiaterequirements">
38         <activeWhen>
39            <with
40                  variable="selection">
41               <count
42                     value="1">
43               </count>
44               <iterate>
45                  <adapt
46                        type="org.eclipse.emf.ecore.EObject">
47                     <and>
48                        <instanceof
49                              value="org.eclipse.uml2.uml.Class">
50                        </instanceof>
51                        <or>
52                           <test
53                                 args="ModelicaML::ModelicaClassConstructs::Block"
54                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
55                           </test>
56                           <test
57                                 args="ModelicaML::ModelicaClassConstructs::Model"
58                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
59                           </test>
60                           <test
61                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
62                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
63                           </test>
64                        </or>
65                        <and>
66                           <not>
67                              <instanceof
68                                    value="org.eclipse.uml2.uml.Behavior">
69                              </instanceof>
70                           </not>
71                        </and>
72                     </and>
73                  </adapt>
74               </iterate>
75            </with>
76         </activeWhen>
77      </handler>
78      <handler
79            class="org.openmodelica.modelicaml.helper.handlers.GenerateTestOracleElementsHandler"
80            commandId="org.openmodelica.modelicaml.helper.commands.updateTestOracleElements">
81         <activeWhen>
82            <with
83                  variable="selection">
84               <count
85                     value="1">
86               </count>
87               <iterate>
88                  <adapt
89                        type="org.eclipse.emf.ecore.EObject">
90                     <and>
91                        <instanceof
92                              value="org.eclipse.uml2.uml.Class">
93                        </instanceof>
94                        <or>
95                           <test
96                                 args="ModelicaML::ModelicaClassConstructs::Block"
97                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
98                           </test>
99                           <test
100                                 args="ModelicaML::ModelicaClassConstructs::Model"
101                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
102                           </test>
103                           <test
104                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
105                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
106                           </test>
107                        </or>
108                        <and>
109                           <not>
110                              <instanceof
111                                    value="org.eclipse.uml2.uml.Behavior">
112                              </instanceof>
113                           </not>
114                        </and>
115                     </and>
116                  </adapt>
117               </iterate>
118            </with>
119         </activeWhen>
120      </handler>
121      -->
122      <handler
123            class="org.openmodelica.modelicaml.helper.handlers.VerificationModelsGenaratorHandler"
124            commandId="org.openmodelica.modelicaml.helper.commands.generatesimmodels">
125         <activeWhen>
126            <with
127                  variable="selection">
128               <count
129                     value="1">
130               </count>
131               <iterate>
132                  <adapt
133                        type="org.eclipse.emf.ecore.EObject">
134                     <and>
135                        <instanceof
136                              value="org.eclipse.uml2.uml.Class">
137                        </instanceof>
138                        <or>
139                           <test
140                                 args="ModelicaML::ModelicaClassConstructs::Block"
141                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
142                           </test>
143                           <test
144                                 args="ModelicaML::ModelicaClassConstructs::Model"
145                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
146                           </test>
147                           <test
148                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
149                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
150                           </test>
151                        </or>
152                        <and>
153                           <not>
154                              <instanceof
155                                    value="org.eclipse.uml2.uml.Behavior">
156                              </instanceof>
157                           </not>
158                        </and>
159                     </and>
160                  </adapt>
161               </iterate>
162            </with>
163         </activeWhen>
164      </handler>
165   </extension>
166
167</plugin>
Note: See TracBrowser for help on using the repository browser.