Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 3ab6cfa95039f6c60e69b6895fcd665f6546633c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<!--
 Copyright (c) 2009, 2016 MOSKitt, CEA, Christian W. Damus, and others.
 
 All rights reserved. This program and the accompanying materials
 are made available under the terms of the Eclipse Public License v1.0
 which accompanies this distribution, and is available at
 http://www.eclipse.org/legal/epl-v10.html
 
 Contributors:
   MOSKitt - Initial API and implementation
   Christian W. Damus (CEA) - bug 323802
   Christian W. Damus - bug 433206, 463513, 495279
   
-->
<plugin>
   <extension point="org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders" id="markers-navigation">
				      <?gmfgen generated="true"?>
				      <MarkerNavigationProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLMarkerNavigationProvider">
				         <MarkerType name="org.eclipse.papyrus.uml.diagram.statemachine.diagnostic"/>
				         <Priority name="Lowest"/>
				      </MarkerNavigationProvider>
				   </extension>

   <extension id="diagnostic" name="PapyrusUMLStateMachineDiagram problems" point="org.eclipse.core.resources.markers">
				      <?gmfgen generated="true"?>
				      <super type="org.eclipse.core.resources.problemmarker"/>
				      <super type="org.eclipse.gmf.runtime.common.ui.services.marker"/>
				      <persistent value="true"/>
				   </extension>   

   <extension point="org.eclipse.core.runtime.preferences" id="prefs">
      <?gmfgen generated="true"?>
      <initializer class="org.eclipse.papyrus.uml.diagram.statemachine.preferences.DiagramPreferenceInitializer"/>
   </extension>

   <extension point="org.eclipse.ui.preferencePages" id="prefpages">
      <?gmfgen generated="true"?>
<page
      id="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams.PapyrusUMLStateMachineDiagram"
      name="PapyrusUMLStateMachineDiagram Diagram"
      category="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams"
      class="org.eclipse.papyrus.uml.diagram.statemachine.preferences.DiagramGeneralPreferencePage">
</page>
<page
      id="org.eclipse.papyrus.uml.diagram.statemachine.preferences.DiagramPrintingPreferencePage"
      name="%prefpage.org.eclipse.uml2.uml.diagram.printing"
      category="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams.PapyrusUMLStateMachineDiagram"
      class="org.eclipse.papyrus.uml.diagram.statemachine.preferences.DiagramPrintingPreferencePage">
</page>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor" id="prop-contrib">
      <?gmfgen generated="true"?>
      <propertyContributor
            contributorId="org.eclipse.papyrus.uml.diagram.statemachine"
            labelProvider="org.eclipse.papyrus.uml.diagram.statemachine.sheet.UMLSheetLabelProvider">
         <propertyCategory category="domain"/>
         <propertyCategory category="visual"/>
         <propertyCategory category="extra"/>
      </propertyContributor>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs" id="proptabs">
      <?gmfgen generated="true"?>   
      <propertyTabs contributorId="org.eclipse.papyrus.uml.diagram.statemachine">
         <propertyTab
             category="visual"
             id="property.tab.AppearancePropertySection"
             label="%tab.appearance"/>
          <propertyTab
             category="visual"
             id="property.tab.DiagramPropertySection"
             label="%tab.diagram"/>
          <propertyTab
             category="domain"
             id="property.tab.domain"
             label="%tab.domain"/>
          <propertyTab
             category="domain"
             id="property.tab.domain"
             label="%tab.domain"/>
          <propertyTab
             category="domain"
             id="property.tab.domain"
             label="%tab.domain"/>
      </propertyTabs>
   </extension>

   <extension point="org.eclipse.ui.views.properties.tabbed.propertySections" id="propsections">
      <?gmfgen generated="true"?>   
      <propertySections contributorId="org.eclipse.papyrus.uml.diagram.statemachine">
         <propertySection id="property.section.ConnectorAppearancePropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ConnectionEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ConnectionAppearancePropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection>
         <propertySection id="property.section.ShapeColorAndFontPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ShapeColorsAndFontsPropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection> 
         <propertySection id="property.section.DiagramColorsAndFontsPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.DiagramColorsAndFontsPropertySection" 
            tab="property.tab.AppearancePropertySection">
         </propertySection>     
         <propertySection id="property.section.RulerGridPropertySection" 
            filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter" 
            class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection" 
            tab="property.tab.DiagramPropertySection">
         </propertySection>     
         <propertySection
            id="property.section.domain" 
            tab="property.tab.domain"
            class="org.eclipse.papyrus.uml.diagram.statemachine.sheet.UMLPropertySection">
            <input type="org.eclipse.gmf.runtime.notation.View"/>
            <input type="org.eclipse.gef.EditPart"/>
         </propertySection>
         <propertySection
            id="property.section.domain" 
            tab="property.tab.domain"
            class="org.eclipse.papyrus.uml.diagram.statemachine.sheet.UMLPropertySection">
            <input type="org.eclipse.gmf.runtime.notation.View"/>
            <input type="org.eclipse.gef.EditPart"/>
         </propertySection>
         <propertySection
            id="property.section.domain" 
            tab="property.tab.domain"
            class="org.eclipse.papyrus.uml.diagram.statemachine.sheet.UMLPropertySection">
            <input type="org.eclipse.gmf.runtime.notation.View"/>
            <input type="org.eclipse.gef.EditPart"/>
         </propertySection>
      </propertySections>
   </extension>


<?gmfgen generated="true"?>

	
   <extension point="org.eclipse.gmf.runtime.diagram.core.viewProviders" id="view-provider">
      <?gmfgen generated="true"?>
      <viewProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLViewProvider">
         <Priority name="Lowest"/>
         <context viewClass="org.eclipse.gmf.runtime.notation.Diagram" semanticHints="PapyrusUMLStateMachineDiagram"/>
         <context viewClass="org.eclipse.gmf.runtime.notation.Node" semanticHints="StateMachine_Shape,State_Shape_TN,Region_Shape,FinalState_Shape,State_Shape,Pseudostate_InitialShape,Pseudostate_JoinShape,Pseudostate_ForkShape,Pseudostate_ChoiceShape,Pseudostate_JunctionShape,Pseudostate_ShallowHistoryShape,Pseudostate_DeepHistoryShape,Pseudostate_TerminateShape,Pseudostate_EntryPointShape,Pseudostate_ExitPointShape,ConnectionPointReference_Shape,Comment_Shape,Constraint_Shape,Transition_InternalTransitionLabel,Behavior_EntryBehaviorLabel,Behavior_DoActivityBehaviorLabel,Behavior_ExitBehaviorLabel"/>
         <context viewClass="org.eclipse.gmf.runtime.notation.Edge" semanticHints="Transition_Edge,Generalization_Edge,Comment_AnnotatedElementEdge,Constraint_ConstrainedElementEdge,Constraint_ContextEdge"/>
      </viewProvider>
   </extension>

   <extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders" id="ep-provider">
      <?gmfgen generated="true"?>
      <editpartProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLEditPartProvider">
         <Priority name="Lowest"/>
         <object class="org.eclipse.gmf.runtime.notation.Diagram" id="generated-diagram">
            <method name="getType()" value="PapyrusUMLStateMachineDiagram"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-nodes">
            <method name="getType()" value="StateMachine_Shape,State_Shape_TN,Region_Shape,FinalState_Shape,State_Shape,Pseudostate_InitialShape,Pseudostate_JoinShape,Pseudostate_ForkShape,Pseudostate_ChoiceShape,Pseudostate_JunctionShape,Pseudostate_ShallowHistoryShape,Pseudostate_DeepHistoryShape,Pseudostate_TerminateShape,Pseudostate_EntryPointShape,Pseudostate_ExitPointShape,ConnectionPointReference_Shape,Comment_Shape,Constraint_Shape,Transition_InternalTransitionLabel,Behavior_EntryBehaviorLabel,Behavior_DoActivityBehaviorLabel,Behavior_ExitBehaviorLabel"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Edge" id="generated-links">
            <method name="getType()" value="Transition_Edge,Generalization_Edge,Comment_AnnotatedElementEdge,Constraint_ConstrainedElementEdge,Constraint_ContextEdge"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-labels">
            <method name="getType()" value="StateMachine_NameLabel,State_NameLabel_TN,FinalState_FloatingNameLabel,FinalState_StereotypeLabel,State_NameLabel,State_FloatingNameLabel,Pseudostate_InitialFloatingNameLabel,Pseudostate_InitialStereotypeLabel,Pseudostate_JoinFloatingNameLabel,Pseudostate_JoinStereotypeLabel,Pseudostate_ForkFloatingNameLabel,Pseudostate_ForkStereotypeLabel,Pseudostate_ChoiceFloatingNameLabel,Pseudostate_ChoiceStereotypeLabel,Pseudostate_JunctionFloatingNameLabel,Pseudostate_JunctionStereotypeLabel,Pseudostate_ShallowHistoryFloatingNameLabel,Pseudostate_ShallowHistoryStereotypeLabel,Pseudostate_DeepHistoryFloatingNameLabel,Pseudostate_DeepHistoryStereotypeLabel,Pseudostate_TerminateFloatingNameLabel,Pseudostate_TerminateStereotypeLabel,Pseudostate_EntryPointFloatingNameLabel,Pseudostate_EntryPointStereotypeLabel,Pseudostate_ExitPointFloatingNameLabel,Pseudostate_ExitPointStereotypeLabel,ConnectionPointReference_NameLabel,ConnectionPointReference_StereotypeLabel,Comment_BodyLabel,Constraint_NameLabel,Constraint_BodyLabel"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-compartments">
            <method name="getType()" value="Region_SubvertexCompartment,StateMachine_RegionCompartment,State_RegionCompartment,State_RegionCompartment_TN"/>
         </object>
         <context views="generated-diagram,generated-nodes,generated-links,generated-labels,generated-compartments"/>
      </editpartProvider>
   </extension>

   
   <extension point="org.eclipse.gmf.runtime.common.ui.services.iconProviders" id="icon-provider">
      <?gmfgen generated="true"?>
      <IconProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLIconProvider">
         <Priority name="Low"/>
      </IconProvider>
   </extension>

   <extension point="org.eclipse.gmf.runtime.common.ui.services.parserProviders" id="parser-provider">
      <?gmfgen generated="true"?>
      <ParserProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLParserProvider">
         <Priority name="Lowest"/>
      </ParserProvider>
   </extension>

   
	   
	   
	<!-- Diagram specific advices -->

   <extension point="org.eclipse.ui.menus" id="context-menus">
      <?gmfgen generated="true"?>
      <!-- menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=">
      </menuContribution>
      <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=">
      </menuContribution -->
      <menuContribution locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu">
         <command commandId="org.eclipse.papyrus.uml.diagram.statemachine.LoadResourceAction">
            <visibleWhen>
               <and>
                  <with variable="activePartId"><equals value="org.eclipse.papyrus.uml.diagram.statemachine.part.UMLDiagramEditorID"/></with>
                  <with variable="selection"><iterate ifEmpty="false"> 
                     <instanceof value="org.eclipse.papyrus.uml.diagram.statemachine.edit.parts.PackageEditPart"/>
                  </iterate></with>
               </and>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>

   <extension point="org.eclipse.ui.commands" id="menu-commands">
      <?gmfgen generated="true"?>
      <category id="org.eclipse.papyrus.uml.diagram.statemachine.part.UMLDiagramEditorID" name="%cmdcategory.name" description="%cmdcategory.desc"/>
      <command id="org.eclipse.papyrus.uml.diagram.statemachine.LoadResourceAction"
         name="Load Resource"
         categoryId="org.eclipse.papyrus.uml.diagram.statemachine.part.UMLDiagramEditorID"
         defaultHandler="org.eclipse.papyrus.uml.diagram.statemachine.part.LoadResourceAction"/>
   </extension>

<!-- Diagram creation command and handler -->
<extension point="org.eclipse.ui.commands">
	<command id="org.eclipse.papyrus.uml.diagram.statemachine.CreationCommand"
		name="Create a new StateMachine Diagram"
		description="Create a new StateMachine Diagram"
		categoryId="org.eclipse.papyrus.editor.category"/>
</extension>


<!-- Diagram creation command registration in menu and toolbar -->
   
   <extension
         point="org.eclipse.papyrus.infra.ui.papyrusDiagram">
      <editorDiagram
            actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
            factoryClass="org.eclipse.papyrus.uml.diagram.statemachine.StateMachineDiagramEditorFactory"
            icon="icons/obj16/Diagram_StateMachine.gif">
      </editorDiagram>
      <creationCommand
            creationCommandClass="org.eclipse.papyrus.uml.diagram.statemachine.CreateStateMachineDiagramCommand"
            creationCondition="org.eclipse.papyrus.uml.diagram.statemachine.StateMachineDiagramCreationCondition"
            icon="icons/obj16/Diagram_StateMachine.gif"
            id="org.eclipse.papyrus.uml.diagram.statemachine.CreationCommand"
            language="uml"
            label="StateMachine Diagram">
      </creationCommand>
   </extension>

   <extension point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders" id="ep-provider">
      <editpartProvider class="org.eclipse.papyrus.uml.diagram.statemachine.custom.providers.CustomUMLEditPartProvider">
         <Priority name="Low"/>
         <object class="org.eclipse.gmf.runtime.notation.Diagram" id="generated-diagram">
            <method name="getType()" value="PapyrusUMLStateMachineDiagram"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-nodes">
            <method name="getType()" value="StateMachine_Shape,Region_Shape,FinalState_Shape,State_Shape,Pseudostate_InitialShape,Pseudostate_JoinShape,Pseudostate_ForkShape,Pseudostate_ChoiceShape,Pseudostate_JunctionShape,Pseudostate_ShallowHistoryShape,Pseudostate_DeepHistoryShape,Pseudostate_TerminateShape,Pseudostate_EntryPointShape,Pseudostate_ExitPointShape,ConnectionPointReference_Shape,Comment_Shape,Constraint_Shape,Transition_InternalTransitionLabel,Behavior_EntryBehaviorLabel,Behavior_DoActivityBehaviorLabel,Behavior_ExitBehaviorLabel"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Edge" id="generated-links">
            <method name="getType()" value="Transition_Edge,Generalization_Edge,Comment_AnnotatedElementEdge,Constraint_ConstrainedElementEdge,Constraint_ContextEdge"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-labels">
            <method name="getType()" value="StateMachine_NameLabel,FinalState_FloatingNameLabel,FinalState_StereotypeLabel,State_NameLabel,State_FloatingNameLabel,Pseudostate_InitialFloatingNameLabel,Pseudostate_InitialStereotypeLabel,Pseudostate_JoinFloatingNameLabel,Pseudostate_JoinStereotypeLabel,Pseudostate_ForkFloatingNameLabel,Pseudostate_ForkStereotypeLabel,Pseudostate_ChoiceFloatingNameLabel,Pseudostate_ChoiceStereotypeLabel,Pseudostate_JunctionFloatingNameLabel,Pseudostate_JunctionStereotypeLabel,Pseudostate_ShallowHistoryFloatingNameLabel,Pseudostate_ShallowHistoryStereotypeLabel,Pseudostate_DeepHistoryFloatingNameLabel,Pseudostate_DeepHistoryStereotypeLabel,Pseudostate_TerminateFloatingNameLabel,Pseudostate_TerminateStereotypeLabel,Pseudostate_EntryPointFloatingNameLabel,Pseudostate_EntryPointStereotypeLabel,Pseudostate_ExitPointFloatingNameLabel,Pseudostate_ExitPointStereotypeLabel,ConnectionPointReference_NameLabel,ConnectionPointReference_StereotypeLabel,Comment_BodyLabel,Constraint_NameLabel,Constraint_BodyLabel"/>
         </object>
         <object class="org.eclipse.gmf.runtime.notation.Node" id="generated-compartments">
            <method name="getType()" value="Region_SubvertexCompartment,StateMachine_RegionCompartment,State_RegionCompartment"/>
         </object>
         <context views="generated-diagram,generated-nodes,generated-links,generated-labels,generated-compartments"/>
      </editpartProvider>
   </extension>






<extension point="org.eclipse.ui.handlers" id="menu-handlers">
      <?gmfgen generated="true"?>
   </extension>
<extension
      id="ui-context"
      point="org.eclipse.ui.contexts">
   <context
         description="%context.description"
         id="org.eclipse.papyrus.uml.diagram.statemachine.ui.diagramContext"
         name="%context.name"
         parentId="org.eclipse.gmf.runtime.diagram.ui.diagramContext">
   </context>
</extension>
<extension id="validationDecoratorProvider" name="ValidationDecorations" point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
				      <?gmfgen generated="true"?>
				      <decoratorProvider class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLValidationDecoratorProvider">
				         <Priority name="Lowest"/>
				         <object class="org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart(org.eclipse.gmf.runtime.diagram.ui)" id="PRIMARY_VIEW"/>
				         <context decoratorTargets="PRIMARY_VIEW"/>
				      </decoratorProvider>
				   </extension>
<extension point="org.eclipse.emf.validation.constraintProviders">
      <?gmfgen generated="true"?>
            <category id="org.eclipse.uml2.uml.util.UMLValidator.validateInternalTransition" mandatory="false" name="validateInternalTransition">
         <![CDATA[Validate internal transition]]>
      </category>
      <constraintProvider cache="true">
         <package namespaceUri="http://www.eclipse.org/uml2/5.0.0/UML"/>
               <constraints categories="org.eclipse.uml2.uml.util.UMLValidator.validateInternalTransition">
                  <constraint id="org.eclipse.uml2.uml.util.UMLValidator.validateInternalTransition_sameTargetAndSrouce"
            lang="OCL"
            name="validateInternalTransitionEnd"
            mode="Live"
            severity="ERROR" statusCode="200">
            <![CDATA[(kind = TransitionKind::internal) implies (source.oclIsKindOf (State) and source = target)]]>
            <description><![CDATA[Validate that internal transition has the same state for source and target]]></description>
            <message><![CDATA[Validate that internal transition has the same state for source and target]]></message>
            <target class="uml.Transition"/>
         </constraint>
                  </constraints>
      </constraintProvider>
   </extension>

<extension point="org.eclipse.emf.validation.constraintBindings">
      <?gmfgen generated="true"?>
      <clientContext default="false" id="org.eclipse.papyrus.uml.diagram.statemachineDefaultCtx">
         <selector class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLValidationProvider$DefaultCtx"/>
      </clientContext>
      <binding context="org.eclipse.papyrus.uml.diagram.statemachineDefaultCtx">
                  <constraint ref="org.eclipse.papyrus.uml.diagram.statemachine.org.eclipse.uml2.uml.util.UMLValidator.validateInternalTransition_sameTargetAndSrouce"/>
               </binding>

   </extension>

<extension point="org.eclipse.emf.validation.ui.UIRegisteredClientContext">
      <?gmfgen generated="true"?>
         <clientContext id="org.eclipse.papyrus.uml.diagram.statemachineDefaultCtx"/>
      </extension>
 
 <extension
      point="org.eclipse.emf.transaction.listeners">
   <listener
         class="org.eclipse.papyrus.uml.diagram.statemachine.custom.listeners.StateBehaviorsListener">
      <editingDomain
            id="org.eclipse.papyrus.SharedEditingDomainID">
      </editingDomain>
   </listener>
	   <listener
	         class="org.eclipse.papyrus.uml.diagram.statemachine.custom.listeners.InternalStateListener">
	      <editingDomain
	            id="org.eclipse.papyrus.SharedEditingDomainID">
	      </editingDomain>
	   </listener>
	</extension>

<extension
			id="PapyrusUMLStateMachineDiagram.palettedefinition"
			name="PapyrusUMLStateMachineDiagram Predefined Entries"
			point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders"> 
			
			<?gmfgen generated="true"?>	
			<paletteProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
				<Priority name="Lowest"/>
				   		<contribution
				   		    	factoryClass="org.eclipse.papyrus.uml.diagram.statemachine.part.UMLPaletteFactory">
				   		<predefinedEntry id="standardGroup/noteStack/noteTool" remove="true"/> 
				<predefinedEntry id="standardGroup/noteStack/textTool" remove="true"/> 
				<predefinedEntry id="standardGroup/noteStack/noteattachmentTool" remove="true"/>
				
				<entry
				      defineOnly="true"
				      description="Region"
				      id="statemachine.createNodesGroup.region"
				      kind="tool"
				      label="Region"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Region.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Region.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="State"
				      id="statemachine.createNodesGroup.state"
				      kind="tool"
				      label="State"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Initial"
				      id="statemachine.createNodesGroup.initial"
				      kind="tool"
				      label="Initial"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_initial.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_initial.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="FinalState"
				      id="statemachine.createNodesGroup.finalstate"
				      kind="tool"
				      label="FinalState"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/FinalState.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/FinalState.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="ShallowHistory"
				      id="statemachine.createNodesGroup.shallowhistory"
				      kind="tool"
				      label="ShallowHistory"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_shallowHistory.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_shallowHistory.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="DeepHistory"
				      id="statemachine.createNodesGroup.deephistory"
				      kind="tool"
				      label="DeepHistory"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_deepHistory.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_deepHistory.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Fork"
				      id="statemachine.createNodesGroup.fork"
				      kind="tool"
				      label="Fork"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_fork.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_fork.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Join"
				      id="statemachine.createNodesGroup.join"
				      kind="tool"
				      label="Join"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_join.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_join.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Choice"
				      id="statemachine.createNodesGroup.choice"
				      kind="tool"
				      label="Choice"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_choice.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_choice.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Junction"
				      id="statemachine.createNodesGroup.junction"
				      kind="tool"
				      label="Junction"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_junction.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_junction.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="EntryPoint"
				      id="statemachine.createNodesGroup.entrypoint"
				      kind="tool"
				      label="EntryPoint"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_entryPoint.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_entryPoint.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="ExitPoint"
				      id="statemachine.createNodesGroup.exitpoint"
				      kind="tool"
				      label="ExitPoint"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_exitPoint.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_exitPoint.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Terminate"
				      id="statemachine.createNodesGroup.terminate"
				      kind="tool"
				      label="Terminate"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_terminate.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Pseudostate_terminate.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="ConnectionPointReference"
				      id="statemachine.createNodesGroup.connectionpointreference"
				      kind="tool"
				      label="ConnectionPointReference"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ConnectionPointReference.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/ConnectionPointReference.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Comment"
				      id="statemachine.createNodesGroup.comment"
				      kind="tool"
				      label="Comment"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Comment.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Create Constraint"
				      id="statemachine.createNodesGroup.constraint"
				      kind="tool"
				      label="Constraint"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Constraint.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Transition"
				      id="statemachine.createEdgesGroup.transition"
				      kind="tool"
				      label="Transition"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Transition_local.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Transition_local.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Creation of a link for comment, constraint"
				      id="statemachine.createEdgesGroup.link"
				      kind="tool"
				      label="Link"
				      large_icon="icons/obj16/Link.gif"
				      path=""
				      small_icon="icons/obj16/Link.gif">
				</entry>
				<entry
				      defineOnly="true"
				      description="Creation of a context link for a Constraint"
				      id="statemachine.createEdgesGroup.contextlink"
				      kind="tool"
				      label="ContextLink"
				      large_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif"
				      path=""
				      small_icon="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Association.gif">
				</entry>
				
				</contribution>
			</paletteProvider>	
				
		</extension>

<extension
	id="PapyrusUMLStateMachineDiagram.standard"
	name="PapyrusUMLStateMachineDiagram Standard Palette"
	point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders"> 
	
	<?gmfgen generated="true"?>	
	<paletteProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.DefaultPaletteProvider">
		<Priority name="Low"/>
		   		<contribution
		   		    	factoryClass="org.eclipse.papyrus.uml.diagram.statemachine.part.UMLPaletteFactory">
		   		<predefinedEntry id="standardGroup/noteStack/noteTool" remove="true"/> 
		<predefinedEntry id="standardGroup/noteStack/textTool" remove="true"/> 
		<predefinedEntry id="standardGroup/noteStack/noteattachmentTool" remove="true"/>
		
		<entry
		      description=""
		      id="createNodesGroup"
		      kind="drawer"
		      label="Nodes"
		      large_icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
		      path="/"
		      small_icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif">
		   <expand
		         force="true">
		   </expand>
		</entry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.region"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.state"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.initial"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.finalstate"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.shallowhistory"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.deephistory"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.fork"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.join"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.choice"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.junction"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.entrypoint"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.exitpoint"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.terminate"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.connectionpointreference"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.comment"
				path="/createNodesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createNodesGroup.constraint"
				path="/createNodesGroup">
		  </predefinedEntry>
		<entry
		      description=""
		      id="createEdgesGroup"
		      kind="drawer"
		      label="Edges"
		      large_icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif"
		      path="/"
		      small_icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif">
		   <expand
		         force="true">
		   </expand>
		</entry>
		<predefinedEntry
		        id="statemachine.createEdgesGroup.transition"
				path="/createEdgesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createEdgesGroup.link"
				path="/createEdgesGroup">
		  </predefinedEntry>
		<predefinedEntry
		        id="statemachine.createEdgesGroup.contextlink"
				path="/createEdgesGroup">
		  </predefinedEntry>
		</contribution>
		<editor id="org.eclipse.papyrus.uml.diagram.statemachine"/>
	</paletteProvider>	
		
</extension>

	<extension point="org.eclipse.ui.preferencePages">
		<page
			category="org.eclipse.papyrus.infra.gmfdiag.preferences.diagrams.PapyrusUMLStateMachineDiagram"
			class="org.eclipse.papyrus.uml.diagram.statemachine.custom.preferences.CustomTransitionPreferencePage"
			id="org.eclipse.papyrus.uml.diagram.statemachine.custom.preferences.CustomTransitionPreferencePage_ID"
			name="Transition and behavior options">
      </page>
	</extension>
 
	<extension point="org.eclipse.core.runtime.preferences">
		<initializer
			class="org.eclipse.papyrus.uml.diagram.statemachine.custom.preferences.CustomTransitionPreferenceInitializer">
		</initializer>
	</extension>
<extension point="org.eclipse.papyrus.infra.gmfdiag.common.notationTypesMapping"> 
   <?gmfgen generated="true"?>
   <diagramMappings diagramID="PapyrusUMLStateMachineDiagram">
   	<mapping type="PapyrusUMLStateMachineDiagram" humanReadableType="StateMachineDiagram"/>
			<mapping
				humanReadableType="Region"
				type="Region_SubvertexCompartment">
			</mapping>
			<mapping
				humanReadableType="StateMachine"
				type="StateMachine_RegionCompartment">
			</mapping>
			<mapping
				humanReadableType="State"
				type="State_RegionCompartment">
			</mapping>
			<mapping
				humanReadableType="State"
				type="State_RegionCompartment_TN">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="FinalState_FloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="State_FloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_InitialFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_JoinFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_ForkFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_ChoiceFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_JunctionFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_ShallowHistoryFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_DeepHistoryFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_TerminateFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_EntryPointFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Stereotype"
				type="Pseudostate_EntryPointStereotypeLabel">
			</mapping>
			<mapping
				humanReadableType="Floating Label"
				type="Pseudostate_ExitPointFloatingNameLabel">
			</mapping>
			<mapping
				humanReadableType="Stereotype"
				type="Pseudostate_ExitPointStereotypeLabel">
			</mapping>
			<mapping
				humanReadableType="Name"
				type="ConnectionPointReference_NameLabel">
			</mapping>
			<mapping
				humanReadableType="Stereotype"
				type="ConnectionPointReference_StereotypeLabel">
			</mapping>
   </diagramMappings>
</extension>


    <extension
      point="org.eclipse.gmf.runtime.common.ui.services.parserProviders">
   <ParserProvider
         class="org.eclipse.papyrus.uml.diagram.statemachine.custom.providers.CustomUMLParserProvider">
      <Priority
            name="Medium">
      </Priority>
   </ParserProvider>
</extension>
<extension
      point="org.eclipse.papyrus.infra.gmfdiag.common.diagramReconciler">
   <diagramReconciler
         diagramType="PapyrusUMLStateMachineDiagram"
         reconcilerClass="org.eclipse.papyrus.uml.diagram.statemachine.custom.migration.StateMachineReconcilerForCompartment_1_2_0"
         source="1.1.0"
         target="1.3.0">
   </diagramReconciler>
   <diagramReconciler
         diagramType="PapyrusUMLStateMachineDiagram"
         reconcilerClass="org.eclipse.papyrus.uml.diagram.statemachine.custom.migration.StateMachineReconciler_1_2_0"
         source="1.1.0"
         target="1.3.0">
   </diagramReconciler>
</extension>
   <extension point="org.eclipse.papyrus.infra.gmfdiag.common.visualTypeProviders">
      <?gmfgen generated="true"?>
      <visualTypeProvider
            class="org.eclipse.papyrus.uml.diagram.statemachine.providers.UMLVisualTypeProvider"
            diagramType="PapyrusUMLStateMachineDiagram">
         </visualTypeProvider>
   </extension>
<extension
      point="org.eclipse.papyrus.infra.hyperlink.hyperlinkContributor">
   <contributor
         contributor="org.eclipse.papyrus.uml.diagram.statemachine.custom.hyperlink.OwnedBehaviorHyperlinkContributor"
         description="Creates hyperlinks referencing a state machine represented in a diagram owned by a behaviored classifier"
         id="org.eclipse.papyrus.uml.diagram.statemachine.ownedBehaviorHyperlinkContributor"
         label="Owned state machine hyperlinks">
   </contributor>
</extension>
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings" id="element-types-bindings">
      <?gmfgen generated="true"?>
      <clientContext id="org.eclipse.papyrus.uml.diagram.statemachine.TypeContext">
         <enablement>
            <test
               property="org.eclipse.gmf.runtime.emf.core.editingDomain"
               value="org.eclipse.papyrus.uml.diagram.statemachine.EditingDomain"/>
         </enablement>
      </clientContext> 
      <binding context="org.eclipse.papyrus.uml.diagram.statemachine.TypeContext">
         <advice ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/>
      </binding>
   </extension>

<extension point="org.eclipse.papyrus.infra.gmfdiag.assistant.modelProviders">
    <modelProvider uri="model/stateMachineDiagram.assistants"/>
</extension>

</plugin>

Back to the top