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

Last change on this file since 708 was 708, checked in by wschamai, 13 years ago

MOD: new images for value bindings, action create value binding container add return

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