1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <?eclipse version="3.4"?> |
---|
3 | <plugin> |
---|
4 | <!--<extension |
---|
5 | point="org.eclipse.ui.menus"> |
---|
6 | <menuContribution |
---|
7 | allPopups="false" |
---|
8 | locationURI="popup:org.eclipse.papyrus.modelexplorer.modelexplorer.popup"> |
---|
9 | <menu |
---|
10 | icon="icons/timeline_marker.png" |
---|
11 | label="ModelicaML: Simulation"> |
---|
12 | <command |
---|
13 | commandId="com.eadsiw.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMC" |
---|
14 | icon="icons/timeline_marker.png" |
---|
15 | label="Simulate with OMC" |
---|
16 | style="push" |
---|
17 | tooltip="Simulate and Plot with OMC"> |
---|
18 | <visibleWhen |
---|
19 | checkEnabled="true"> |
---|
20 | <with |
---|
21 | variable="selection"> |
---|
22 | <count |
---|
23 | value="1"> |
---|
24 | </count> |
---|
25 | <iterate> |
---|
26 | <adapt |
---|
27 | type="org.eclipse.emf.ecore.EObject"> |
---|
28 | <or> |
---|
29 | <instanceof |
---|
30 | value="org.eclipse.uml2.uml.Package"> |
---|
31 | </instanceof> |
---|
32 | <instanceof |
---|
33 | value="org.eclipse.uml2.uml.Class"> |
---|
34 | </instanceof> |
---|
35 | </or> |
---|
36 | </adapt> |
---|
37 | </iterate> |
---|
38 | </with> |
---|
39 | </visibleWhen> |
---|
40 | </command> |
---|
41 | <command |
---|
42 | commandId="com.eadsiw.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMCSimCenter" |
---|
43 | icon="icons/timeline_marker.png" |
---|
44 | label="Simulate with OMSim Center" |
---|
45 | style="push" |
---|
46 | tooltip="Open in OMC Simulation Center"> |
---|
47 | <visibleWhen |
---|
48 | checkEnabled="true"> |
---|
49 | <with |
---|
50 | variable="selection"> |
---|
51 | <count |
---|
52 | value="1"> |
---|
53 | </count> |
---|
54 | <iterate> |
---|
55 | <adapt |
---|
56 | type="org.eclipse.emf.ecore.EObject"> |
---|
57 | <or> |
---|
58 | <instanceof |
---|
59 | value="org.eclipse.uml2.uml.Package"> |
---|
60 | </instanceof> |
---|
61 | <instanceof |
---|
62 | value="org.eclipse.uml2.uml.Class"> |
---|
63 | </instanceof> |
---|
64 | </or> |
---|
65 | </adapt> |
---|
66 | </iterate> |
---|
67 | </with> |
---|
68 | </visibleWhen> |
---|
69 | </command> |
---|
70 | <visibleWhen |
---|
71 | checkEnabled="false"> |
---|
72 | <with |
---|
73 | variable="activeWorkbenchWindow.activePerspective"> |
---|
74 | <equals |
---|
75 | value="org.openmodelica.modelicaml.perspective"> |
---|
76 | </equals> |
---|
77 | </with> |
---|
78 | </visibleWhen> |
---|
79 | </menu> |
---|
80 | </menuContribution> |
---|
81 | </extension>--> |
---|
82 | <extension |
---|
83 | point="org.eclipse.ui.commands"> |
---|
84 | <command |
---|
85 | id="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMC" |
---|
86 | name="Simulate with OMC"> |
---|
87 | </command> |
---|
88 | <command |
---|
89 | id="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMCSimCenter" |
---|
90 | name="Simulate with OMC Simulation Center"> |
---|
91 | </command> |
---|
92 | <command |
---|
93 | id="org.openmodelica.modelicaml.helper.commands.runtests" |
---|
94 | name="Run Tests"> |
---|
95 | </command> |
---|
96 | </extension> |
---|
97 | <extension |
---|
98 | point="org.eclipse.ui.handlers"> |
---|
99 | <handler |
---|
100 | class="org.openmodelica.modelicaml.simulation.handlers.GenerateModelicaCodeFromEntireModelicaMLModelAndSimulationThisClassWithOMCAction" |
---|
101 | commandId="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMC"> |
---|
102 | <activeWhen> |
---|
103 | <with |
---|
104 | variable="selection"> |
---|
105 | <count |
---|
106 | value="1"> |
---|
107 | </count> |
---|
108 | <iterate> |
---|
109 | <adapt |
---|
110 | type="org.eclipse.emf.ecore.EObject"> |
---|
111 | <and> |
---|
112 | <not> |
---|
113 | <instanceof |
---|
114 | value="org.eclipse.uml2.uml.Behavior"> |
---|
115 | </instanceof> |
---|
116 | </not> |
---|
117 | <instanceof |
---|
118 | value="org.eclipse.uml2.uml.Class"> |
---|
119 | </instanceof> |
---|
120 | </and> |
---|
121 | </adapt> |
---|
122 | </iterate> |
---|
123 | </with> |
---|
124 | </activeWhen> |
---|
125 | </handler> |
---|
126 | <handler |
---|
127 | class="org.openmodelica.modelicaml.simulation.handlers.CGFromEntireModelAndSimThisClassWithOMCSimCenterAction" |
---|
128 | commandId="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMCSimCenter"> |
---|
129 | <activeWhen> |
---|
130 | <with |
---|
131 | variable="selection"> |
---|
132 | <count |
---|
133 | value="1"> |
---|
134 | </count> |
---|
135 | <iterate> |
---|
136 | <adapt |
---|
137 | type="org.eclipse.emf.ecore.EObject"> |
---|
138 | <and> |
---|
139 | <not> |
---|
140 | <instanceof |
---|
141 | value="org.eclipse.uml2.uml.Behavior"> |
---|
142 | </instanceof> |
---|
143 | </not> |
---|
144 | <instanceof |
---|
145 | value="org.eclipse.uml2.uml.Class"> |
---|
146 | </instanceof> |
---|
147 | </and> |
---|
148 | </adapt> |
---|
149 | </iterate> |
---|
150 | </with> |
---|
151 | </activeWhen> |
---|
152 | </handler> |
---|
153 | <handler |
---|
154 | class="org.openmodelica.modelicaml.simulation.handlers.GenerateTestSiMDataAction" |
---|
155 | commandId="org.openmodelica.modelicaml.helper.commands.runtests"> |
---|
156 | </handler> |
---|
157 | </extension> |
---|
158 | <extension |
---|
159 | point="org.eclipse.ui.popupMenus"> |
---|
160 | <objectContribution |
---|
161 | adaptable="false" |
---|
162 | id="org.openmodelica.modelicaml.simulation.popup.testsessionxml.object" |
---|
163 | nameFilter="*.xml" |
---|
164 | objectClass="org.eclipse.core.resources.IFile"> |
---|
165 | <action |
---|
166 | class="org.openmodelica.modelicaml.simulation.testexecution.actions.ExecuteTestsAction" |
---|
167 | icon="icons/execute.png" |
---|
168 | id="org.openmodelica.modelicaml.simulation.testexecution.execute" |
---|
169 | label="ModelicaML: Execute Tests" |
---|
170 | style="push"> |
---|
171 | </action> |
---|
172 | </objectContribution> |
---|
173 | <objectContribution |
---|
174 | adaptable="false" |
---|
175 | id="org.openmodelica.modelicaml.simulation.popup.testresultsxml.object" |
---|
176 | nameFilter="*_res.xml" |
---|
177 | objectClass="org.eclipse.core.resources.IFile"> |
---|
178 | <action |
---|
179 | class="org.openmodelica.modelicaml.simulation.testexecution.actions.PlotTestResultsAction" |
---|
180 | icon="icons/execute.png" |
---|
181 | id="org.openmodelica.modelicaml.simulation.testexecution.plot" |
---|
182 | label="ModelicaML: Plot Results" |
---|
183 | style="push"> |
---|
184 | </action> |
---|
185 | </objectContribution> |
---|
186 | <objectContribution |
---|
187 | adaptable="false" |
---|
188 | id="org.openmodelica.modelicaml.simulation.popup.testsessionreportdata.object" |
---|
189 | nameFilter="*.html" |
---|
190 | objectClass="org.eclipse.core.resources.IFile"> |
---|
191 | <action |
---|
192 | class="org.openmodelica.modelicaml.simulation.testexecution.actions.UpdateTestExecutionReportDataAction" |
---|
193 | icon="icons/execute.png" |
---|
194 | id="org.openmodelica.modelicaml.simulation.testexecution.updatereport" |
---|
195 | label="ModelicaML: Update report" |
---|
196 | style="push"> |
---|
197 | </action> |
---|
198 | </objectContribution> |
---|
199 | <objectContribution |
---|
200 | adaptable="false" |
---|
201 | id="org.openmodelica.modelicaml.simulation.popup.testsessionreport.object" |
---|
202 | nameFilter="*.html" |
---|
203 | objectClass="org.eclipse.core.resources.IFile"> |
---|
204 | <action |
---|
205 | class="org.openmodelica.modelicaml.simulation.testexecution.actions.OpenTestExecutionReportAction" |
---|
206 | icon="icons/execute.png" |
---|
207 | id="org.openmodelica.modelicaml.simulation.testexecution.openreport" |
---|
208 | label="ModelicaML: Open report" |
---|
209 | style="push"> |
---|
210 | </action> |
---|
211 | </objectContribution> |
---|
212 | </extension> |
---|
213 | |
---|
214 | </plugin> |
---|