source: trunk/modelicaml/org.openmodelica.modelicaml.simulation/plugin.xml

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

MOD: Enhancements for simulation setting, report generation.

File size: 8.7 KB
Line 
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      <!--
89      <command
90            id="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMCSimCenter"
91            name="Simulate with OMC Simulation Center">
92      </command>
93      -->
94      <command
95            id="org.openmodelica.modelicaml.helper.commands.runtests"
96            name="Run Tests">
97      </command>
98   </extension>
99   <extension
100         point="org.eclipse.ui.handlers">
101      <handler
102            class="org.openmodelica.modelicaml.simulation.handlers.SimulationOMCAction"
103            commandId="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMC">
104         <activeWhen>
105            <with
106                  variable="selection">
107               <count
108                     value="1">
109               </count>
110               <iterate>
111                  <adapt
112                        type="org.eclipse.emf.ecore.EObject">
113                     <and>
114                        <not>
115                           <instanceof
116                                 value="org.eclipse.uml2.uml.Behavior">
117                           </instanceof>
118                        </not>
119                        <instanceof
120                              value="org.eclipse.uml2.uml.Class">
121                        </instanceof>
122                     </and>
123                  </adapt>
124               </iterate>
125            </with>
126         </activeWhen>
127      </handler>
128     <!--
129      <handler
130            class="org.openmodelica.modelicaml.simulation.handlers.CGFromEntireModelAndSimThisClassWithOMCSimCenterAction"
131            commandId="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMCSimCenter">
132         <activeWhen>
133            <with
134                  variable="selection">
135               <count
136                     value="1">
137               </count>
138               <iterate>
139                  <adapt
140                        type="org.eclipse.emf.ecore.EObject">
141                     <and>
142                        <not>
143                           <instanceof
144                                 value="org.eclipse.uml2.uml.Behavior">
145                           </instanceof>
146                        </not>
147                        <instanceof
148                              value="org.eclipse.uml2.uml.Class">
149                        </instanceof>
150                     </and>
151                  </adapt>
152               </iterate>
153            </with>
154         </activeWhen>
155      </handler>
156      -->
157      <handler
158            class="org.openmodelica.modelicaml.simulation.handlers.GenerateTestSiMDataAction"
159            commandId="org.openmodelica.modelicaml.helper.commands.runtests">
160      </handler>
161   </extension>
162   <extension
163         point="org.eclipse.ui.popupMenus">
164      <!--
165      <objectContribution
166            adaptable="false"
167            id="org.openmodelica.modelicaml.simulation.popup.testsessionxml.object"
168            nameFilter="*.xml"
169            objectClass="org.eclipse.core.resources.IFile">
170         <action
171               class="org.openmodelica.modelicaml.simulation.testexecution.actions.ExecuteTestsAction"
172               icon="icons/tscriptrun.gif"
173               id="org.openmodelica.modelicaml.simulation.testexecution.execute"
174               label="ModelicaML: Run Design Verification Models"
175               style="push">
176         </action>
177      </objectContribution>
178      -->
179      <objectContribution
180            adaptable="false"
181            id="org.openmodelica.modelicaml.simulation.popup.testresultsxml.object"
182            nameFilter="*.mat"
183            objectClass="org.eclipse.core.resources.IFile">
184         <action
185               class="org.openmodelica.modelicaml.simulation.testexecution.actions.PlotResultsFileAction"
186               icon="icons/plot.png"
187               id="org.openmodelica.modelicaml.simulation.testexecution.plot"
188               label="ModelicaML: Plot Results"
189               style="push">
190         </action>
191      </objectContribution>
192      <!--
193      <objectContribution
194            adaptable="false"
195            id="org.openmodelica.modelicaml.simulation.popup.testsessionreportdata.object"
196            nameFilter="*.html"
197            objectClass="org.eclipse.core.resources.IFile">
198         <action
199               class="org.openmodelica.modelicaml.simulation.testexecution.actions.UpdateTestExecutionReportDataAction"
200               icon="icons/new_report.gif"
201               id="org.openmodelica.modelicaml.simulation.testexecution.updatereport"
202               label="ModelicaML: Update Verification Report"
203               style="push">
204         </action>
205      </objectContribution>
206      -->
207      <objectContribution
208            adaptable="false"
209            id="org.openmodelica.modelicaml.simulation.popup.testsessionreport.object"
210            nameFilter="*.html"
211            objectClass="org.eclipse.core.resources.IFile">
212         <action
213               class="org.openmodelica.modelicaml.simulation.testexecution.actions.OpenTestExecutionReportAction"
214               icon="icons/report.gif"
215               id="org.openmodelica.modelicaml.simulation.testexecution.openreport"
216               label="ModelicaML: Open Verification Report"
217               style="push">
218         </action>
219      </objectContribution>
220   </extension>
221
222</plugin>
Note: See TracBrowser for help on using the repository browser.