source: trunk/modelicaml/org.openmodelica.modelicaml.profile/plugin.xml @ 1642

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

MOD: sync. actions added to model explorer pupup actions
NEW: create comment action

File size: 143.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.2"?>
3<plugin>
4   <extension
5         point="org.eclipse.emf.ecore.uri_mapping">
6      <mapping
7            source="pathmap://PALETTE_PROFILE/"
8            target="platform:/plugin/org.openmodelica.modelicaml.profile/profiles/"/>
9      <mapping
10            source="pathmap://PATH_LIBRARIES/"
11            target="platform:/plugin/org.openmodelica.modelicaml.profile/libraries/">
12      </mapping>
13   </extension>
14
15   <extension
16         point="org.eclipse.ui.menus">
17      <menuContribution
18            allPopups="false"
19            locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
20<!--        <menuContribution
21            allPopups="false"
22            locationURI="popup:org.openmodelica.modelicaml.modelexplorer.popup"> -->
23     <separator
24           name="org.openmodelica.modelicaml.profile.separator1"
25           visible="true">
26     </separator>
27           
28         <menu
29               icon="resources/icons/icons16/new.gif"
30               label="ModelicaML: New Element">
31            <command
32                  commandId="org.openmodelica.modelicaml.commands.CreatePackageCommand"
33                  icon="resources/icons/papyrus/Package.gif"
34                  label="Package(s)"
35                  style="push">
36               <visibleWhen
37                     checkEnabled="true">
38               </visibleWhen>
39            </command>
40            <command
41                  commandId="org.openmodelica.modelicaml.commands.CreateClassDiagram"
42                  icon="resources/icons/papyrus/Diagram_Class.gif"
43                  label="Class Diagram"
44                  style="push">
45               <visibleWhen
46                     checkEnabled="true">
47               </visibleWhen>
48            </command>
49            <separator
50                  name="org.openmodelica.modelicaml.profile.separator1"
51                  visible="true">
52            </separator>
53            <command
54                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaRequirementCommand"
55                  icon="resources/icons/icons16/requirement.gif"
56                  label="Requirement(s)"
57                  style="push">
58               <visibleWhen
59                     checkEnabled="true">
60                  <with
61                        variable="selection">
62                     <iterate
63                           ifEmpty="false"
64                           operator="or">
65                        <adapt
66                              type="org.eclipse.emf.ecore.EObject">
67                           <instanceof
68                                 value="org.eclipse.uml2.uml.Package">
69                           </instanceof>
70                        </adapt>
71                     </iterate>
72                     <count
73                           value="1">
74                     </count>
75                  </with>
76               </visibleWhen>
77            </command>
78            <command
79                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaClassCommand"
80                  icon="resources/icons/icons16/model.gif"
81                  label="System Model(s)"
82                  style="push">
83               <visibleWhen
84                     checkEnabled="true">
85                  <with
86                        variable="selection">
87                     <iterate
88                           ifEmpty="false"
89                           operator="or">
90                        <adapt
91                              type="org.eclipse.emf.ecore.EObject">
92                           <instanceof
93                                 value="org.eclipse.uml2.uml.Package">
94                           </instanceof>
95                        </adapt>
96                     </iterate>
97                     <count
98                           value="1">
99                     </count>
100                  </with>
101               </visibleWhen>
102            </command>
103            <command
104                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand"
105                  icon="resources/icons/icons16/connector.gif"
106                  label="Interface Defintion(s)"
107                  style="push">
108               <visibleWhen
109                     checkEnabled="true">
110                  <with
111                        variable="selection">
112                     <iterate
113                           ifEmpty="false"
114                           operator="or">
115                        <adapt
116                              type="org.eclipse.emf.ecore.EObject">
117                           <instanceof
118                                 value="org.eclipse.uml2.uml.Package">
119                           </instanceof>
120                        </adapt>
121                     </iterate>
122                     <count
123                           value="1">
124                     </count>
125                  </with>
126               </visibleWhen>
127            </command>
128            <command
129                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaCalculationModelCommand"
130                  icon="resources/icons/icons16/calculationModel.gif"
131                  label="Calculation Model(s)"
132                  style="push">
133               <visibleWhen
134                     checkEnabled="true">
135                  <with
136                        variable="selection">
137                     <iterate
138                           ifEmpty="false"
139                           operator="or">
140                        <adapt
141                              type="org.eclipse.emf.ecore.EObject">
142                           <instanceof
143                                 value="org.eclipse.uml2.uml.Package">
144                           </instanceof>
145                        </adapt>
146                     </iterate>
147                     <count
148                           value="1">
149                     </count>
150                  </with>
151               </visibleWhen>
152            </command>
153            <command
154                  commandId="org.openmodelica.modelicaml.commands.CreateTestScenarioCommand"
155                  icon="resources/icons/icons16/calculationModel.gif"
156                  label="Verification Scenario(s)"
157                  style="push"
158                  tooltip="Verification Scenario(s)">
159               <visibleWhen
160                     checkEnabled="true">
161                  <with
162                        variable="selection">
163                     <iterate
164                           ifEmpty="false"
165                           operator="or">
166                        <adapt
167                              type="org.eclipse.emf.ecore.EObject">
168                           <instanceof
169                                 value="org.eclipse.uml2.uml.Package">
170                           </instanceof>
171                        </adapt>
172                     </iterate>
173                     <count
174                           value="1">
175                     </count>
176                  </with>
177               </visibleWhen>
178            </command>
179            <command
180                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaSimulationModelCommand"
181                  icon="resources/icons/icons16/model.gif"
182                  label="Simulation Model(s)"
183                  style="push">
184               <visibleWhen
185                     checkEnabled="true">
186                  <with
187                        variable="selection">
188                     <iterate
189                           ifEmpty="false"
190                           operator="or">
191                        <adapt
192                              type="org.eclipse.emf.ecore.EObject">
193                           <instanceof
194                                 value="org.eclipse.uml2.uml.Package">
195                           </instanceof>
196                        </adapt>
197                     </iterate>
198                     <count
199                           value="1">
200                     </count>
201                  </with>
202               </visibleWhen>
203            </command>
204            <separator
205                  name="org.openmodelica.modelicaml.profile.separator2"
206                  visible="true">
207            </separator>
208            <command
209                  commandId="org.openmodelica.modelicaml.commands.CreateValueMediatorsContainerCommand"
210                  icon="resources/icons/icons16/valueMediatorsContainer.png"
211                  label="Value Mediator Container"
212                  style="push"
213                  tooltip="Value Mediator Container">
214               <visibleWhen
215                     checkEnabled="true">
216                  <with
217                        variable="selection">
218                     <iterate
219                           ifEmpty="false"
220                           operator="or">
221                        <adapt
222                              type="org.eclipse.emf.ecore.EObject">
223                           <instanceof
224                                 value="org.eclipse.uml2.uml.Package">
225                           </instanceof>
226                        </adapt>
227                     </iterate>
228                     <count
229                           value="1">
230                     </count>
231                  </with>
232               </visibleWhen>
233            </command>
234            <command
235                  commandId="org.openmodelica.modelicaml.commands.CreateValueMediatorCommand"
236                  icon="resources/icons/icons16/valueMediator.png"
237                  label="Value Mediator"
238                  style="push">
239               <visibleWhen
240                     checkEnabled="true">
241                  <with
242                        variable="selection">
243                     <iterate
244                           ifEmpty="false"
245                           operator="or">
246                        <adapt
247                              type="org.eclipse.emf.ecore.EObject">
248                           <and>
249                              <test
250                                    args="ModelicaML::ValueBinding::ValueMediatorsContainer"
251                                    forcePluginActivation="true"
252                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
253                              </test>
254                           </and>
255                        </adapt>
256                     </iterate>
257                     <count
258                           value="1">
259                     </count>
260                  </with>
261               </visibleWhen>
262            </command>
263            <separator
264                  name="org.openmodelica.modelicaml.profile.separator3"
265                  visible="true">
266            </separator>
267            <command
268                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaRequirementInstanceCommand"
269                  icon="resources/icons/icons16/requirementInstance.png"
270                  label="Requirement Instance"
271                  style="push">
272               <visibleWhen
273                     checkEnabled="true">
274                  <with
275                        variable="selection">
276                     <iterate
277                           ifEmpty="false"
278                           operator="or">
279                        <adapt
280                              type="org.eclipse.emf.ecore.EObject">
281                           <test
282                                 args="ModelicaML::ModelicaSimulationConstructs::Simulation"
283                                 forcePluginActivation="true"
284                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
285                           </test>
286                        </adapt>
287                     </iterate>
288                     <count
289                           value="1">
290                     </count>
291                  </with>
292               </visibleWhen>
293            </command>
294            <command
295                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaFunctionArgumentCommand"
296                  icon="resources/icons/icons16/Parameter.gif"
297                  label="Function Argument"
298                  style="push">
299               <visibleWhen
300                     checkEnabled="true">
301               </visibleWhen>
302            </command>
303            <command
304                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaVariableCommand"
305                  icon="resources/icons/icons16/variable.png"
306                  label="Variables (Primitive)"
307                  style="push">
308               <visibleWhen
309                     checkEnabled="true">
310               </visibleWhen>
311            </command>
312            <command
313                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationLiteralCommand"
314                  icon="resources/icons/icons16/EnumerationLiteral.gif"
315                  label="Enumeration Literal"
316                  style="push">
317               <visibleWhen
318                     checkEnabled="true">
319               </visibleWhen>
320            </command>
321            <separator
322                  name="org.openmodelica.modelicaml.profile.separator4"
323                  visible="true">
324            </separator>
325            <command
326                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaComponentCommand"
327                  icon="resources/icons/icons16/component.png"
328                  label="Component (Model Usage)"
329                  style="push">
330               <visibleWhen
331                     checkEnabled="true">
332                  <with
333                        variable="selection">
334                     <iterate
335                           ifEmpty="false"
336                           operator="or">
337                        <adapt
338                              type="org.eclipse.emf.ecore.EObject">
339                           <or>
340                              <test
341                                    args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
342                                    forcePluginActivation="true"
343                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
344                              </test>
345                              <test
346                                    args="ModelicaML::ModelicaClassConstructs::Model"
347                                    forcePluginActivation="true"
348                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
349                              </test>
350                              <test
351                                    args="ModelicaML::ModelicaClassConstructs::Block"
352                                    forcePluginActivation="true"
353                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
354                              </test>
355                           </or>
356                        </adapt>
357                     </iterate>
358                     <count
359                           value="1">
360                     </count>
361                  </with>
362               </visibleWhen>
363            </command>
364            <command
365                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaPortCommand"
366                  icon="resources/icons/papyrus/Port.gif"
367                  label="Port (Interface Usage)"
368                  style="push">
369               <visibleWhen
370                     checkEnabled="true">
371               </visibleWhen>
372            </command>
373            <command
374                  commandId="org.openmodelica.modelicaml.commands.CreateConnectionDiagram"
375                  icon="resources/icons/papyrus/Diagram_CompositeStructure.gif"
376                  label="Connection Diagram"
377                  style="push">
378               <visibleWhen
379                     checkEnabled="true">
380               </visibleWhen>
381            </command>
382            <separator
383                  name="org.openmodelica.modelicaml.profile.separator5"
384                  visible="true">
385            </separator>
386            <command
387                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaCalculatedPropertyCommand"
388                  icon="resources/icons/icons16/calculatedProperty.png"
389                  label="Calculated Property (Calculation Model Usage)"
390                  style="push">
391               <visibleWhen
392                     checkEnabled="true">
393                  <with
394                        variable="selection">
395                     <iterate
396                           ifEmpty="false"
397                           operator="or">
398                        <adapt
399                              type="org.eclipse.emf.ecore.EObject">
400                           <not>
401                              <test
402                                    args="ModelicaML::ValueBinding::ValueMediatorsContainer"
403                                    forcePluginActivation="true"
404                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
405                              </test>
406                           </not>
407                        </adapt>
408                     </iterate>
409                     <count
410                           value="1">
411                     </count>
412                  </with>
413               </visibleWhen>
414            </command>
415            <separator
416                  name="org.openmodelica.modelicaml.profile.separator6"
417                  visible="true">
418            </separator>
419            <menu
420                  label="Modelica Classes">
421               <command
422                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaPackageCommand"
423                     icon="resources/icons/icons16/package.gif"
424                     label="Modelica Package"
425                     style="push">
426                  <visibleWhen
427                        checkEnabled="true">
428                  </visibleWhen>
429               </command>
430               <command
431                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaOperatorCommand"
432                     icon="resources/icons/icons16/operator.gif"
433                     label="Operator"
434                     style="push">
435                  <visibleWhen
436                        checkEnabled="true">
437                  </visibleWhen>
438               </command>
439               <command
440                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaModelCommand"
441                     icon="resources/icons/icons16/model.gif"
442                     label="Model"
443                     style="push">
444                  <visibleWhen
445                        checkEnabled="true">
446                  </visibleWhen>
447               </command>
448               <command
449                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaBlockCommand"
450                     icon="resources/icons/icons16/block.gif"
451                     label="Block"
452                     style="push">
453                  <visibleWhen
454                        checkEnabled="true">
455                  </visibleWhen>
456               </command>
457               <command
458                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand"
459                     icon="resources/icons/icons16/connector.gif"
460                     label="Connector"
461                     style="push">
462                  <visibleWhen
463                        checkEnabled="true">
464                  </visibleWhen>
465               </command>
466               <command
467                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaRecordCommand"
468                     icon="resources/icons/icons16/record.gif"
469                     label="Record"
470                     style="push">
471                  <visibleWhen
472                        checkEnabled="true">
473                  </visibleWhen>
474               </command>
475               <command
476                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaFunctionCommand"
477                     icon="resources/icons/papyrus/FunctionBehavior.gif"
478                     label="Function"
479                     style="push">
480                  <visibleWhen
481                        checkEnabled="true">
482                  </visibleWhen>
483               </command>
484               <command
485                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaTypeCommand"
486                     icon="resources/icons/icons16/type.gif"
487                     label="Type"
488                     style="push">
489                  <visibleWhen
490                        checkEnabled="true">
491                  </visibleWhen>
492               </command>
493               <command
494                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationCommand"
495                     icon="resources/icons/papyrus/Enumeration.gif"
496                     label="Enumeration"
497                     style="push">
498                  <visibleWhen
499                        checkEnabled="true">
500                  </visibleWhen>
501               </command>
502               <visibleWhen
503                     checkEnabled="false">
504                  <with
505                        variable="selection">
506                     <iterate
507                           ifEmpty="false"
508                           operator="or">
509                        <adapt
510                              type="org.eclipse.emf.ecore.EObject">
511                           <instanceof
512                                 value="org.eclipse.uml2.uml.Package">
513                           </instanceof>
514                        </adapt>
515                     </iterate>
516                     <count
517                           value="1">
518                     </count>
519                  </with>
520               </visibleWhen>
521            </menu>
522            <separator
523                  name="org.openmodelica.modelicaml.profile.separator7"
524                  visible="true">
525            </separator>
526            <command
527                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaAlgorithmCommand"
528                  icon="resources/icons/papyrus/OpaqueBehavior.gif"
529                  label="Algorithm Section"
530                  style="push"
531                  tooltip="Algorithm Section">
532               <visibleWhen
533                     checkEnabled="true">
534                  <with
535                        variable="selection">
536                     <iterate
537                           ifEmpty="false"
538                           operator="or">
539                        <adapt
540                              type="org.eclipse.emf.ecore.EObject">
541                           <not>
542                              <test
543                                    args="ModelicaML::ValueBinding::ValueMediatorsContainer"
544                                    forcePluginActivation="true"
545                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
546                              </test>
547                           </not>
548                        </adapt>
549                     </iterate>
550                     <count
551                           value="1">
552                     </count>
553                  </with>
554               </visibleWhen>
555            </command>
556            <command
557                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaEquationsCodeCommand"
558                  icon="resources/icons/papyrus/OpaqueBehavior.gif"
559                  label="Equation Section"
560                  style="push"
561                  tooltip="Equation Section">
562               <visibleWhen
563                     checkEnabled="true">
564                  <with
565                        variable="selection">
566                     <iterate
567                           ifEmpty="false"
568                           operator="or">
569                        <adapt
570                              type="org.eclipse.emf.ecore.EObject">
571                           <not>
572                              <test
573                                    args="ModelicaML::ValueBinding::ValueMediatorsContainer"
574                                    forcePluginActivation="true"
575                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
576                              </test>
577                           </not>
578                        </adapt>
579                     </iterate>
580                     <count
581                           value="1">
582                     </count>
583                  </with>
584               </visibleWhen>
585            </command>
586            <command
587                  commandId="org.openmodelica.modelicaml.commands.CreateStateMachineDiagram"
588                  icon="resources/icons/papyrus/Diagram_StateMachine.gif"
589                  label="State Machine"
590                  style="push">
591               <visibleWhen
592                     checkEnabled="true">
593               </visibleWhen>
594            </command>
595            <separator
596                  name="org.openmodelica.modelicaml.profile.separator8"
597                  visible="true">
598            </separator>
599            <command
600                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaAssertCommand"
601                  icon="resources/icons/papyrus/Constraint.gif"
602                  label="Assert"
603                  style="push">
604               <visibleWhen
605                     checkEnabled="true">
606               </visibleWhen>
607            </command>
608            <separator
609                  name="org.openmodelica.modelicaml.profile.separator9"
610                  visible="true">
611            </separator>
612            <command
613                  commandId="org.openmodelica.modelicaml.commands.CreateModelicaAnnotationCommand"
614                  icon="resources/icons/papyrus/Comment.gif"
615                  label="Annotation"
616                  style="push">
617               <visibleWhen
618                     checkEnabled="true">
619               </visibleWhen>
620            </command>
621            <separator
622                  name="org.openmodelica.modelicaml.profile.separator10"
623                  visible="true">
624            </separator>
625            <menu
626                  label="Nested Classes">
627               <command
628                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaRequirementCommand"
629                     icon="resources/icons/icons16/requirement.gif"
630                     label="Requirement(s)"
631                     style="push">
632                  <visibleWhen
633                        checkEnabled="true">
634                  </visibleWhen>
635               </command>
636               <command
637                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaClassCommand"
638                     icon="resources/icons/icons16/model.gif"
639                     label="System Model(s)"
640                     style="push">
641                  <visibleWhen
642                        checkEnabled="true">
643                     <with
644                           variable="selection">
645                        <iterate
646                              ifEmpty="false"
647                              operator="or">
648                           <adapt
649                                 type="org.eclipse.emf.ecore.EObject">
650                              <or>
651                                 <test
652                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
653                                       forcePluginActivation="true"
654                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
655                                 </test>
656                                 <test
657                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
658                                       forcePluginActivation="true"
659                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
660                                 </test>
661                                 <test
662                                       args="ModelicaML::ModelicaClassConstructs::Model"
663                                       forcePluginActivation="true"
664                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
665                                 </test>
666                                 <test
667                                       args="ModelicaML::ModelicaClassConstructs::Block"
668                                       forcePluginActivation="true"
669                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
670                                 </test>
671                              </or>
672                           </adapt>
673                        </iterate>
674                        <count
675                              value="1">
676                        </count>
677                     </with>
678                  </visibleWhen>
679               </command>
680               <command
681                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand"
682                     icon="resources/icons/icons16/connector.gif"
683                     label="Interface Defintion(s)"
684                     style="push">
685                  <visibleWhen
686                        checkEnabled="true">
687                     <with
688                           variable="selection">
689                        <iterate
690                              ifEmpty="false"
691                              operator="or">
692                           <adapt
693                                 type="org.eclipse.emf.ecore.EObject">
694                              <or>
695                                 <test
696                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
697                                       forcePluginActivation="true"
698                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
699                                 </test>
700                                 <test
701                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
702                                       forcePluginActivation="true"
703                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
704                                 </test>
705                                 <test
706                                       args="ModelicaML::ModelicaClassConstructs::Model"
707                                       forcePluginActivation="true"
708                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
709                                 </test>
710                                 <test
711                                       args="ModelicaML::ModelicaClassConstructs::Block"
712                                       forcePluginActivation="true"
713                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
714                                 </test>
715                              </or>
716                           </adapt>
717                        </iterate>
718                        <count
719                              value="1">
720                        </count>
721                     </with>
722                  </visibleWhen>
723               </command>
724               <command
725                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaCalculationModelCommand"
726                     icon="resources/icons/icons16/calculationModel.gif"
727                     label="Calculation Model(s)"
728                     style="push">
729                  <visibleWhen
730                        checkEnabled="true">
731                  </visibleWhen>
732               </command>
733               <command
734                     commandId="org.openmodelica.modelicaml.commands.CreateModelicaSimulationModelCommand"
735                     icon="resources/icons/icons16/model.gif"
736                     label="Simulation Model(s)"
737                     style="push">
738                  <visibleWhen
739                        checkEnabled="true">
740                     <with
741                           variable="selection">
742                        <iterate
743                              ifEmpty="false"
744                              operator="or">
745                           <adapt
746                                 type="org.eclipse.emf.ecore.EObject">
747                              <or>
748                                 <test
749                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
750                                       forcePluginActivation="true"
751                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
752                                 </test>
753                                 <test
754                                       args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
755                                       forcePluginActivation="true"
756                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
757                                 </test>
758                                 <test
759                                       args="ModelicaML::ModelicaClassConstructs::Model"
760                                       forcePluginActivation="true"
761                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
762                                 </test>
763                                 <test
764                                       args="ModelicaML::ModelicaClassConstructs::Block"
765                                       forcePluginActivation="true"
766                                       property="org.openmodelica.modelicaml.testers.hasStereotype">
767                                 </test>
768                              </or>
769                           </adapt>
770                        </iterate>
771                        <count
772                              value="1">
773                        </count>
774                     </with>
775                  </visibleWhen>
776               </command>
777               <menu
778                     label="Modelica Classes">
779                  <command
780                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaPackageCommand"
781                        icon="resources/icons/icons16/package.gif"
782                        label="Modelica Package"
783                        style="push">
784                     <visibleWhen
785                           checkEnabled="true">
786                     </visibleWhen>
787                  </command>
788                  <command
789                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaOperatorCommand"
790                        icon="resources/icons/icons16/operator.gif"
791                        label="Operator"
792                        style="push">
793                     <visibleWhen
794                           checkEnabled="true">
795                     </visibleWhen>
796                  </command>
797                  <command
798                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaModelCommand"
799                        icon="resources/icons/icons16/model.gif"
800                        label="Model"
801                        style="push">
802                     <visibleWhen
803                           checkEnabled="true">
804                     </visibleWhen>
805                  </command>
806                  <command
807                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaBlockCommand"
808                        icon="resources/icons/icons16/block.gif"
809                        label="Block"
810                        style="push">
811                     <visibleWhen
812                           checkEnabled="true">
813                     </visibleWhen>
814                  </command>
815                  <command
816                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand"
817                        icon="resources/icons/icons16/connector.gif"
818                        label="Connector"
819                        style="push">
820                     <visibleWhen
821                           checkEnabled="true">
822                     </visibleWhen>
823                  </command>
824                  <command
825                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaRecordCommand"
826                        icon="resources/icons/icons16/record.gif"
827                        label="Record"
828                        style="push">
829                     <visibleWhen
830                           checkEnabled="true">
831                     </visibleWhen>
832                  </command>
833                  <command
834                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaFunctionCommand"
835                        icon="resources/icons/papyrus/FunctionBehavior.gif"
836                        label="Function"
837                        style="push">
838                     <visibleWhen
839                           checkEnabled="true">
840                     </visibleWhen>
841                  </command>
842                  <command
843                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaTypeCommand"
844                        icon="resources/icons/icons16/type.gif"
845                        label="Type"
846                        style="push">
847                     <visibleWhen
848                           checkEnabled="true">
849                     </visibleWhen>
850                  </command>
851                  <command
852                        commandId="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationCommand"
853                        icon="resources/icons/papyrus/Enumeration.gif"
854                        label="Enumeration"
855                        style="push">
856                     <visibleWhen
857                           checkEnabled="true">
858                     </visibleWhen>
859                  </command>
860               </menu>
861               <visibleWhen
862                     checkEnabled="false">
863                  <with
864                        variable="selection">
865                     <iterate
866                           ifEmpty="false"
867                           operator="or">
868                        <adapt
869                              type="org.eclipse.emf.ecore.EObject">
870                           <not>
871                              <test
872                                    args="ModelicaML::ModelicaClassConstructs::Function"
873                                    forcePluginActivation="true"
874                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
875                              </test>
876                           </not>
877                           <and>
878                              <or>
879                                 <instanceof
880                                       value="org.eclipse.uml2.uml.Class">
881                                 </instanceof>
882                              </or>
883                           </and>
884                           <not>
885                              <instanceof
886                                    value="org.eclipse.uml2.uml.Behavior">
887                              </instanceof>
888                           </not>
889                           <not>
890                              <instanceof
891                                    value="org.eclipse.uml2.uml.Package">
892                              </instanceof>
893                           </not>
894                           <not>
895                              <test
896                                    args="ModelicaML::ValueBinding::ValueMediatorsContainer"
897                                    forcePluginActivation="true"
898                                    property="org.openmodelica.modelicaml.testers.hasStereotype">
899                              </test>
900                           </not>
901                        </adapt>
902                     </iterate>
903                     <count
904                           value="1">
905                     </count>
906                  </with>
907               </visibleWhen>
908            </menu>
909           
910            <visibleWhen
911                  checkEnabled="false">
912               <with
913                     variable="activeWorkbenchWindow.activePerspective">
914                  <equals
915                        value="org.openmodelica.modelicaml.perspective">
916                  </equals>
917               </with>
918            </visibleWhen>
919         </menu>
920         <menu
921               icon="resources/icons/icons16/newDiagram.gif"
922               label="ModelicaML: New Diagram">
923            <command
924                  commandId="org.openmodelica.modelicaml.commands.CreateClassDiagram"
925                  icon="resources/icons/papyrus/Diagram_Class.gif"
926                  label="Class Diagram"
927                  style="push">
928               <visibleWhen
929                     checkEnabled="true">
930               </visibleWhen>
931            </command>
932            <command
933                  commandId="org.openmodelica.modelicaml.commands.CreateConnectionDiagram"
934                  icon="resources/icons/papyrus/Diagram_CompositeStructure.gif"
935                  label="Connection Diagram"
936                  style="push">
937               <visibleWhen
938                     checkEnabled="true">
939               </visibleWhen>
940            </command>
941            <command
942                  commandId="org.openmodelica.modelicaml.commands.CreateStateMachineDiagram"
943                  icon="resources/icons/papyrus/Diagram_StateMachine.gif"
944                  label="State Machine Diagram"
945                  style="push">
946               <visibleWhen
947                     checkEnabled="true">
948               </visibleWhen>
949            </command>
950            <!--
951            <command
952                  commandId="org.openmodelica.modelicaml.commands.CreateConditionalEquationDiagram"
953                  icon="resources/icons/papyrus/Diagram_Activity.gif"
954                  label="Conditional Equations Diagram"
955                  style="push">
956               <visibleWhen
957                     checkEnabled="true">
958               </visibleWhen>
959            </command>
960            <command
961                  commandId="org.openmodelica.modelicaml.commands.CreateConditionalAlgorithmDiagram"
962                  icon="resources/icons/papyrus/Diagram_Activity.gif"
963                  label="Conditional Algorithm Diagram"
964                  style="push">
965               <visibleWhen
966                     checkEnabled="true">
967               </visibleWhen>
968            </command>
969            -->
970            <visibleWhen
971                  checkEnabled="false">
972               <with
973                     variable="activeWorkbenchWindow.activePerspective">
974                  <equals
975                        value="org.openmodelica.modelicaml.perspective">
976                  </equals>
977               </with>
978            </visibleWhen>
979         </menu>
980         <command
981               commandId="org.openmodelica.modelicaml.commands.deleteTopLevelModelPackage"
982               icon="resources/icons/icons16/delete.gif"
983               label="ModelicaML: Delete Top-Level Model"
984               style="push">
985            <visibleWhen
986                  checkEnabled="true">
987               <with
988                     variable="selection">
989                  <iterate
990                        ifEmpty="false"
991                        operator="or">
992                     <adapt
993                           type="org.eclipse.emf.ecore.EObject">
994                        <instanceof
995                              value="org.eclipse.uml2.uml.Model">
996                        </instanceof>
997                     </adapt>
998                  </iterate>
999                  <count
1000                        value="1">
1001                  </count>
1002               </with>
1003            </visibleWhen>
1004         </command>
1005      </menuContribution>
1006   </extension>
1007   <extension
1008         point="org.eclipse.ui.menus">
1009      <menuContribution
1010            allPopups="false"
1011            locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
1012<!--      <menuContribution
1013            allPopups="false"
1014            locationURI="popup:org.openmodelica.modelicaml.modelexplorer.popup">-->
1015         <separator
1016               name="org.openmodelica.modelicaml.profile.separator2"
1017               visible="true">
1018         </separator>
1019             <menu
1020               icon="resources/icons/icons16/invocation.gif"
1021               id="modelicaml.helpers"
1022               label="ModelicaML: Helper">
1023            <!--
1024            <command
1025                  commandId="org.openmodelica.modelicaml.helper.commands.instantiaterequirements"
1026                  icon="resources/icons/list-accept.png"
1027                  label="Instantiate Requirements"
1028                  style="push">
1029               <visibleWhen
1030                     checkEnabled="true">
1031               </visibleWhen>
1032            </command>
1033            <command
1034                  commandId="org.openmodelica.modelicaml.helper.commands.updateTestOracleElements"
1035                  icon="resources/icons/icons16/update.png"
1036                  label="Update Requirements Test Oracle Elements"
1037                  style="push">
1038               <visibleWhen
1039                     checkEnabled="true">
1040               </visibleWhen>
1041            </command>
1042            -->
1043            <visibleWhen
1044                  checkEnabled="false">
1045               <with
1046                     variable="activeWorkbenchWindow.activePerspective">
1047                  <equals
1048                        value="org.openmodelica.modelicaml.perspective">
1049                  </equals>
1050               </with>
1051            </visibleWhen>
1052            <separator
1053                  name="org.openmodelica.modelicaml.helper.separator1"
1054                  visible="true">
1055            </separator>
1056            <command
1057                  commandId="org.openmodelica.modelicaml.helper.commands.generatesimmodels"
1058                  icon="resources/icons/icons16/new_testsuite.gif"
1059                  label="Generate Design Verification Models"
1060                  style="push"
1061                  tooltip="Generate Design Verification Models">
1062               <visibleWhen
1063                     checkEnabled="true">
1064               </visibleWhen>
1065            </command>
1066            <separator
1067                  name="org.openmodelica.modelicaml.helper.separator2"
1068                  visible="true">
1069            </separator>
1070            <!--
1071            <command
1072                  commandId="org.openmodelica.modelicaml.helper.commands.runtests"
1073                  icon="resources/icons/icons16/tscriptrun.gif"
1074                  label="Run Design Verification Models"
1075                  style="push"
1076                  tooltip="Run Design Verification Models">
1077               <visibleWhen
1078                     checkEnabled="true">
1079               </visibleWhen>
1080            </command>
1081            -->
1082         </menu>
1083      </menuContribution>
1084   </extension>
1085   <extension
1086         point="org.eclipse.ui.menus">
1087     <menuContribution
1088            allPopups="false"
1089            locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
1090 <!--      <menuContribution
1091            allPopups="false"
1092            locationURI="popup:org.openmodelica.modelicaml.modelexplorer.popup">-->
1093         <separator
1094               name="org.openmodelica.modelicaml.profile.separator3"
1095               visible="true">
1096         </separator>
1097 
1098         <menu
1099               icon="resources/icons/icons16/generate_code.gif"
1100               label="ModelicaML: Validation and Code Generation">
1101            <!--
1102            <command
1103                  commandId="org.openmodelica.modelicaml.gen.modelica.commands.ValidateModelicaMLModel"
1104                  icon="resources/icons/icons16/validate.gif"
1105                  label="(DEPRECATED) Validate ModelicaML Model"
1106                  style="push"
1107                  tooltip="Validate ModelicaML model (entire model)">
1108               <visibleWhen
1109                     checkEnabled="true">
1110                  <with
1111                        variable="selection">
1112                     <count
1113                           value="1">
1114                     </count>
1115                     <iterate>
1116                        <adapt
1117                              type="org.eclipse.emf.ecore.EObject">
1118                           <or>
1119                              <instanceof
1120                                    value="org.eclipse.uml2.uml.Package">
1121                              </instanceof>
1122                              <instanceof
1123                                    value="org.eclipse.uml2.uml.Class">
1124                              </instanceof>
1125                           </or>
1126                        </adapt>
1127                     </iterate>
1128                  </with>
1129               </visibleWhen>
1130            </command>
1131            -->
1132            <command
1133                  commandId="org.eclipse.papyrus.validation.ValidateDelMarkersFromModelCommand"
1134                  icon="resources/icons/icons16/errorwarning_tab.gif"
1135                  id="org.eclipse.papyrus.modelexplorer.DelMarkersFromSubtree"
1136                  label="Remove markers"
1137                  tooltip="Remove markers from sub-tree">
1138               <visibleWhen
1139                     checkEnabled="true">
1140                  <with
1141                        variable="selection">
1142                     <count
1143                           value="1">
1144                     </count>
1145                     <iterate>
1146                        <adapt
1147                              type="org.eclipse.emf.ecore.EObject">
1148                        </adapt>
1149                     </iterate>
1150                  </with>
1151               </visibleWhen>
1152            </command>
1153            <command
1154                  commandId="org.openmodelica.modelicaml.gen.modelica.commands.GenerateModelicaCodeFromThisElement"
1155                  icon="resources/icons/icons16/generate_code.gif"
1156                  label="Generate Modelica code (from sub-tree)"
1157                  style="push"
1158                  tooltip="Generate Modelica code (from sub-tree)">
1159               <visibleWhen
1160                     checkEnabled="true">
1161                  <with
1162                        variable="selection">
1163                     <count
1164                           value="1">
1165                     </count>
1166                     <iterate>
1167                        <adapt
1168                            type="org.eclipse.emf.ecore.EObject">
1169                             <or>
1170                                <instanceof
1171                                      value="org.eclipse.uml2.uml.Package">
1172                                </instanceof>
1173                                <instanceof
1174                                      value="org.eclipse.uml2.uml.Model">
1175                                </instanceof>
1176                                <and>
1177                                   <instanceof
1178                                         value="org.eclipse.uml2.uml.Class">
1179                                   </instanceof>
1180                                   <not>
1181                                      <instanceof
1182                                            value="org.eclipse.uml2.uml.Behavior">
1183                                      </instanceof>
1184                                   </not>
1185                                   <not>
1186                                      <instanceof
1187                                            value="org.eclipse.uml2.uml.StateMachine">
1188                                      </instanceof>
1189                                   </not>
1190                                </and>
1191                             </or>
1192                          </adapt>
1193                     </iterate>
1194                  </with>
1195               </visibleWhen>
1196            </command>
1197
1198            <visibleWhen
1199                  checkEnabled="false">
1200               <with
1201                     variable="activeWorkbenchWindow.activePerspective">
1202                  <equals
1203                        value="org.openmodelica.modelicaml.perspective">
1204                  </equals>
1205               </with>
1206            </visibleWhen>
1207         </menu>
1208      </menuContribution>
1209      <menuContribution
1210            allPopups="false"
1211            locationURI="toolbar:org.eclipse.ui.main.toolbar">
1212         <toolbar
1213               id="org.openmodelica.modelicaml.toolbar.codegeneration"
1214               label="ModelicaML Code Generation">
1215            <command
1216                  commandId="org.openmodelica.modelicaml.gen.modelica.commands.GenerateModelicaCode"
1217                  icon="resources/icons/icons16/generate_code.gif"
1218                  label="Generate Modelica Code"
1219                  style="push"
1220                  tooltip="Generate Modelica Code">
1221               <visibleWhen>
1222                  <with
1223                        variable="activeEditorId">
1224                     <equals
1225                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1226                     </equals>
1227                  </with>
1228               </visibleWhen>
1229            </command>
1230            <!--
1231            <command
1232                  commandId="org.openmodelica.modelicaml.gen.modelica.commands.ValidateModelicaMLModel"
1233                  icon="resources/icons/icons16/validate.gif"
1234                  label="(DEPRECATED) Validate ModelicaML Model"
1235                  style="push"
1236                  tooltip="Validate ModelicaML Model (entire model)">
1237               <visibleWhen>
1238                  <with
1239                        variable="activeEditorId">
1240                     <equals
1241                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1242                     </equals>
1243                  </with>
1244               </visibleWhen>
1245            </command>
1246            -->
1247            <visibleWhen
1248                  checkEnabled="false">
1249               <with
1250                     variable="activeWorkbenchWindow.activePerspective">
1251                  <equals
1252                        value="org.openmodelica.modelicaml.perspective">
1253                  </equals>
1254               </with>
1255            </visibleWhen>
1256            <separator
1257                  name="org.openmodelica.modelicaml.profile.separator1"
1258                  visible="true">
1259            </separator>
1260            <!--
1261            <command
1262                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.automaticScenarioBasedVerification"
1263                  icon="resources/icons/icons16/automaticScenarioBasedVerification.gif"
1264                  label="Automatic Scenario-Based Verification"
1265                  style="push"
1266                  tooltip="Automatic Scenario-Based Verification">
1267               <visibleWhen>
1268                  <with
1269                        variable="activeEditorId">
1270                     <equals
1271                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1272                     </equals>
1273                  </with>
1274               </visibleWhen>
1275            </command>
1276            <command
1277                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.analyzesimulationresults"
1278                  icon="resources/icons/icons16/runanalysis.gif"
1279                  label="Analyze Verification Results"
1280                  style="push"
1281                  tooltip="Analyze Verification Results">
1282               <visibleWhen>
1283                  <with
1284                        variable="activeEditorId">
1285                     <equals
1286                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1287                     </equals>
1288                  </with>
1289               </visibleWhen>
1290            </command>
1291            <separator
1292                  name="org.openmodelica.modelicaml.profile.separator2"
1293                  visible="true">
1294            </separator>
1295            <command
1296                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.discoverScenToReqRelations"
1297                  icon="resources/icons/icons16/correlationset.gif"
1298                  label="Discover Relations Between Scenarios and Requirements"
1299                  style="push"
1300                  tooltip="Discover Relations Between Scenarios and Requirements">
1301               <visibleWhen>
1302                  <with
1303                        variable="activeEditorId">
1304                     <equals
1305                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1306                     </equals>
1307                  </with>
1308               </visibleWhen>
1309            </command>
1310            <separator
1311                  name="org.openmodelica.modelicaml.profile.separator3"
1312                  visible="true">
1313            </separator>
1314            <command
1315                  commandId="org.openmodelica.modelicaml.helper.commands.toolbar.generatesimmodels"
1316                  icon="resources/icons/icons16/new_testsuite.gif"
1317                  label="Create Design Verification Models"
1318                  style="push"
1319                  tooltip="Create Design Verification Models">
1320               <visibleWhen>
1321                  <with
1322                        variable="activeEditorId">
1323                     <equals
1324                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1325                     </equals>
1326                  </with>
1327               </visibleWhen>
1328            </command>
1329            <command
1330                  commandId="org.openmodelica.modelicaml.helper.commands.runtests"
1331                  icon="resources/icons/icons16/tscriptrun.gif"
1332                  label="Run Design Verification Models"
1333                  style="push"
1334                  tooltip="Run Design Verification Models">
1335               <visibleWhen>
1336                  <with
1337                        variable="activeEditorId">
1338                     <equals
1339                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
1340                     </equals>
1341                  </with>
1342               </visibleWhen>
1343            </command>
1344            -->
1345         </toolbar>
1346      </menuContribution>
1347   </extension>
1348   <extension
1349         point="org.eclipse.ui.menus">
1350      <menuContribution
1351            allPopups="false"
1352            locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
1353<!--      <menuContribution
1354            allPopups="false"
1355            locationURI="popup:org.openmodelica.modelicaml.modelexplorer.popup">-->
1356         <separator
1357               name="org.openmodelica.modelicaml.profile.separator4"
1358               visible="true">
1359         </separator>
1360
1361         <menu
1362               icon="resources/icons/timeline_marker.png"
1363               label="ModelicaML: Simulation">
1364            <command
1365                  commandId="org.openmodelica.modelicaml.simulation.commands.CGAndSimulateThisClassWithOMC"
1366                  icon="resources/icons/timeline_marker.png"
1367                  label="Simulate with OMC"
1368                  style="push"
1369                  tooltip="Open in OMC Simulation Center">
1370               <visibleWhen
1371                     checkEnabled="true">
1372                  <with
1373                        variable="selection">
1374                     <count
1375                           value="1">
1376                     </count>
1377                     <iterate>
1378                        <adapt
1379                              type="org.eclipse.emf.ecore.EObject">
1380                           <or>
1381                              <instanceof
1382                                    value="org.eclipse.uml2.uml.Package">
1383                              </instanceof>
1384                              <instanceof
1385                                    value="org.eclipse.uml2.uml.Class">
1386                              </instanceof>
1387                           </or>
1388                        </adapt>
1389                     </iterate>
1390                  </with>
1391               </visibleWhen>
1392            </command>
1393            <visibleWhen
1394                  checkEnabled="false">
1395               <with
1396                     variable="activeWorkbenchWindow.activePerspective">
1397                  <equals
1398                        value="org.openmodelica.modelicaml.perspective">
1399                  </equals>
1400               </with>
1401            </visibleWhen>
1402         </menu>
1403      </menuContribution>
1404   </extension>
1405
1406   <extension
1407         point="org.eclipse.ui.commands">
1408      <command
1409            id="org.openmodelica.modelicaml.commands.CreateModelicaOperatorCommand"
1410            name="Create new Modelica Operator">
1411      </command>
1412      <command
1413            id="org.openmodelica.modelicaml.commands.CreateModelicaPackageCommand"
1414            name="Create new Modelica Package">
1415      </command>
1416      <command
1417            id="org.openmodelica.modelicaml.commands.CreateModelicaClassCommand"
1418            name="Create new Modelica Class">
1419      </command>
1420      <command
1421            id="org.openmodelica.modelicaml.commands.CreateModelicaModelCommand"
1422            name="Create new Modelica Model">
1423      </command>
1424      <command
1425            id="org.openmodelica.modelicaml.commands.CreateModelicaBlockCommand"
1426            name="Create new Modelica Block">
1427      </command>
1428      <command
1429            id="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand"
1430            name="Create new Modelica Connector">
1431      </command>
1432      <command
1433            id="org.openmodelica.modelicaml.commands.CreateModelicaTypeCommand"
1434            name="Create new Modelica Type">
1435      </command>
1436      <command
1437            id="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationCommand"
1438            name="Create new Modelica Enumeration">
1439      </command>
1440      <command
1441            id="org.openmodelica.modelicaml.commands.CreateModelicaFunctionCommand"
1442            name="Create new Modelica Function">
1443      </command>
1444      <command
1445            id="org.openmodelica.modelicaml.commands.CreateModelicaRecordCommand"
1446            name="Create new Modelica Record">
1447      </command>
1448      <command
1449            id="org.openmodelica.modelicaml.commands.CreateModelicaCalculationModelCommand"
1450            name="Create new Modelica Calculation Model">
1451      </command>
1452      <command
1453            id="org.openmodelica.modelicaml.commands.CreateTestScenarioCommand"
1454            name="Create new Test Scenario">
1455      </command>
1456      <command
1457            id="org.openmodelica.modelicaml.commands.CreateModelicaRequirementCommand"
1458            name="Create new Modelica Requirement">
1459      </command>
1460      <command
1461            id="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationLiteralCommand"
1462            name="Create new Enumeration Literal">
1463      </command>
1464      <command
1465            id="org.openmodelica.modelicaml.commands.CreateModelicaFunctionArgumentCommand"
1466            name="Create new Function Argument">
1467      </command>
1468      <command
1469            id="org.openmodelica.modelicaml.commands.CreateModelicaVariableCommand"
1470            name="Create new Modelica Variable">
1471      </command>
1472      <command
1473            id="org.openmodelica.modelicaml.commands.CreateModelicaComponentCommand"
1474            name="Create new Component">
1475      </command>
1476      <command
1477            id="org.openmodelica.modelicaml.commands.CreateModelicaCalculatedPropertyCommand"
1478            name="Create new Calculated Property">
1479      </command>
1480      <command
1481            id="org.openmodelica.modelicaml.commands.CreateModelicaRequirementInstanceCommand"
1482            name="Create new Requirement Instance">
1483      </command>
1484      <command
1485            id="org.openmodelica.modelicaml.commands.CreateModelicaPortCommand"
1486            name="Create new Port">
1487      </command>
1488      <command
1489            id="org.openmodelica.modelicaml.commands.CreateModelicaAlgorithmCommand"
1490            name="Create new Algorithm">
1491      </command>
1492      <command
1493            id="org.openmodelica.modelicaml.commands.CreateModelicaEquationsCodeCommand"
1494            name="Create new Equations">
1495      </command>
1496      <command
1497            id="org.openmodelica.modelicaml.commands.CreateModelicaAssertCommand"
1498            name="Create new Assert">
1499      </command>
1500      <command
1501            id="org.openmodelica.modelicaml.commands.CreateModelicaAnnotationCommand"
1502            name="Create new Annotation">
1503      </command>
1504      <command
1505            id="org.openmodelica.modelicaml.commands.CreateCommentCommand"
1506            name="Create new Comment">
1507      </command>
1508       <command
1509            id="org.openmodelica.modelicaml.commands.GenerateModelicaCode"
1510            name="Generate Modelica Code">
1511      </command>
1512      <command
1513            id="org.openmodelica.modelicaml.commands.ValidateModelicaMLModel"
1514            name="Validate ModelicaML Model">
1515      </command>
1516      <command
1517            id="org.openmodelica.modelicaml.commands.CreatePackageCommand"
1518            name="Create new Package">
1519      </command>
1520      <command
1521            id="org.openmodelica.modelicaml.commands.CreateSignalCommand"
1522            name="Create Signal">
1523      </command>
1524      <command
1525            id="org.openmodelica.modelicaml.commands.CreateModelicaRetrictedClassCommand"
1526            name="Menu Restricted Class">
1527      </command>
1528      <command
1529            id="org.openmodelica.modelicaml.commands.ModelicaDiagram"
1530            name="New ModelicaML Diagram">
1531      </command>
1532      <command
1533            id="org.openmodelica.modelicaml.commands.CreateClassDiagram"
1534            name="Create Class Diagram">
1535      </command>
1536      <command
1537            id="org.openmodelica.modelicaml.commands.CreateConnectionDiagram"
1538            name="Create Connection Diagram">
1539      </command>
1540      <command
1541            id="org.openmodelica.modelicaml.commands.CreateStateMachineDiagram"
1542            name="Create State Machine Diagram">
1543      </command>
1544      <command
1545            id="org.openmodelica.modelicaml.commands.CreateConditionalAlgorithmDiagram"
1546            name="Create Conditional Algorithm Diagram">
1547      </command>
1548      <command
1549            id="org.openmodelica.modelicaml.commands.CreateConditionalEquationDiagram"
1550            name="Create Conditional Equations Diagram">
1551      </command>
1552      <command
1553            id="org.openmodelica.modelicaml.commands.CreateModelicaSimulationModelCommand"
1554            name="Create new Modelica Simulation Model">
1555      </command>
1556      <command
1557            id="org.openmodelica.modelicaml.commands.CreateValueMediatorCommand"
1558            name="Create new Value Mediator">
1559      </command>
1560      <command
1561            id="org.openmodelica.modelicaml.commands.CreateValueMediatorsContainerCommand"
1562            name="Create new Value Mediators Container">
1563      </command>
1564      <command
1565            id="org.openmodelica.modelicaml.modelexplorer.locate"
1566            name="Locate">
1567      </command>
1568   </extension>
1569   <extension
1570         point="org.eclipse.ui.handlers">
1571      <handler
1572            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaOperatorHandler"
1573            commandId="org.openmodelica.modelicaml.commands.CreateModelicaOperatorCommand">
1574         <activeWhen>
1575            <with
1576                  variable="selection">
1577               <count
1578                     value="1">
1579               </count>
1580               <iterate>
1581                  <adapt
1582                        type="org.eclipse.emf.ecore.EObject">
1583                     <and>
1584                        <not>
1585                           <test
1586                                 args="ModelicaML::ModelicaClassConstructs::Function"
1587                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1588                           </test>
1589                        </not>
1590                        <or>
1591                           <instanceof
1592                                 value="org.eclipse.uml2.uml.Class">
1593                           </instanceof>
1594                           <instanceof
1595                                 value="org.eclipse.uml2.uml.Package">
1596                           </instanceof>
1597                        </or>
1598                        <and>
1599                           <not>
1600                              <instanceof
1601                                    value="org.eclipse.uml2.uml.Behavior">
1602                              </instanceof>
1603                           </not>
1604                        </and>
1605                     </and>
1606                  </adapt>
1607               </iterate>
1608            </with>
1609         </activeWhen>
1610      </handler>
1611      <handler
1612            class="org.openmodelica.modelicaml.profile.handlers.CreatePackageHandler"
1613            commandId="org.openmodelica.modelicaml.commands.CreatePackageCommand">
1614         <activeWhen>
1615            <with
1616                  variable="selection">
1617               <count
1618                     value="1">
1619               </count>
1620               <iterate>
1621                  <adapt
1622                        type="org.eclipse.emf.ecore.EObject">
1623                     <instanceof
1624                           value="org.eclipse.uml2.uml.Package">
1625                     </instanceof>
1626                  </adapt>
1627               </iterate>
1628            </with>
1629         </activeWhen>
1630      </handler>
1631      <handler
1632            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaPackageHandler"
1633            commandId="org.openmodelica.modelicaml.commands.CreateModelicaPackageCommand">
1634         <activeWhen>
1635            <with
1636                  variable="selection">
1637               <count
1638                     value="1">
1639               </count>
1640               <iterate>
1641                  <adapt
1642                        type="org.eclipse.emf.ecore.EObject">
1643                     <and>
1644                        <or>
1645                           <instanceof
1646                                 value="org.eclipse.uml2.uml.Class">
1647                           </instanceof>
1648                           <instanceof
1649                                 value="org.eclipse.uml2.uml.Package">
1650                           </instanceof>
1651                        </or>
1652                        <not>
1653                           <test
1654                                 args="ModelicaML::ModelicaClassConstructs::Function"
1655                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1656                           </test>
1657                        </not>
1658                        <and>
1659                           <not>
1660                              <instanceof
1661                                    value="org.eclipse.uml2.uml.Behavior">
1662                              </instanceof>
1663                           </not>
1664                        </and>
1665                     </and>
1666                  </adapt>
1667               </iterate>
1668            </with>
1669         </activeWhen>
1670      </handler>
1671      <handler
1672            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaClassHandler"
1673            commandId="org.openmodelica.modelicaml.commands.CreateModelicaClassCommand">
1674         <activeWhen>
1675            <with
1676                  variable="selection">
1677               <count
1678                     value="1">
1679               </count>
1680               <iterate>
1681                  <adapt
1682                        type="org.eclipse.emf.ecore.EObject">
1683                     <and>
1684                        <not>
1685                           <test
1686                                 args="ModelicaML::ModelicaClassConstructs::Function"
1687                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1688                           </test>
1689                        </not>
1690                        <or>
1691                           <instanceof
1692                                 value="org.eclipse.uml2.uml.Class">
1693                           </instanceof>
1694                           <instanceof
1695                                 value="org.eclipse.uml2.uml.Package">
1696                           </instanceof>
1697                        </or>
1698                        <and>
1699                           <not>
1700                              <instanceof
1701                                    value="org.eclipse.uml2.uml.Behavior">
1702                              </instanceof>
1703                           </not>
1704                        </and>
1705                     </and>
1706                  </adapt>
1707               </iterate>
1708            </with>
1709         </activeWhen>
1710      </handler>
1711      <handler
1712            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaModelHandler"
1713            commandId="org.openmodelica.modelicaml.commands.CreateModelicaModelCommand">
1714            <activeWhen>
1715            <with
1716                  variable="selection">
1717               <iterate
1718                     ifEmpty="false"
1719                     operator="or">
1720                  <adapt
1721                        type="org.eclipse.emf.ecore.EObject">
1722                     <not>
1723                        <test
1724                              args="ModelicaML::ModelicaClassConstructs::Function"
1725                              forcePluginActivation="true"
1726                              property="org.openmodelica.modelicaml.testers.hasStereotype">
1727                        </test></not>
1728                     <and>
1729                        <or>
1730                           <instanceof
1731                                 value="org.eclipse.uml2.uml.Package">
1732                           </instanceof>
1733                           <instanceof
1734                                 value="org.eclipse.uml2.uml.Class">
1735                           </instanceof></or>
1736                     </and>
1737                     <not>
1738                        <instanceof
1739                              value="org.eclipse.uml2.uml.Behavior">
1740                        </instanceof>
1741                     </not>
1742                  </adapt>
1743                 </iterate>
1744               <count
1745                     value="1">
1746               </count>
1747            </with>
1748         </activeWhen>
1749      </handler>
1750      <handler
1751            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaBlockHandler"
1752            commandId="org.openmodelica.modelicaml.commands.CreateModelicaBlockCommand">
1753         <activeWhen>
1754            <with
1755                  variable="selection">
1756               <count
1757                     value="1">
1758               </count>
1759               <iterate>
1760                  <adapt
1761                        type="org.eclipse.emf.ecore.EObject">
1762                     <and>
1763                        <not>
1764                           <test
1765                                 args="ModelicaML::ModelicaClassConstructs::Function"
1766                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1767                           </test>
1768                        </not>
1769                        <or>
1770                           <instanceof
1771                                 value="org.eclipse.uml2.uml.Class">
1772                           </instanceof>
1773                           <instanceof
1774                                 value="org.eclipse.uml2.uml.Package">
1775                           </instanceof>
1776                        </or>
1777                        <and>
1778                           <not>
1779                              <instanceof
1780                                    value="org.eclipse.uml2.uml.Behavior">
1781                              </instanceof>
1782                           </not>
1783                        </and>
1784                     </and>
1785                  </adapt>
1786               </iterate>
1787            </with>
1788         </activeWhen>
1789      </handler>
1790      <handler
1791            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaConnectorHandler"
1792            commandId="org.openmodelica.modelicaml.commands.CreateModelicaConnectorCommand">
1793         <activeWhen>
1794            <with
1795                  variable="selection">
1796               <count
1797                     value="1">
1798               </count>
1799               <iterate>
1800                  <adapt
1801                        type="org.eclipse.emf.ecore.EObject">
1802                     <and>
1803                        <not>
1804                           <test
1805                                 args="ModelicaML::ModelicaClassConstructs::Function"
1806                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1807                           </test>
1808                        </not>
1809                        <or>
1810                           <instanceof
1811                                 value="org.eclipse.uml2.uml.Class">
1812                           </instanceof>
1813                           <instanceof
1814                                 value="org.eclipse.uml2.uml.Package">
1815                           </instanceof>
1816                        </or>
1817                        <and>
1818                           <not>
1819                              <instanceof
1820                                    value="org.eclipse.uml2.uml.Behavior">
1821                              </instanceof>
1822                           </not>
1823                        </and>
1824                     </and>
1825                  </adapt>
1826               </iterate>
1827            </with>
1828         </activeWhen>
1829      </handler>
1830      <handler
1831            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaTypeHandler"
1832            commandId="org.openmodelica.modelicaml.commands.CreateModelicaTypeCommand">
1833         <activeWhen>
1834            <with
1835                  variable="selection">
1836               <count
1837                     value="1">
1838               </count>
1839               <iterate>
1840                  <adapt
1841                        type="org.eclipse.emf.ecore.EObject">
1842                     <and>
1843                        <not>
1844                           <test
1845                                 args="ModelicaML::ModelicaClassConstructs::Function"
1846                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1847                           </test>
1848                        </not>
1849                        <or>
1850                           <instanceof
1851                                 value="org.eclipse.uml2.uml.Class">
1852                           </instanceof>
1853                           <instanceof
1854                                 value="org.eclipse.uml2.uml.Package">
1855                           </instanceof>
1856                        </or>
1857                        <and>
1858                           <not>
1859                              <instanceof
1860                                    value="org.eclipse.uml2.uml.Behavior">
1861                              </instanceof>
1862                           </not>
1863                        </and>
1864                     </and>
1865                  </adapt>
1866               </iterate>
1867            </with>
1868         </activeWhen>
1869      </handler>
1870      <handler
1871            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaEnumerationHandler"
1872            commandId="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationCommand">
1873         <activeWhen>
1874            <with
1875                  variable="selection">
1876               <count
1877                     value="1">
1878               </count>
1879               <iterate>
1880                  <adapt
1881                        type="org.eclipse.emf.ecore.EObject">
1882                     <and>
1883                        <not>
1884                           <test
1885                                 args="ModelicaML::ModelicaClassConstructs::Function"
1886                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1887                           </test>
1888                        </not>
1889                        <or>
1890                           <instanceof
1891                                 value="org.eclipse.uml2.uml.Class">
1892                           </instanceof>
1893                           <instanceof
1894                                 value="org.eclipse.uml2.uml.Package">
1895                           </instanceof>
1896                        </or>
1897                        <and>
1898                           <not>
1899                              <instanceof
1900                                    value="org.eclipse.uml2.uml.Behavior">
1901                              </instanceof>
1902                           </not>
1903                        </and>
1904                     </and>
1905                  </adapt>
1906               </iterate>
1907            </with>
1908         </activeWhen>
1909      </handler>
1910      <handler
1911            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaFunctionHandler"
1912            commandId="org.openmodelica.modelicaml.commands.CreateModelicaFunctionCommand">
1913         <activeWhen>
1914            <with
1915                  variable="selection">
1916               <count
1917                     value="1">
1918               </count>
1919               <iterate>
1920                  <adapt
1921                        type="org.eclipse.emf.ecore.EObject">
1922                     <or>
1923                        <instanceof
1924                              value="org.eclipse.uml2.uml.Package">
1925                        </instanceof>
1926                        <instanceof
1927                              value="org.eclipse.uml2.uml.Class">
1928                        </instanceof>
1929                     </or>
1930                     <and>
1931                        <not>
1932                           <instanceof
1933                                 value="org.eclipse.uml2.uml.Behavior">
1934                           </instanceof>
1935                        </not>
1936                     </and>
1937                  </adapt>
1938               </iterate>
1939            </with>
1940         </activeWhen>
1941      </handler>
1942      <handler
1943            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaRecordHandler"
1944            commandId="org.openmodelica.modelicaml.commands.CreateModelicaRecordCommand">
1945         <activeWhen>
1946            <with
1947                  variable="selection">
1948               <count
1949                     value="1">
1950               </count>
1951               <iterate>
1952                  <adapt
1953                        type="org.eclipse.emf.ecore.EObject">
1954                     <and>
1955                        <or>
1956                           <instanceof
1957                                 value="org.eclipse.uml2.uml.Package">
1958                           </instanceof>
1959                           <instanceof
1960                                 value="org.eclipse.uml2.uml.Class">
1961                           </instanceof>
1962                        </or>
1963                        <not>
1964                           <test
1965                                 args="ModelicaML::ModelicaClassConstructs::Function"
1966                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1967                           </test>
1968                        </not>
1969                        <and>
1970                           <not>
1971                              <instanceof
1972                                    value="org.eclipse.uml2.uml.Behavior">
1973                              </instanceof>
1974                           </not>
1975                        </and>
1976                     </and>
1977                  </adapt>
1978               </iterate>
1979            </with>
1980         </activeWhen>
1981      </handler>
1982      <handler
1983            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaCalculationModelHandler"
1984            commandId="org.openmodelica.modelicaml.commands.CreateModelicaCalculationModelCommand">
1985         <activeWhen>
1986            <with
1987                  variable="selection">
1988               <count
1989                     value="1">
1990               </count>
1991               <iterate>
1992                  <adapt
1993                        type="org.eclipse.emf.ecore.EObject">
1994                     <and>
1995                        <not>
1996                           <test
1997                                 args="ModelicaML::ModelicaClassConstructs::Function"
1998                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
1999                           </test>
2000                        </not>
2001                        <or>
2002                           <instanceof
2003                                 value="org.eclipse.uml2.uml.Class">
2004                           </instanceof>
2005                           <instanceof
2006                                 value="org.eclipse.uml2.uml.Package">
2007                           </instanceof>
2008                        </or>
2009                        <and>
2010                           <not>
2011                              <instanceof
2012                                    value="org.eclipse.uml2.uml.Behavior">
2013                              </instanceof>
2014                           </not>
2015                        </and>
2016                     </and>
2017                  </adapt>
2018               </iterate>
2019            </with>
2020         </activeWhen>
2021      </handler>
2022      <handler
2023            class="org.openmodelica.modelicaml.profile.handlers.CreateTestScenarioHandler"
2024            commandId="org.openmodelica.modelicaml.commands.CreateTestScenarioCommand">
2025         <activeWhen>
2026            <with
2027                  variable="selection">
2028               <count
2029                     value="1">
2030               </count>
2031               <iterate>
2032                  <adapt
2033                        type="org.eclipse.emf.ecore.EObject">
2034                     <and>
2035                        <not>
2036                           <test
2037                                 args="ModelicaML::ModelicaClassConstructs::Function"
2038                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2039                           </test>
2040                        </not>
2041                        <or>
2042                           <instanceof
2043                                 value="org.eclipse.uml2.uml.Class">
2044                           </instanceof>
2045                           <instanceof
2046                                 value="org.eclipse.uml2.uml.Package">
2047                           </instanceof>
2048                        </or>
2049                        <and>
2050                           <not>
2051                              <instanceof
2052                                    value="org.eclipse.uml2.uml.Behavior">
2053                              </instanceof>
2054                           </not>
2055                        </and>
2056                     </and>
2057                  </adapt>
2058               </iterate>
2059            </with>
2060         </activeWhen>
2061      </handler>
2062      <handler
2063            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaRequirementHandler"
2064            commandId="org.openmodelica.modelicaml.commands.CreateModelicaRequirementCommand">
2065         <activeWhen>
2066            <with
2067                  variable="selection">
2068               <count
2069                     value="1">
2070               </count>
2071               <iterate>
2072                  <adapt
2073                        type="org.eclipse.emf.ecore.EObject">
2074                     <and>
2075                        <not>
2076                           <test
2077                                 args="ModelicaML::ModelicaClassConstructs::Function"
2078                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2079                           </test>
2080                        </not>
2081                        <or>
2082                           <instanceof
2083                                 value="org.eclipse.uml2.uml.Package">
2084                           </instanceof>
2085                           <instanceof
2086                                 value="org.eclipse.uml2.uml.Class">
2087                           </instanceof>
2088                        </or>
2089                        <and>
2090                           <not>
2091                              <instanceof
2092                                    value="org.eclipse.uml2.uml.Behavior">
2093                              </instanceof>
2094                           </not>
2095                        </and>
2096                     </and>
2097                  </adapt>
2098               </iterate>
2099            </with>
2100         </activeWhen>
2101      </handler>
2102      <handler
2103            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaEnumerationLiteralHandler"
2104            commandId="org.openmodelica.modelicaml.commands.CreateModelicaEnumerationLiteralCommand">
2105         <activeWhen>
2106            <with
2107                  variable="selection">
2108               <count
2109                     value="1">
2110               </count>
2111               <iterate>
2112                  <adapt
2113                        type="org.eclipse.emf.ecore.EObject">
2114                     <instanceof
2115                           value="org.eclipse.uml2.uml.Enumeration">
2116                     </instanceof>
2117                  </adapt>
2118               </iterate>
2119            </with>
2120         </activeWhen>
2121      </handler>
2122      <handler
2123            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaFunctionArgumentHandler"
2124            commandId="org.openmodelica.modelicaml.commands.CreateModelicaFunctionArgumentCommand">
2125         <activeWhen>
2126            <with
2127                  variable="selection">
2128               <count
2129                     value="1">
2130               </count>
2131               <iterate>
2132                  <adapt
2133                        type="org.eclipse.emf.ecore.EObject">
2134                     <and>
2135                        <instanceof
2136                              value="org.eclipse.uml2.uml.FunctionBehavior">
2137                        </instanceof>
2138                        <test
2139                              args="ModelicaML::ModelicaClassConstructs::Function"
2140                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2141                        </test>
2142                     </and>
2143                  </adapt>
2144               </iterate>
2145            </with>
2146         </activeWhen>
2147      </handler>
2148      <handler
2149            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaVariableHandler"
2150            commandId="org.openmodelica.modelicaml.commands.CreateModelicaVariableCommand">
2151         <activeWhen>
2152            <with
2153                  variable="selection">
2154               <count
2155                     value="1">
2156               </count>
2157               <iterate>
2158                  <adapt
2159                        type="org.eclipse.emf.ecore.EObject">
2160                     <or>
2161                        <test
2162                              args="ModelicaML::ModelicaClassConstructs::Function"
2163                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2164                        </test>
2165                        <test
2166                              args="ModelicaML::ModelicaClassConstructs::Model"
2167                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2168                        </test>
2169                        <test
2170                              args="ModelicaML::ModelicaClassConstructs::Block"
2171                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2172                        </test>
2173                        <test
2174                              args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2175                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2176                        </test>
2177                        <test
2178                              args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2179                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2180                        </test>
2181                        <test
2182                              args="ModelicaML::ModelicaClassConstructs::Record"
2183                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2184                        </test>
2185                        <test
2186                              args="ModelicaML::ModelicaClassConstructs::Connector"
2187                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2188                        </test>
2189                        <test
2190                              args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2191                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2192                        </test>
2193                        <test
2194                              args="ModelicaML::ModelicaClassConstructs::Operator"
2195                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2196                        </test>
2197                        <test
2198                              args="ModelicaML::ModelicaClassConstructs::ModelicaModelReference"
2199                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2200                        </test>
2201                        <test
2202                              args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2203                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2204                        </test>
2205                        <test
2206                              args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2207                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2208                        </test>
2209                        <test
2210                              args="ModelicaML::ModelicaRequirementConstructs::RequirementRepresentative"
2211                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2212                        </test>
2213                        <test
2214                              args="ModelicaML::ModelicaRequirementConstructs::MeasureOfEffectiveness"
2215                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2216                        </test>
2217                     </or>
2218                  </adapt>
2219               </iterate>
2220            </with>
2221         </activeWhen>
2222      </handler>
2223      <handler
2224            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaComponentHandler"
2225            commandId="org.openmodelica.modelicaml.commands.CreateModelicaComponentCommand">
2226         <activeWhen>
2227            <with
2228                  variable="selection">
2229               <count
2230                     value="1">
2231               </count>
2232               <iterate>
2233                  <adapt
2234                        type="org.eclipse.emf.ecore.EObject">
2235                     <and>
2236                        <instanceof
2237                              value="org.eclipse.uml2.uml.Class">
2238                        </instanceof>
2239                        <not>
2240                           <test
2241                                 args="ModelicaML::ModelicaClassConstructs::Function"
2242                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2243                           </test>
2244                        </not>
2245                        <not>
2246                           <test
2247                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2248                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2249                           </test>
2250                        </not>
2251                        <and>
2252                           <not>
2253                              <instanceof
2254                                    value="org.eclipse.uml2.uml.Behavior">
2255                              </instanceof>
2256                           </not>
2257                        </and>
2258                     </and>
2259                  </adapt>
2260               </iterate>
2261            </with>
2262         </activeWhen>
2263      </handler>
2264      <handler
2265            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaCalculatedPropertyHandler"
2266            commandId="org.openmodelica.modelicaml.commands.CreateModelicaCalculatedPropertyCommand">
2267         <activeWhen>
2268            <with
2269                  variable="selection">
2270               <count
2271                     value="1">
2272               </count>
2273               <iterate>
2274                  <adapt
2275                        type="org.eclipse.emf.ecore.EObject">
2276                     <and>
2277                        <instanceof
2278                              value="org.eclipse.uml2.uml.Class">
2279                        </instanceof>
2280                        <not>
2281                           <test
2282                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2283                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2284                           </test>
2285                        </not>
2286                        <not>
2287                           <test
2288                                 args="ModelicaML::ModelicaClassConstructs::Function"
2289                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2290                           </test>
2291                        </not>
2292                        <and>
2293                           <not>
2294                              <instanceof
2295                                    value="org.eclipse.uml2.uml.Behavior">
2296                              </instanceof>
2297                           </not>
2298                        </and>
2299                     </and>
2300                  </adapt>
2301               </iterate>
2302            </with>
2303         </activeWhen>
2304      </handler>
2305      <handler
2306            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaRequirementInstanceHandler"
2307            commandId="org.openmodelica.modelicaml.commands.CreateModelicaRequirementInstanceCommand">
2308         <activeWhen>
2309            <with
2310                  variable="selection">
2311               <count
2312                     value="1">
2313               </count>
2314               <iterate>
2315                  <adapt
2316                        type="org.eclipse.emf.ecore.EObject">
2317                     <and>
2318                        <instanceof
2319                              value="org.eclipse.uml2.uml.Class">
2320                        </instanceof>
2321                        <or>
2322                           <test
2323                                 args="ModelicaML::ModelicaClassConstructs::Block"
2324                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2325                           </test>
2326                           <test
2327                                 args="ModelicaML::ModelicaClassConstructs::Model"
2328                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2329                           </test>
2330                           <test
2331                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2332                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2333                           </test>
2334                        </or>
2335                        <and>
2336                           <not>
2337                              <instanceof
2338                                    value="org.eclipse.uml2.uml.Behavior">
2339                              </instanceof>
2340                           </not>
2341                        </and>
2342                     </and>
2343                  </adapt>
2344               </iterate>
2345            </with>
2346         </activeWhen>
2347      </handler>
2348      <handler
2349            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaPortHandler"
2350            commandId="org.openmodelica.modelicaml.commands.CreateModelicaPortCommand">
2351         <activeWhen>
2352            <with
2353                  variable="selection">
2354               <count
2355                     value="1">
2356               </count>
2357               <iterate>
2358                  <adapt
2359                        type="org.eclipse.emf.ecore.EObject">
2360                     <and>
2361                        <instanceof
2362                              value="org.eclipse.uml2.uml.Class">
2363                        </instanceof>
2364                        <or>
2365                           <test
2366                                 args="ModelicaML::ModelicaClassConstructs::Block"
2367                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2368                           </test>
2369                           <test
2370                                 args="ModelicaML::ModelicaClassConstructs::Model"
2371                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2372                           </test>
2373                           <test
2374                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2375                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2376                           </test>
2377                           <test
2378                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2379                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2380                           </test>
2381                        </or>
2382                        <and>
2383                           <not>
2384                              <instanceof
2385                                    value="org.eclipse.uml2.uml.Behavior">
2386                              </instanceof>
2387                           </not>
2388                        </and>
2389                     </and>
2390                  </adapt>
2391               </iterate>
2392            </with>
2393         </activeWhen>
2394      </handler>
2395      <handler
2396            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaAlgorithmHandler"
2397            commandId="org.openmodelica.modelicaml.commands.CreateModelicaAlgorithmCommand">
2398         <activeWhen>
2399            <with
2400                  variable="selection">
2401               <count
2402                     value="1">
2403               </count>
2404               <iterate>
2405                  <adapt
2406                        type="org.eclipse.emf.ecore.EObject">
2407                     <and>
2408                        <or>
2409                           <instanceof
2410                                 value="org.eclipse.uml2.uml.Class">
2411                           </instanceof>
2412                           <instanceof
2413                                 value="org.eclipse.uml2.uml.FunctionBehavior">
2414                           </instanceof>
2415                        </or>
2416                        <not>
2417                           <test
2418                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2419                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2420                           </test>
2421                        </not>
2422                        <not>
2423                           <test
2424                                 args="ModelicaML::ModelicaClassConstructs::Record"
2425                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2426                           </test>
2427                        </not>
2428                        <not>
2429                           <test
2430                                 args="ModelicaML::ModelicaClassConstructs::Connector"
2431                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2432                           </test>
2433                        </not>
2434                        <not>
2435                           <test
2436                                 args="ModelicaML::ModelicaClassConstructs::Operator"
2437                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2438                           </test>
2439                        </not>
2440                        <not>
2441                           <test
2442                                 args="ModelicaML::ModelicaClassConstructs::Function"
2443                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2444                           </test>
2445                        </not>
2446                        <and>
2447                           <not>
2448                              <instanceof
2449                                    value="org.eclipse.uml2.uml.Behavior">
2450                              </instanceof>
2451                           </not>
2452                        </and>
2453                     </and>
2454                  </adapt>
2455               </iterate>
2456            </with>
2457         </activeWhen>
2458      </handler>
2459      <handler
2460            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaEquationHandler"
2461            commandId="org.openmodelica.modelicaml.commands.CreateModelicaEquationsCodeCommand">
2462         <activeWhen>
2463            <with
2464                  variable="selection">
2465               <count
2466                     value="1">
2467               </count>
2468               <iterate>
2469                  <adapt
2470                        type="org.eclipse.emf.ecore.EObject">
2471                     <and>
2472                        <instanceof
2473                              value="org.eclipse.uml2.uml.Class">
2474                        </instanceof>
2475                        <not>
2476                           <test
2477                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2478                                 forcePluginActivation="true"
2479                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2480                           </test>
2481                        </not>
2482                        <not>
2483                           <test
2484                                 args="ModelicaML::ModelicaClassConstructs::Record"
2485                                 forcePluginActivation="true"
2486                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2487                           </test>
2488                        </not>
2489                        <not>
2490                           <test
2491                                 args="ModelicaML::ModelicaClassConstructs::Connector"
2492                                 forcePluginActivation="true"
2493                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2494                           </test>
2495                        </not>
2496                        <not>
2497                           <test
2498                                 args="ModelicaML::ModelicaClassConstructs::Operator"
2499                                 forcePluginActivation="true"
2500                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2501                           </test>
2502                        </not>
2503                        <not>
2504                           <test
2505                                 args="ModelicaML::ModelicaClassConstructs::Function"
2506                                 forcePluginActivation="true"
2507                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2508                           </test>
2509                        </not>
2510                        <and>
2511                           <not>
2512                              <instanceof
2513                                    value="org.eclipse.uml2.uml.Behavior">
2514                              </instanceof>
2515                           </not>
2516                        </and></and>
2517                  </adapt></iterate>
2518            </with>
2519         </activeWhen>
2520      </handler>
2521      <handler
2522            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaAssertHandler"
2523            commandId="org.openmodelica.modelicaml.commands.CreateModelicaAssertCommand">
2524         <activeWhen>
2525            <with
2526                  variable="selection">
2527               <count
2528                     value="1">
2529               </count>
2530               <iterate>
2531                  <adapt
2532                        type="org.eclipse.emf.ecore.EObject">
2533                     <or>
2534                        <test
2535                              args="ModelicaML::ModelicaClassConstructs::Block"
2536                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2537                        </test>
2538                        <test
2539                              args="ModelicaML::ModelicaClassConstructs::Model"
2540                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2541                        </test>
2542                        <test
2543                              args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2544                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2545                        </test>
2546                        <test
2547                              args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2548                              property="org.openmodelica.modelicaml.testers.hasStereotype">
2549                        </test>
2550                        <instanceof
2551                              value="org.eclipse.uml2.uml.StateMachine">
2552                        </instanceof>
2553                        <instanceof
2554                              value="org.eclipse.uml2.uml.State">
2555                        </instanceof>
2556                     </or>
2557                  </adapt>
2558               </iterate>
2559            </with>
2560         </activeWhen>
2561      </handler>
2562      <handler
2563            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaAnnotationHandler"
2564            commandId="org.openmodelica.modelicaml.commands.CreateModelicaAnnotationCommand">
2565         <activeWhen>
2566            <with
2567                  variable="selection">
2568               <count
2569                     value="1">
2570               </count>
2571               <iterate>
2572                  <adapt
2573                        type="org.eclipse.emf.ecore.EObject">
2574                     <not>
2575                        <instanceof
2576                              value="org.eclipse.uml2.uml.Enumeration">
2577                        </instanceof>
2578                     </not>
2579                     <or>
2580                        <instanceof
2581                              value="org.eclipse.uml2.uml.Classifier">
2582                        </instanceof>
2583                        <instanceof
2584                              value="org.eclipse.uml2.uml.Package">
2585                        </instanceof>
2586                     </or>
2587                     <and>
2588                        <not>
2589                           <instanceof
2590                                 value="org.eclipse.uml2.uml.Behavior">
2591                           </instanceof>
2592                        </not>
2593                        <or>
2594                           <test
2595                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2596                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2597                           </test>
2598                           <test
2599                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2600                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2601                           </test>
2602                           <test
2603                                 args="ModelicaML::ModelicaClassConstructs::Operator"
2604                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2605                           </test>
2606                           <test
2607                                 args="ModelicaML::ModelicaClassConstructs::Model"
2608                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2609                           </test>
2610                           <test
2611                                 args="ModelicaML::ModelicaClassConstructs::Connector"
2612                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2613                           </test>
2614                           <test
2615                                 args="ModelicaML::ModelicaClassConstructs::Block"
2616                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2617                           </test>
2618                           <test
2619                                 args="ModelicaML::ModelicaClassConstructs::Record"
2620                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2621                           </test>
2622                           <test
2623                                 args="ModelicaML::ModelicaClassConstructs::Type"
2624                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2625                           </test>
2626                           <test
2627                                 args="ModelicaML::ModelicaClassConstructs::Function"
2628                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2629                           </test>
2630                           <test
2631                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2632                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2633                           </test>
2634                           <test
2635                                 args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2636                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2637                           </test>
2638                           <test
2639                                 args="ModelicaML::ModelicaSimulationConstructs::Simulation"
2640                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2641                           </test>
2642                        </or>
2643                     </and>
2644                  </adapt>
2645               </iterate>
2646            </with>
2647         </activeWhen>
2648      </handler>
2649      <handler
2650            class="org.openmodelica.modelicaml.profile.handlers.CreateCommentHandler"
2651            commandId="org.openmodelica.modelicaml.commands.CreateCommentCommand">
2652         <activeWhen>
2653            <with
2654                  variable="selection">
2655               <count
2656                     value="1">
2657               </count>
2658               <iterate>
2659                  <adapt
2660                        type="org.eclipse.emf.ecore.EObject">
2661                     <not>
2662                        <instanceof
2663                              value="org.eclipse.uml2.uml.Enumeration">
2664                        </instanceof>
2665                     </not>
2666                     <or>
2667                        <instanceof
2668                              value="org.eclipse.uml2.uml.Classifier">
2669                        </instanceof>
2670                        <instanceof
2671                              value="org.eclipse.uml2.uml.Package">
2672                        </instanceof>
2673                     </or>
2674                     <and>
2675                        <not>
2676                           <instanceof
2677                                 value="org.eclipse.uml2.uml.Behavior">
2678                           </instanceof>
2679                        </not>
2680                        <or>
2681                           <test
2682                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2683                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2684                           </test>
2685                           <test
2686                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2687                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2688                           </test>
2689                           <test
2690                                 args="ModelicaML::ModelicaClassConstructs::Operator"
2691                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2692                           </test>
2693                           <test
2694                                 args="ModelicaML::ModelicaClassConstructs::Model"
2695                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2696                           </test>
2697                           <test
2698                                 args="ModelicaML::ModelicaClassConstructs::Connector"
2699                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2700                           </test>
2701                           <test
2702                                 args="ModelicaML::ModelicaClassConstructs::Block"
2703                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2704                           </test>
2705                           <test
2706                                 args="ModelicaML::ModelicaClassConstructs::Record"
2707                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2708                           </test>
2709                           <test
2710                                 args="ModelicaML::ModelicaClassConstructs::Type"
2711                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2712                           </test>
2713                           <test
2714                                 args="ModelicaML::ModelicaClassConstructs::Function"
2715                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2716                           </test>
2717                           <test
2718                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2719                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2720                           </test>
2721                           <test
2722                                 args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2723                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2724                           </test>
2725                           <test
2726                                 args="ModelicaML::ModelicaSimulationConstructs::Simulation"
2727                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2728                           </test>
2729                        </or>
2730                     </and>
2731                  </adapt>
2732               </iterate>
2733            </with>
2734         </activeWhen>
2735      </handler>
2736      <handler
2737            class="org.openmodelica.modelicaml.profile.handlers.CreateSignalHandler"
2738            commandId="org.openmodelica.modelicaml.commands.CreateSignalCommand">
2739         <activeWhen>
2740            <with
2741                  variable="selection">
2742               <count
2743                     value="1">
2744               </count>
2745               <iterate>
2746                  <adapt
2747                        type="org.eclipse.emf.ecore.EObject">
2748                     <and>
2749                        <not>
2750                           <test
2751                                 args="ModelicaML::ModelicaClassConstructs::ModelicaPackage"
2752                                 forcePluginActivation="true"
2753                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2754                           </test>
2755                        </not>
2756                        <not>
2757                           <test
2758                                 args="ModelicaML::ModelicaClassConstructs::Record"
2759                                 forcePluginActivation="true"
2760                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2761                           </test>
2762                        </not>
2763                        <not>
2764                           <test
2765                                 args="ModelicaML::ModelicaClassConstructs::Connector"
2766                                 forcePluginActivation="true"
2767                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2768                           </test>
2769                        </not>
2770                        <instanceof
2771                              value="org.eclipse.uml2.uml.Class">
2772                        </instanceof>
2773                        <not>
2774                           <test
2775                                 args="ModelicaML::ModelicaClassConstructs::Operator"
2776                                 forcePluginActivation="true"
2777                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2778                           </test>
2779                        </not>
2780                        <not>
2781                           <test
2782                                 args="ModelicaML::ModelicaClassConstructs::Function"
2783                                 forcePluginActivation="true"
2784                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2785                           </test>
2786                        </not>
2787                        <and>
2788                           <not>
2789                              <instanceof
2790                                    value="org.eclipse.uml2.uml.Behavior">
2791                              </instanceof>
2792                           </not>
2793                        </and>
2794                     </and>
2795                  </adapt>
2796               </iterate>
2797            </with>
2798         </activeWhen>
2799      </handler>
2800      <handler
2801            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaMLClassDiagramHandler"
2802            commandId="org.openmodelica.modelicaml.commands.CreateClassDiagram">
2803         <activeWhen>
2804            <with
2805                  variable="selection">
2806               <count
2807                     value="1">
2808               </count>
2809               <iterate>
2810                  <adapt
2811                        type="org.eclipse.emf.ecore.EObject">
2812
2813                     <or>
2814                        <instanceof
2815                              value="org.eclipse.uml2.uml.Package">
2816                        </instanceof>
2817                        <instanceof
2818                              value="org.eclipse.uml2.uml.Model">
2819                        </instanceof>
2820                     </or>
2821                  </adapt>
2822               </iterate>
2823            </with>
2824         </activeWhen>
2825      </handler>
2826      <handler
2827            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaMLConnectionDiagramHandler"
2828            commandId="org.openmodelica.modelicaml.commands.CreateConnectionDiagram">
2829         <activeWhen>
2830            <with
2831                  variable="selection">
2832               <count
2833                     value="1">
2834               </count>
2835               <iterate>
2836                  <adapt
2837                        type="org.eclipse.emf.ecore.EObject">
2838                     <and>
2839                        <or>
2840                           <test
2841                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2842                                 forcePluginActivation="true"
2843                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2844                           </test>
2845                           <test
2846                                 args="ModelicaML::ModelicaClassConstructs::Model"
2847                                 forcePluginActivation="true"
2848                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2849                           </test>
2850                           <test
2851                                 args="ModelicaML::ModelicaClassConstructs::Block"
2852                                 forcePluginActivation="true"
2853                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2854                           </test>
2855                           <test
2856                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2857                                 forcePluginActivation="true"
2858                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2859                           </test>
2860                        </or>
2861                     </and>
2862                     <instanceof
2863                           value="org.eclipse.uml2.uml.Class">
2864                     </instanceof>
2865                  </adapt>
2866               </iterate>
2867            </with>
2868         </activeWhen>
2869      </handler>
2870      <handler
2871            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaMLStateMachineDiagramHandler"
2872            commandId="org.openmodelica.modelicaml.commands.CreateStateMachineDiagram">
2873         <activeWhen>
2874            <with
2875                  variable="selection">
2876               <count
2877                     value="1">
2878               </count>
2879               <iterate>
2880                  <adapt
2881                        type="org.eclipse.emf.ecore.EObject">
2882                     <and>
2883                        <or>
2884                           <test
2885                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2886                                 forcePluginActivation="true"
2887                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2888                           </test>
2889                           <test
2890                                 args="ModelicaML::ModelicaClassConstructs::Model"
2891                                 forcePluginActivation="true"
2892                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2893                           </test>
2894                           <test
2895                                 args="ModelicaML::ModelicaClassConstructs::Block"
2896                                 forcePluginActivation="true"
2897                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2898                           </test>
2899                           <test
2900                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2901                                 forcePluginActivation="true"
2902                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2903                           </test>
2904                           <test
2905                                 args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2906                                 forcePluginActivation="true"
2907                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2908                           </test>
2909                        </or>
2910                     </and>
2911                     <instanceof
2912                           value="org.eclipse.uml2.uml.Class">
2913                     </instanceof>
2914                  </adapt>
2915               </iterate>
2916            </with>
2917         </activeWhen>
2918      </handler>
2919      <handler
2920            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaMLConditionalEquationsDiagramHandler"
2921            commandId="org.openmodelica.modelicaml.commands.CreateConditionalEquationDiagram">
2922         <activeWhen>
2923            <with
2924                  variable="selection">
2925               <count
2926                     value="1">
2927               </count>
2928               <iterate>
2929                  <adapt
2930                        type="org.eclipse.emf.ecore.EObject">
2931                     <and>
2932                        <or>
2933                           <test
2934                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2935                                 forcePluginActivation="true"
2936                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2937                           </test>
2938                           <test
2939                                 args="ModelicaML::ModelicaClassConstructs::Model"
2940                                 forcePluginActivation="true"
2941                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2942                           </test>
2943                           <test
2944                                 args="ModelicaML::ModelicaClassConstructs::Block"
2945                                 forcePluginActivation="true"
2946                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2947                           </test>
2948                           <test
2949                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2950                                 forcePluginActivation="true"
2951                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2952                           </test>
2953                           <test
2954                                 args="ModelicaML::ModelicaRequirementConstructs::Requirement"
2955                                 forcePluginActivation="true"
2956                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2957                           </test>
2958                        </or>
2959                     </and>
2960                     <instanceof
2961                           value="org.eclipse.uml2.uml.Class">
2962                     </instanceof>
2963                  </adapt>
2964               </iterate>
2965            </with>
2966         </activeWhen>
2967      </handler>
2968      <handler
2969            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaMLConditionalAlgorithmDiagramHandler"
2970            commandId="org.openmodelica.modelicaml.commands.CreateConditionalAlgorithmDiagram">
2971         <activeWhen>
2972            <with
2973                  variable="selection">
2974               <count
2975                     value="1">
2976               </count>
2977               <iterate>
2978                  <adapt
2979                        type="org.eclipse.emf.ecore.EObject">
2980                     <and>
2981                        <or>
2982                           <test
2983                                 args="ModelicaML::ModelicaClassConstructs::ModelicaClass"
2984                                 forcePluginActivation="true"
2985                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2986                           </test>
2987                           <test
2988                                 args="ModelicaML::ModelicaClassConstructs::Model"
2989                                 forcePluginActivation="true"
2990                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2991                           </test>
2992                           <test
2993                                 args="ModelicaML::ModelicaClassConstructs::Block"
2994                                 forcePluginActivation="true"
2995                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
2996                           </test>
2997                           <test
2998                                 args="ModelicaML::ModelicaClassConstructs::CalculationModel"
2999                                 forcePluginActivation="true"
3000                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
3001                           </test>
3002                           <test
3003                                 args="ModelicaML::ModelicaRequirementConstructs::Requirement"
3004                                 forcePluginActivation="true"
3005                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
3006                           </test>
3007                        </or>
3008                     </and>
3009                     <instanceof
3010                           value="org.eclipse.uml2.uml.Class">
3011                     </instanceof>
3012                  </adapt>
3013               </iterate>
3014            </with>
3015         </activeWhen>
3016      </handler>
3017      <handler
3018            class="org.openmodelica.modelicaml.profile.handlers.CreateModelicaSimulationModelHandler"
3019            commandId="org.openmodelica.modelicaml.commands.CreateModelicaSimulationModelCommand">
3020         <activeWhen>
3021            <with
3022                  variable="selection">
3023               <iterate
3024                     ifEmpty="false"
3025                     operator="or">
3026                  <adapt
3027                        type="org.eclipse.emf.ecore.EObject">
3028                     <not>
3029                        <test
3030                              args="ModelicaML::ModelicaClassConstructs::Function"
3031                              forcePluginActivation="true"
3032                              property="org.openmodelica.modelicaml.testers.hasStereotype">
3033                        </test>
3034                     </not>
3035                     <and>
3036                        <or>
3037                           <instanceof
3038                                 value="org.eclipse.uml2.uml.Package">
3039                           </instanceof>
3040                           <instanceof
3041                                 value="org.eclipse.uml2.uml.Class">
3042                           </instanceof>
3043                        </or>
3044                     </and>
3045                     <not>
3046                        <instanceof
3047                              value="org.eclipse.uml2.uml.Behavior">
3048                        </instanceof>
3049                     </not>
3050                  </adapt>
3051               </iterate>
3052               <count
3053                     value="1">
3054               </count>
3055            </with>
3056         </activeWhen>
3057      </handler>
3058      <handler
3059            class="org.openmodelica.modelicaml.profile.handlers.CreateValueMediatorHandler"
3060            commandId="org.openmodelica.modelicaml.commands.CreateValueMediatorCommand">
3061         <activeWhen>
3062            <with
3063                  variable="selection">
3064               <count
3065                     value="1">
3066               </count>
3067               <iterate>
3068                  <adapt
3069                        type="org.eclipse.emf.ecore.EObject">
3070                     <or>
3071                        <test
3072                              args="ModelicaML::ValueBinding::ValueMediatorsContainer"
3073                              property="org.openmodelica.modelicaml.testers.hasStereotype">
3074                        </test>
3075                     </or>
3076                  </adapt>
3077               </iterate>
3078            </with>
3079         </activeWhen>
3080      </handler>
3081      <handler
3082            class="org.openmodelica.modelicaml.profile.handlers.CreateValueMediatorsContainerHandler"
3083            commandId="org.openmodelica.modelicaml.commands.CreateValueMediatorsContainerCommand">
3084         <activeWhen>
3085            <with
3086                  variable="selection">
3087               <count
3088                     value="1">
3089               </count>
3090               <iterate>
3091                  <adapt
3092                        type="org.eclipse.emf.ecore.EObject">
3093                     <and>
3094                        <not>
3095                           <test
3096                                 args="ModelicaML::ModelicaClassConstructs::Function"
3097                                 property="org.openmodelica.modelicaml.testers.hasStereotype">
3098                           </test>
3099                        </not>
3100                        <or>
3101                           <instanceof
3102                                 value="org.eclipse.uml2.uml.Class">
3103                           </instanceof>
3104                           <instanceof
3105                                 value="org.eclipse.uml2.uml.Package">
3106                           </instanceof>
3107                        </or>
3108                        <and>
3109                           <not>
3110                              <instanceof
3111                                    value="org.eclipse.uml2.uml.Behavior">
3112                              </instanceof>
3113                           </not>
3114                        </and>
3115                     </and>
3116                  </adapt>
3117               </iterate>
3118            </with>
3119         </activeWhen>
3120      </handler>
3121      <handler
3122            class="org.openmodelica.modelicaml.profile.handlers.LocateHandler"
3123            commandId="org.openmodelica.modelicaml.modelexplorer.locate">
3124         <activeWhen>
3125            <with
3126                  variable="selection">
3127               <count
3128                     value="1">
3129               </count>
3130               <iterate>
3131                  <adapt
3132                        type="org.eclipse.emf.ecore.EObject">
3133                  </adapt>
3134               </iterate>
3135            </with>
3136         </activeWhen>
3137      </handler>
3138   </extension>
3139   <extension
3140         point="org.eclipse.core.expressions.propertyTesters">
3141      <propertyTester
3142            class="org.openmodelica.modelicaml.profile.handlers.HasStereotypePropertyTester"
3143            id="org.openmodelica.modelicaml.hasStereotypeTester"
3144            namespace="org.openmodelica.modelicaml.testers"
3145            properties="hasStereotype"
3146            type="org.eclipse.emf.ecore.EObject">
3147      </propertyTester>
3148   </extension>
3149   <extension
3150         point="org.eclipse.core.expressions.definitions">
3151      <definition
3152            id="org.openmodelica.modelicaml.profile.IsPapyrusActiveWithModelicaML">
3153         <and>
3154            <with
3155                  variable="activeEditorId">
3156               <equals
3157                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
3158               </equals>
3159            </with>
3160            <with
3161                  variable="selection">
3162               <test
3163                     forcePluginActivation="true"
3164                     property="org.openmodelica.modelicaml.profile.propertyTester.isModelicaMLModel"
3165                     value="true">
3166               </test>
3167            </with>
3168         </and>
3169      </definition>
3170   </extension>
3171   <extension
3172         point="org.eclipse.core.expressions.propertyTesters">
3173      <propertyTester
3174            class="org.openmodelica.modelicaml.properties.ModelicaMLSectionTester"
3175            id="org.openmodelica.modelicaml.profile.ModelicaMLSectionTester"
3176            namespace="org.openmodelica.modelicaml.profile.propertyTester"
3177            properties="isModelicaMLModel"
3178            type="org.eclipse.jface.viewers.ISelection">
3179      </propertyTester>
3180   </extension>
3181   <extension
3182         point="org.eclipse.ui.commands">
3183      <command
3184            id="org.openmodelica.modelicaml.commands.deleteTopLevelModelPackage"
3185            name="ModelicaML: Delete Top-Level Model">
3186      </command>
3187   </extension>
3188   <extension
3189         point="org.eclipse.ui.handlers">
3190      <handler
3191            class="org.openmodelica.modelicaml.profile.handlers.special.DeleteTopLevelModelPackage"
3192            commandId="org.openmodelica.modelicaml.commands.deleteTopLevelModelPackage">
3193      </handler>
3194   </extension>
3195   <extension
3196         point="org.eclipse.papyrus.uml.extensionpoints.UMLProfile">
3197      <profile
3198            description="ModelicaML - A UML Profile for Modelica"
3199            iconpath="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3200            name="ModelicaML (1.3.1)"
3201            path="pathmap://PALETTE_PROFILE/ModelicaML.profile.uml"
3202            provider="OpenModelica Project">
3203      </profile>
3204   </extension>
3205   <extension
3206         point="org.eclipse.papyrus.uml.extensionpoints.UMLLibrary">
3207      <library
3208            description="Modelica Standard Library 3.2"
3209            iconpath="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3210            name="Modelica Standard Library 3.2"
3211            path="pathmap://PATH_LIBRARIES/MSL/full/model.uml"
3212            provider="OpenModelica Project">
3213      </library>
3214   </extension>
3215   <extension
3216         point="org.eclipse.papyrus.uml.extensionpoints.UMLLibrary">
3217      <library
3218            description="Modelica Standard Library 3.2 - Proxies (only model structure, no behavior or annotations)"
3219            iconpath="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3220            name="Modelica Standard Library 3.2 - Proxies"
3221            path="pathmap://PATH_LIBRARIES/MSL/proxies/model.uml"
3222            provider="OpenModelica Project">
3223      </library>
3224   </extension>
3225   <extension
3226         point="org.eclipse.papyrus.uml.extensionpoints.UMLLibrary">
3227      <library
3228            description="ModelicaML Primitive Types"
3229            iconpath="resources/icons/icons16/type.gif"
3230            name="ModelicaML Primitive Types"
3231            path="pathmap://PATH_LIBRARIES/PredefinedTypes/model.uml"
3232            provider="OpenModelica Project">
3233      </library>
3234   </extension>
3235   <extension
3236         point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition">
3237      <paletteDefinition
3238            ID="org.openmodelica.modelicaml.ModelicaMLClassDiagramPaletteDefinition"
3239            class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
3240            icon="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3241            name="ModelicaML Class Diagram Palette "
3242            path="/palettes/ModelicaMLClassDiagram.Palette.xml"
3243            provider="OpenModelica Project">
3244         <Priority
3245               name="Highest">
3246         </Priority>
3247         <editor
3248               id="org.eclipse.papyrus.uml.diagram.clazz">
3249         </editor>
3250      </paletteDefinition>
3251   </extension>
3252   <extension
3253         point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition">
3254      <paletteDefinition
3255            ID="org.openmodelica.modelicaml.ModelicaMLConnectionDiagramPaletteDefinition"
3256            class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
3257            icon="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3258            name="ModelicaML Connection Diagram Palette  "
3259            path="/palettes/ModelicaMLConnectionDiagram.Palette.xml"
3260            provider="OpenModelica Project">
3261         <Priority
3262               name="Highest">
3263         </Priority>
3264         <editor
3265               id="org.eclipse.papyrus.uml.diagram.composite">
3266         </editor>
3267      </paletteDefinition>
3268   </extension>
3269   <extension
3270         point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition">
3271      <paletteDefinition
3272            ID="org.openmodelica.modelicaml.ModelicaMLStateMachineDiagramPaletteDefinition"
3273            class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
3274            icon="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3275            name="ModelicaML SubSet of State Machine Diagram Palette "
3276            path="/palettes/ModelicaMLStateMachineDiagram.Palette.xml"
3277            provider="OpenModelica Project">
3278         <Priority
3279               name="Highest">
3280         </Priority>
3281         <editor
3282               id="org.eclipse.papyrus.uml.diagram.statemachine">
3283         </editor>
3284      </paletteDefinition>
3285   </extension>
3286   <extension
3287         point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition">
3288      <paletteDefinition
3289            ID="org.openmodelica.modelicaml.ModelicaMLActivityDiagramPaletteDefinition"
3290            class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider"
3291            icon="resources/icons/icons16/modelicaml_logo_16x16_v02.png"
3292            name="ModelicaML SubSet of Activity Diagram Palette "
3293            path="/palettes/ModelicaMLActivityDiagram.Palette.xml"
3294            provider="OpenModelica Project">
3295         <Priority
3296               name="Highest">
3297         </Priority>
3298         <editor
3299               id="org.eclipse.papyrus.uml.diagram.activity">
3300         </editor>
3301      </paletteDefinition>
3302   </extension>
3303   <extension
3304         point="org.eclipse.papyrus.infra.core.papyrusDiagram">
3305      <diagramCategory
3306            class="org.openmodelica.modelicaml.profile.commands.ModelicaMLModelCreationCommand"
3307            description="ModelicaML is a UM Profile that enables the modeling of hybrid system dydimics."
3308            icon="resources/icons/icons16/logos/ModelicaML_logo_32x32.png"
3309            id="modelicaml"
3310            label="ModelicaML">
3311      </diagramCategory>
3312   </extension>
3313   <extension
3314         point="org.eclipse.papyrus.uml.diagram.wizards.templates">
3315      <template
3316            file="templateModels/backup/model.uml"
3317            id="org.openmodelica.modelicaml.profile.basicTemplate"
3318            language="modelicaml"
3319            name="ModelicaML template incl. Requirements, Desing and Simulation Packages">
3320      </template>
3321   </extension>
3322
3323</plugin>
Note: See TracBrowser for help on using the repository browser.