Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e752f2bdb3b59e8c4a5a5037c95dbc3e41f3c04a (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
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
/**
 * Copyright (c) 2014 CEA LIST.
  * 
  * 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:
  *  CEA LIST - Initial API and implementation
 */
package org.eclipse.papyrus.uml.diagram.composite.providers;

import java.util.HashSet;
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Set;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.emf.ecore.ENamedElement;
import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.tooling.runtime.providers.DiagramElementTypeImages;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.papyrus.infra.gmfdiag.common.providers.DiagramElementTypes;
import org.eclipse.papyrus.uml.diagram.composite.edit.parts.*;
import org.eclipse.papyrus.uml.diagram.composite.part.UMLDiagramEditorPlugin;
import org.eclipse.swt.graphics.Image;
import org.eclipse.uml2.uml.UMLPackage;

/**
 * @generated
 */
public class UMLElementTypes {

	/**
	 * @generated
	 */
	private UMLElementTypes() {
	}

	/**
	 * @generated
	 */
	private static Map<IElementType, ENamedElement> elements;

	/**
	 * @generated
	 */
	private static DiagramElementTypeImages elementTypeImages = new DiagramElementTypeImages(UMLDiagramEditorPlugin.getInstance().getItemProvidersAdapterFactory());

	/**
	 * @generated
	 */
	private static Set<IElementType> KNOWN_ELEMENT_TYPES;

	/**
	 * @generated
	 */
	public static final IElementType Package_CompositeStructureDiagram = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Package_CompositeStructureDiagram"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Activity_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Activity_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Interaction_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Interaction_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ProtocolStateMachine_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ProtocolStateMachine_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType StateMachine_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.StateMachine_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType FunctionBehavior_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.FunctionBehavior_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType OpaqueBehavior_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.OpaqueBehavior_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Component_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Component_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Device_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Device_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ExecutionEnvironment_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Node_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Node_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Class_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Class_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Collaboration_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Collaboration_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Interface_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Interface_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PrimitiveType_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.PrimitiveType_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Enumeration_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Enumeration_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DataType_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DataType_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Actor_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Actor_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DeploymentSpecification_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Artifact_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InformationItem_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InformationItem_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Signal_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Signal_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType UseCase_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.UseCase_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType SignalEvent_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.SignalEvent_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType CallEvent_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.CallEvent_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType AnyReceiveEvent_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.AnyReceiveEvent_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ChangeEvent_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ChangeEvent_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeEvent_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeEvent_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DurationObservation_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DurationObservation_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeObservation_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeObservation_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType LiteralBoolean_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.LiteralBoolean_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType LiteralInteger_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.LiteralInteger_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType LiteralNull_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.LiteralNull_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType LiteralString_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.LiteralString_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType LiteralUnlimitedNatural_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.LiteralUnlimitedNatural_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType StringExpression_PackagedElementShape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.StringExpression_PackagedElementShape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType OpaqueExpression_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.OpaqueExpression_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeExpression_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeExpression_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Expression_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Expression_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Duration_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Duration_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeInterval_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeInterval_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DurationInterval_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DurationInterval_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Interval_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Interval_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InstanceValue_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InstanceValue_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Comment_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DurationConstraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DurationConstraint_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeConstraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeConstraint_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType IntervalConstraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.IntervalConstraint_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InteractionConstraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InteractionConstraint_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Constraint_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Port_BehaviorShape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Port_BehaviorShape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Port_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Port_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Parameter_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Parameter_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Property_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Property_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ConnectableElement_CollaborationRoleShape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ConnectableElement_CollaborationRoleShape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType CollaborationUse_Shape = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.CollaborationUse_Shape"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Activity_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Activity_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Interaction_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Interaction_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ProtocolStateMachine_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ProtocolStateMachine_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType StateMachine_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.StateMachine_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType FunctionBehavior_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.FunctionBehavior_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType OpaqueBehavior_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.OpaqueBehavior_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Component_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Component_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Device_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Device_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ExecutionEnvironment_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ExecutionEnvironment_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Node_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Node_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Class_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Class_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Collaboration_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Collaboration_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Interface_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Interface_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType PrimitiveType_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.PrimitiveType_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Enumeration_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Enumeration_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DataType_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DataType_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Actor_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Actor_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DeploymentSpecification_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DeploymentSpecification_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Artifact_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Artifact_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InformationItem_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InformationItem_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Signal_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Signal_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType UseCase_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.UseCase_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Comment_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DurationConstraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DurationConstraint_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeConstraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeConstraint_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType IntervalConstraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.IntervalConstraint_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InteractionConstraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InteractionConstraint_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Constraint_Shape_CN = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_Shape_CN"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Property_AttributeLabel = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Property_AttributeLabel"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Operation_OperationLabel = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Operation_OperationLabel"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType EnumerationLiteral_LiteralLabel = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.EnumerationLiteral_LiteralLabel"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Port_BehaviorEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Port_BehaviorEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Link_DescriptorEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Link_DescriptorEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Comment_AnnotatedElementEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Comment_AnnotatedElementEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Constraint_ConstrainedElementEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Constraint_ConstrainedElementEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType ComponentRealization_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.ComponentRealization_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InterfaceRealization_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InterfaceRealization_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Substitution_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Substitution_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Realization_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Realization_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Manifestation_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Manifestation_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Abstraction_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Abstraction_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Usage_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Usage_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Deployment_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Deployment_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Dependency_RoleBindingEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Dependency_RoleBindingEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Dependency_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Dependency_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Connector_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Connector_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Generalization_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Generalization_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType TimeObservation_EventEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.TimeObservation_EventEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType DurationObservation_EventEdge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.DurationObservation_EventEdge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType Representation_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.Representation_Edge"); //$NON-NLS-1$
	/**
	 * @generated
	 */
	public static final IElementType InformationFlow_Edge = getElementTypeByUniqueId("org.eclipse.papyrus.umldi.InformationFlow_Edge"); //$NON-NLS-1$

	/**
	 * @generated
	 */
	public static ImageDescriptor getImageDescriptor(ENamedElement element) {
		return elementTypeImages.getImageDescriptor(element);
	}

	/**
	 * @generated
	 */
	public static Image getImage(ENamedElement element) {
		return elementTypeImages.getImage(element);
	}

	/**
	 * @generated
	 */
	public static ImageDescriptor getImageDescriptor(IAdaptable hint) {
		return getImageDescriptor(getElement(hint));
	}

	/**
	 * @generated
	 */
	public static Image getImage(IAdaptable hint) {
		return getImage(getElement(hint));
	}

	/**
	 * Returns 'type' of the ecore object associated with the hint.
	 * 
	 * @generated
	 */
	public static synchronized ENamedElement getElement(IAdaptable hint) {
		Object type = hint.getAdapter(IElementType.class);
		if (elements == null) {
			elements = new IdentityHashMap<IElementType, ENamedElement>();

			elements.put(Package_CompositeStructureDiagram, UMLPackage.eINSTANCE.getPackage());


			elements.put(Activity_Shape, UMLPackage.eINSTANCE.getActivity());


			elements.put(Interaction_Shape, UMLPackage.eINSTANCE.getInteraction());


			elements.put(ProtocolStateMachine_Shape, UMLPackage.eINSTANCE.getProtocolStateMachine());


			elements.put(StateMachine_Shape, UMLPackage.eINSTANCE.getStateMachine());


			elements.put(FunctionBehavior_Shape, UMLPackage.eINSTANCE.getFunctionBehavior());


			elements.put(OpaqueBehavior_Shape, UMLPackage.eINSTANCE.getOpaqueBehavior());


			elements.put(Component_Shape, UMLPackage.eINSTANCE.getComponent());


			elements.put(Device_Shape, UMLPackage.eINSTANCE.getDevice());


			elements.put(ExecutionEnvironment_Shape, UMLPackage.eINSTANCE.getExecutionEnvironment());


			elements.put(Node_Shape, UMLPackage.eINSTANCE.getNode());


			elements.put(Class_Shape, UMLPackage.eINSTANCE.getClass_());


			elements.put(Collaboration_Shape, UMLPackage.eINSTANCE.getCollaboration());


			elements.put(Interface_Shape, UMLPackage.eINSTANCE.getInterface());


			elements.put(PrimitiveType_Shape, UMLPackage.eINSTANCE.getPrimitiveType());


			elements.put(Enumeration_Shape, UMLPackage.eINSTANCE.getEnumeration());


			elements.put(DataType_Shape, UMLPackage.eINSTANCE.getDataType());


			elements.put(Actor_Shape, UMLPackage.eINSTANCE.getActor());


			elements.put(DeploymentSpecification_Shape, UMLPackage.eINSTANCE.getDeploymentSpecification());


			elements.put(Artifact_Shape, UMLPackage.eINSTANCE.getArtifact());


			elements.put(InformationItem_Shape, UMLPackage.eINSTANCE.getInformationItem());


			elements.put(Signal_Shape, UMLPackage.eINSTANCE.getSignal());


			elements.put(UseCase_Shape, UMLPackage.eINSTANCE.getUseCase());


			elements.put(SignalEvent_Shape, UMLPackage.eINSTANCE.getSignalEvent());


			elements.put(CallEvent_Shape, UMLPackage.eINSTANCE.getCallEvent());


			elements.put(AnyReceiveEvent_Shape, UMLPackage.eINSTANCE.getAnyReceiveEvent());


			elements.put(ChangeEvent_Shape, UMLPackage.eINSTANCE.getChangeEvent());


			elements.put(TimeEvent_Shape, UMLPackage.eINSTANCE.getTimeEvent());


			elements.put(DurationObservation_Shape, UMLPackage.eINSTANCE.getDurationObservation());


			elements.put(TimeObservation_Shape, UMLPackage.eINSTANCE.getTimeObservation());


			elements.put(LiteralBoolean_Shape, UMLPackage.eINSTANCE.getLiteralBoolean());


			elements.put(LiteralInteger_Shape, UMLPackage.eINSTANCE.getLiteralInteger());


			elements.put(LiteralNull_Shape, UMLPackage.eINSTANCE.getLiteralNull());


			elements.put(LiteralString_Shape, UMLPackage.eINSTANCE.getLiteralString());


			elements.put(LiteralUnlimitedNatural_Shape, UMLPackage.eINSTANCE.getLiteralUnlimitedNatural());


			elements.put(StringExpression_PackagedElementShape, UMLPackage.eINSTANCE.getStringExpression());


			elements.put(OpaqueExpression_Shape, UMLPackage.eINSTANCE.getOpaqueExpression());


			elements.put(TimeExpression_Shape, UMLPackage.eINSTANCE.getTimeExpression());


			elements.put(Expression_Shape, UMLPackage.eINSTANCE.getExpression());


			elements.put(Duration_Shape, UMLPackage.eINSTANCE.getDuration());


			elements.put(TimeInterval_Shape, UMLPackage.eINSTANCE.getTimeInterval());


			elements.put(DurationInterval_Shape, UMLPackage.eINSTANCE.getDurationInterval());


			elements.put(Interval_Shape, UMLPackage.eINSTANCE.getInterval());


			elements.put(InstanceValue_Shape, UMLPackage.eINSTANCE.getInstanceValue());


			elements.put(Comment_Shape, UMLPackage.eINSTANCE.getComment());


			elements.put(DurationConstraint_Shape, UMLPackage.eINSTANCE.getDurationConstraint());


			elements.put(TimeConstraint_Shape, UMLPackage.eINSTANCE.getTimeConstraint());


			elements.put(IntervalConstraint_Shape, UMLPackage.eINSTANCE.getIntervalConstraint());


			elements.put(InteractionConstraint_Shape, UMLPackage.eINSTANCE.getInteractionConstraint());


			elements.put(Constraint_Shape, UMLPackage.eINSTANCE.getConstraint());


			elements.put(Port_BehaviorShape, UMLPackage.eINSTANCE.getPort());


			elements.put(Port_Shape, UMLPackage.eINSTANCE.getPort());


			elements.put(Parameter_Shape, UMLPackage.eINSTANCE.getParameter());


			elements.put(Property_Shape, UMLPackage.eINSTANCE.getProperty());


			elements.put(ConnectableElement_CollaborationRoleShape, UMLPackage.eINSTANCE.getConnectableElement());


			elements.put(CollaborationUse_Shape, UMLPackage.eINSTANCE.getCollaborationUse());


			elements.put(Activity_Shape_CN, UMLPackage.eINSTANCE.getActivity());


			elements.put(Interaction_Shape_CN, UMLPackage.eINSTANCE.getInteraction());


			elements.put(ProtocolStateMachine_Shape_CN, UMLPackage.eINSTANCE.getProtocolStateMachine());


			elements.put(StateMachine_Shape_CN, UMLPackage.eINSTANCE.getStateMachine());


			elements.put(FunctionBehavior_Shape_CN, UMLPackage.eINSTANCE.getFunctionBehavior());


			elements.put(OpaqueBehavior_Shape_CN, UMLPackage.eINSTANCE.getOpaqueBehavior());


			elements.put(Component_Shape_CN, UMLPackage.eINSTANCE.getComponent());


			elements.put(Device_Shape_CN, UMLPackage.eINSTANCE.getDevice());


			elements.put(ExecutionEnvironment_Shape_CN, UMLPackage.eINSTANCE.getExecutionEnvironment());


			elements.put(Node_Shape_CN, UMLPackage.eINSTANCE.getNode());


			elements.put(Class_Shape_CN, UMLPackage.eINSTANCE.getClass_());


			elements.put(Collaboration_Shape_CN, UMLPackage.eINSTANCE.getCollaboration());


			elements.put(Interface_Shape_CN, UMLPackage.eINSTANCE.getInterface());


			elements.put(PrimitiveType_Shape_CN, UMLPackage.eINSTANCE.getPrimitiveType());


			elements.put(Enumeration_Shape_CN, UMLPackage.eINSTANCE.getEnumeration());


			elements.put(DataType_Shape_CN, UMLPackage.eINSTANCE.getDataType());


			elements.put(Actor_Shape_CN, UMLPackage.eINSTANCE.getActor());


			elements.put(DeploymentSpecification_Shape_CN, UMLPackage.eINSTANCE.getDeploymentSpecification());


			elements.put(Artifact_Shape_CN, UMLPackage.eINSTANCE.getArtifact());


			elements.put(InformationItem_Shape_CN, UMLPackage.eINSTANCE.getInformationItem());


			elements.put(Signal_Shape_CN, UMLPackage.eINSTANCE.getSignal());


			elements.put(UseCase_Shape_CN, UMLPackage.eINSTANCE.getUseCase());


			elements.put(Comment_Shape_CN, UMLPackage.eINSTANCE.getComment());


			elements.put(DurationConstraint_Shape_CN, UMLPackage.eINSTANCE.getDurationConstraint());


			elements.put(TimeConstraint_Shape_CN, UMLPackage.eINSTANCE.getTimeConstraint());


			elements.put(IntervalConstraint_Shape_CN, UMLPackage.eINSTANCE.getIntervalConstraint());


			elements.put(InteractionConstraint_Shape_CN, UMLPackage.eINSTANCE.getInteractionConstraint());


			elements.put(Constraint_Shape_CN, UMLPackage.eINSTANCE.getConstraint());


			elements.put(Property_AttributeLabel, UMLPackage.eINSTANCE.getProperty());


			elements.put(Operation_OperationLabel, UMLPackage.eINSTANCE.getOperation());


			elements.put(EnumerationLiteral_LiteralLabel, UMLPackage.eINSTANCE.getEnumerationLiteral());

			elements.put(Comment_AnnotatedElementEdge, UMLPackage.eINSTANCE.getComment_AnnotatedElement());

			elements.put(Constraint_ConstrainedElementEdge, UMLPackage.eINSTANCE.getConstraint_ConstrainedElement());


			elements.put(ComponentRealization_Edge, UMLPackage.eINSTANCE.getComponentRealization());


			elements.put(InterfaceRealization_Edge, UMLPackage.eINSTANCE.getInterfaceRealization());


			elements.put(Substitution_Edge, UMLPackage.eINSTANCE.getSubstitution());


			elements.put(Realization_Edge, UMLPackage.eINSTANCE.getRealization());


			elements.put(Manifestation_Edge, UMLPackage.eINSTANCE.getManifestation());


			elements.put(Abstraction_Edge, UMLPackage.eINSTANCE.getAbstraction());


			elements.put(Usage_Edge, UMLPackage.eINSTANCE.getUsage());


			elements.put(Deployment_Edge, UMLPackage.eINSTANCE.getDeployment());


			elements.put(Dependency_RoleBindingEdge, UMLPackage.eINSTANCE.getDependency());


			elements.put(Dependency_Edge, UMLPackage.eINSTANCE.getDependency());


			elements.put(Connector_Edge, UMLPackage.eINSTANCE.getConnector());


			elements.put(Generalization_Edge, UMLPackage.eINSTANCE.getGeneralization());

			elements.put(TimeObservation_EventEdge, UMLPackage.eINSTANCE.getTimeObservation_Event());

			elements.put(DurationObservation_EventEdge, UMLPackage.eINSTANCE.getDurationObservation_Event());

			elements.put(Representation_Edge, UMLPackage.eINSTANCE.getInformationItem_Represented());


			elements.put(InformationFlow_Edge, UMLPackage.eINSTANCE.getInformationFlow());
		}
		return elements.get(type);
	}

	/**
	 * @generated
	 */
	private static IElementType getElementTypeByUniqueId(String id) {
		return ElementTypeRegistry.getInstance().getType(id);
	}

	/**
	 * @generated
	 */
	public static synchronized boolean isKnownElementType(IElementType elementType) {
		if (KNOWN_ELEMENT_TYPES == null) {
			KNOWN_ELEMENT_TYPES = new HashSet<IElementType>();
			KNOWN_ELEMENT_TYPES.add(Package_CompositeStructureDiagram);
			KNOWN_ELEMENT_TYPES.add(Activity_Shape);
			KNOWN_ELEMENT_TYPES.add(Interaction_Shape);
			KNOWN_ELEMENT_TYPES.add(ProtocolStateMachine_Shape);
			KNOWN_ELEMENT_TYPES.add(StateMachine_Shape);
			KNOWN_ELEMENT_TYPES.add(FunctionBehavior_Shape);
			KNOWN_ELEMENT_TYPES.add(OpaqueBehavior_Shape);
			KNOWN_ELEMENT_TYPES.add(Component_Shape);
			KNOWN_ELEMENT_TYPES.add(Device_Shape);
			KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape);
			KNOWN_ELEMENT_TYPES.add(Node_Shape);
			KNOWN_ELEMENT_TYPES.add(Class_Shape);
			KNOWN_ELEMENT_TYPES.add(Collaboration_Shape);
			KNOWN_ELEMENT_TYPES.add(Interface_Shape);
			KNOWN_ELEMENT_TYPES.add(PrimitiveType_Shape);
			KNOWN_ELEMENT_TYPES.add(Enumeration_Shape);
			KNOWN_ELEMENT_TYPES.add(DataType_Shape);
			KNOWN_ELEMENT_TYPES.add(Actor_Shape);
			KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape);
			KNOWN_ELEMENT_TYPES.add(Artifact_Shape);
			KNOWN_ELEMENT_TYPES.add(InformationItem_Shape);
			KNOWN_ELEMENT_TYPES.add(Signal_Shape);
			KNOWN_ELEMENT_TYPES.add(UseCase_Shape);
			KNOWN_ELEMENT_TYPES.add(SignalEvent_Shape);
			KNOWN_ELEMENT_TYPES.add(CallEvent_Shape);
			KNOWN_ELEMENT_TYPES.add(AnyReceiveEvent_Shape);
			KNOWN_ELEMENT_TYPES.add(ChangeEvent_Shape);
			KNOWN_ELEMENT_TYPES.add(TimeEvent_Shape);
			KNOWN_ELEMENT_TYPES.add(DurationObservation_Shape);
			KNOWN_ELEMENT_TYPES.add(TimeObservation_Shape);
			KNOWN_ELEMENT_TYPES.add(LiteralBoolean_Shape);
			KNOWN_ELEMENT_TYPES.add(LiteralInteger_Shape);
			KNOWN_ELEMENT_TYPES.add(LiteralNull_Shape);
			KNOWN_ELEMENT_TYPES.add(LiteralString_Shape);
			KNOWN_ELEMENT_TYPES.add(LiteralUnlimitedNatural_Shape);
			KNOWN_ELEMENT_TYPES.add(StringExpression_PackagedElementShape);
			KNOWN_ELEMENT_TYPES.add(OpaqueExpression_Shape);
			KNOWN_ELEMENT_TYPES.add(TimeExpression_Shape);
			KNOWN_ELEMENT_TYPES.add(Expression_Shape);
			KNOWN_ELEMENT_TYPES.add(Duration_Shape);
			KNOWN_ELEMENT_TYPES.add(TimeInterval_Shape);
			KNOWN_ELEMENT_TYPES.add(DurationInterval_Shape);
			KNOWN_ELEMENT_TYPES.add(Interval_Shape);
			KNOWN_ELEMENT_TYPES.add(InstanceValue_Shape);
			KNOWN_ELEMENT_TYPES.add(Comment_Shape);
			KNOWN_ELEMENT_TYPES.add(DurationConstraint_Shape);
			KNOWN_ELEMENT_TYPES.add(TimeConstraint_Shape);
			KNOWN_ELEMENT_TYPES.add(IntervalConstraint_Shape);
			KNOWN_ELEMENT_TYPES.add(InteractionConstraint_Shape);
			KNOWN_ELEMENT_TYPES.add(Constraint_Shape);
			KNOWN_ELEMENT_TYPES.add(Port_BehaviorShape);
			KNOWN_ELEMENT_TYPES.add(Port_Shape);
			KNOWN_ELEMENT_TYPES.add(Parameter_Shape);
			KNOWN_ELEMENT_TYPES.add(Property_Shape);
			KNOWN_ELEMENT_TYPES.add(ConnectableElement_CollaborationRoleShape);
			KNOWN_ELEMENT_TYPES.add(CollaborationUse_Shape);
			KNOWN_ELEMENT_TYPES.add(Activity_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Interaction_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(ProtocolStateMachine_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(StateMachine_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(FunctionBehavior_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(OpaqueBehavior_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Component_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Device_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(ExecutionEnvironment_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Node_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Class_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Collaboration_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Interface_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(PrimitiveType_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Enumeration_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(DataType_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Actor_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(DeploymentSpecification_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Artifact_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(InformationItem_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Signal_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(UseCase_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Comment_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(DurationConstraint_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(TimeConstraint_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(IntervalConstraint_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(InteractionConstraint_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Constraint_Shape_CN);
			KNOWN_ELEMENT_TYPES.add(Property_AttributeLabel);
			KNOWN_ELEMENT_TYPES.add(Operation_OperationLabel);
			KNOWN_ELEMENT_TYPES.add(EnumerationLiteral_LiteralLabel);
			KNOWN_ELEMENT_TYPES.add(Port_BehaviorEdge);
			KNOWN_ELEMENT_TYPES.add(Link_DescriptorEdge);
			KNOWN_ELEMENT_TYPES.add(Comment_AnnotatedElementEdge);
			KNOWN_ELEMENT_TYPES.add(Constraint_ConstrainedElementEdge);
			KNOWN_ELEMENT_TYPES.add(ComponentRealization_Edge);
			KNOWN_ELEMENT_TYPES.add(InterfaceRealization_Edge);
			KNOWN_ELEMENT_TYPES.add(Substitution_Edge);
			KNOWN_ELEMENT_TYPES.add(Realization_Edge);
			KNOWN_ELEMENT_TYPES.add(Manifestation_Edge);
			KNOWN_ELEMENT_TYPES.add(Abstraction_Edge);
			KNOWN_ELEMENT_TYPES.add(Usage_Edge);
			KNOWN_ELEMENT_TYPES.add(Deployment_Edge);
			KNOWN_ELEMENT_TYPES.add(Dependency_RoleBindingEdge);
			KNOWN_ELEMENT_TYPES.add(Dependency_Edge);
			KNOWN_ELEMENT_TYPES.add(Connector_Edge);
			KNOWN_ELEMENT_TYPES.add(Generalization_Edge);
			KNOWN_ELEMENT_TYPES.add(TimeObservation_EventEdge);
			KNOWN_ELEMENT_TYPES.add(DurationObservation_EventEdge);
			KNOWN_ELEMENT_TYPES.add(Representation_Edge);
			KNOWN_ELEMENT_TYPES.add(InformationFlow_Edge);
		}

		boolean result = KNOWN_ELEMENT_TYPES.contains(elementType);

		if (!result) {
			IElementType[] supertypes = elementType.getAllSuperTypes();
			for (int i = 0; !result && (i < supertypes.length); i++) {
				result = KNOWN_ELEMENT_TYPES.contains(supertypes[i]);
			}
		}

		return result;
	}

	/**
	 * @generated
	 */
	public static IElementType getElementType(String visualID) {
		if (visualID != null) {
			switch (visualID) {
			case CompositeStructureDiagramEditPart.VISUAL_ID:
				return Package_CompositeStructureDiagram;
			case ActivityCompositeEditPart.VISUAL_ID:
				return Activity_Shape;
			case InteractionCompositeEditPart.VISUAL_ID:
				return Interaction_Shape;
			case ProtocolStateMachineCompositeEditPart.VISUAL_ID:
				return ProtocolStateMachine_Shape;
			case StateMachineCompositeEditPart.VISUAL_ID:
				return StateMachine_Shape;
			case FunctionBehaviorCompositeEditPart.VISUAL_ID:
				return FunctionBehavior_Shape;
			case OpaqueBehaviorCompositeEditPart.VISUAL_ID:
				return OpaqueBehavior_Shape;
			case ComponentCompositeEditPart.VISUAL_ID:
				return Component_Shape;
			case DeviceCompositeEditPart.VISUAL_ID:
				return Device_Shape;
			case ExecutionEnvironmentCompositeEditPart.VISUAL_ID:
				return ExecutionEnvironment_Shape;
			case NodeCompositeEditPart.VISUAL_ID:
				return Node_Shape;
			case ClassCompositeEditPart.VISUAL_ID:
				return Class_Shape;
			case CollaborationCompositeEditPart.VISUAL_ID:
				return Collaboration_Shape;
			case InterfaceEditPart.VISUAL_ID:
				return Interface_Shape;
			case PrimitiveTypeEditPart.VISUAL_ID:
				return PrimitiveType_Shape;
			case EnumerationEditPart.VISUAL_ID:
				return Enumeration_Shape;
			case DataTypeEditPart.VISUAL_ID:
				return DataType_Shape;
			case ActorEditPart.VISUAL_ID:
				return Actor_Shape;
			case DeploymentSpecificationEditPart.VISUAL_ID:
				return DeploymentSpecification_Shape;
			case ArtifactEditPart.VISUAL_ID:
				return Artifact_Shape;
			case InformationItemEditPart.VISUAL_ID:
				return InformationItem_Shape;
			case SignalEditPart.VISUAL_ID:
				return Signal_Shape;
			case UseCaseEditPart.VISUAL_ID:
				return UseCase_Shape;
			case SignalEventEditPart.VISUAL_ID:
				return SignalEvent_Shape;
			case CallEventEditPart.VISUAL_ID:
				return CallEvent_Shape;
			case AnyReceiveEventEditPart.VISUAL_ID:
				return AnyReceiveEvent_Shape;
			case ChangeEventEditPart.VISUAL_ID:
				return ChangeEvent_Shape;
			case TimeEventEditPart.VISUAL_ID:
				return TimeEvent_Shape;
			case DurationObservationEditPart.VISUAL_ID:
				return DurationObservation_Shape;
			case TimeObservationEditPart.VISUAL_ID:
				return TimeObservation_Shape;
			case LiteralBooleanEditPart.VISUAL_ID:
				return LiteralBoolean_Shape;
			case LiteralIntegerEditPart.VISUAL_ID:
				return LiteralInteger_Shape;
			case LiteralNullEditPart.VISUAL_ID:
				return LiteralNull_Shape;
			case LiteralStringEditPart.VISUAL_ID:
				return LiteralString_Shape;
			case LiteralUnlimitedNaturalEditPart.VISUAL_ID:
				return LiteralUnlimitedNatural_Shape;
			case StringExpressionEditPart.VISUAL_ID:
				return StringExpression_PackagedElementShape;
			case OpaqueExpressionEditPart.VISUAL_ID:
				return OpaqueExpression_Shape;
			case TimeExpressionEditPart.VISUAL_ID:
				return TimeExpression_Shape;
			case ExpressionEditPart.VISUAL_ID:
				return Expression_Shape;
			case DurationEditPart.VISUAL_ID:
				return Duration_Shape;
			case TimeIntervalEditPart.VISUAL_ID:
				return TimeInterval_Shape;
			case DurationIntervalEditPart.VISUAL_ID:
				return DurationInterval_Shape;
			case IntervalEditPart.VISUAL_ID:
				return Interval_Shape;
			case InstanceValueEditPart.VISUAL_ID:
				return InstanceValue_Shape;
			case CommentEditPart.VISUAL_ID:
				return Comment_Shape;
			case DurationConstraintEditPart.VISUAL_ID:
				return DurationConstraint_Shape;
			case TimeConstraintEditPart.VISUAL_ID:
				return TimeConstraint_Shape;
			case IntervalConstraintEditPart.VISUAL_ID:
				return IntervalConstraint_Shape;
			case InteractionConstraintEditPart.VISUAL_ID:
				return InteractionConstraint_Shape;
			case ConstraintEditPart.VISUAL_ID:
				return Constraint_Shape;
			case BehaviorPortEditPart.VISUAL_ID:
				return Port_BehaviorShape;
			case PortEditPart.VISUAL_ID:
				return Port_Shape;
			case ParameterEditPart.VISUAL_ID:
				return Parameter_Shape;
			case PropertyPartEditPartCN.VISUAL_ID:
				return Property_Shape;
			case CollaborationRoleEditPartCN.VISUAL_ID:
				return ConnectableElement_CollaborationRoleShape;
			case CollaborationUseEditPartCN.VISUAL_ID:
				return CollaborationUse_Shape;
			case ActivityCompositeEditPartCN.VISUAL_ID:
				return Activity_Shape_CN;
			case InteractionCompositeEditPartCN.VISUAL_ID:
				return Interaction_Shape_CN;
			case ProtocolStateMachineCompositeEditPartCN.VISUAL_ID:
				return ProtocolStateMachine_Shape_CN;
			case StateMachineCompositeEditPartCN.VISUAL_ID:
				return StateMachine_Shape_CN;
			case FunctionBehaviorCompositeEditPartCN.VISUAL_ID:
				return FunctionBehavior_Shape_CN;
			case OpaqueBehaviorCompositeEditPartCN.VISUAL_ID:
				return OpaqueBehavior_Shape_CN;
			case ComponentCompositeEditPartCN.VISUAL_ID:
				return Component_Shape_CN;
			case DeviceCompositeEditPartCN.VISUAL_ID:
				return Device_Shape_CN;
			case ExecutionEnvironmentCompositeEditPartCN.VISUAL_ID:
				return ExecutionEnvironment_Shape_CN;
			case NodeCompositeEditPartCN.VISUAL_ID:
				return Node_Shape_CN;
			case ClassCompositeEditPartCN.VISUAL_ID:
				return Class_Shape_CN;
			case CollaborationCompositeEditPartCN.VISUAL_ID:
				return Collaboration_Shape_CN;
			case InterfaceEditPartCN.VISUAL_ID:
				return Interface_Shape_CN;
			case PrimitiveTypeEditPartCN.VISUAL_ID:
				return PrimitiveType_Shape_CN;
			case EnumerationEditPartCN.VISUAL_ID:
				return Enumeration_Shape_CN;
			case DataTypeEditPartCN.VISUAL_ID:
				return DataType_Shape_CN;
			case ActorEditPartCN.VISUAL_ID:
				return Actor_Shape_CN;
			case DeploymentSpecificationEditPartCN.VISUAL_ID:
				return DeploymentSpecification_Shape_CN;
			case ArtifactEditPartCN.VISUAL_ID:
				return Artifact_Shape_CN;
			case InformationItemEditPartCN.VISUAL_ID:
				return InformationItem_Shape_CN;
			case SignalEditPartCN.VISUAL_ID:
				return Signal_Shape_CN;
			case UseCaseEditPartCN.VISUAL_ID:
				return UseCase_Shape_CN;
			case CommentEditPartCN.VISUAL_ID:
				return Comment_Shape_CN;
			case DurationConstraintEditPartCN.VISUAL_ID:
				return DurationConstraint_Shape_CN;
			case TimeConstraintEditPartCN.VISUAL_ID:
				return TimeConstraint_Shape_CN;
			case IntervalConstraintEditPartCN.VISUAL_ID:
				return IntervalConstraint_Shape_CN;
			case InteractionConstraintEditPartCN.VISUAL_ID:
				return InteractionConstraint_Shape_CN;
			case ConstraintEditPartCN.VISUAL_ID:
				return Constraint_Shape_CN;
			case PropertyEditPartCLN.VISUAL_ID:
				return Property_AttributeLabel;
			case OperationEditPartCLN.VISUAL_ID:
				return Operation_OperationLabel;
			case EnumerationLiteralEditPartCLN.VISUAL_ID:
				return EnumerationLiteral_LiteralLabel;
			case BehaviorPortLinkEditPart.VISUAL_ID:
				return Port_BehaviorEdge;
			case LinkDescriptorEditPart.VISUAL_ID:
				return Link_DescriptorEdge;
			case CommentAnnotatedElementEditPart.VISUAL_ID:
				return Comment_AnnotatedElementEdge;
			case ConstraintConstrainedElementEditPart.VISUAL_ID:
				return Constraint_ConstrainedElementEdge;
			case ComponentRealizationEditPart.VISUAL_ID:
				return ComponentRealization_Edge;
			case InterfaceRealizationEditPart.VISUAL_ID:
				return InterfaceRealization_Edge;
			case SubstitutionEditPart.VISUAL_ID:
				return Substitution_Edge;
			case RealizationEditPart.VISUAL_ID:
				return Realization_Edge;
			case ManifestationEditPart.VISUAL_ID:
				return Manifestation_Edge;
			case AbstractionEditPart.VISUAL_ID:
				return Abstraction_Edge;
			case UsageEditPart.VISUAL_ID:
				return Usage_Edge;
			case DeploymentEditPart.VISUAL_ID:
				return Deployment_Edge;
			case RoleBindingEditPart.VISUAL_ID:
				return Dependency_RoleBindingEdge;
			case DependencyEditPart.VISUAL_ID:
				return Dependency_Edge;
			case ConnectorEditPart.VISUAL_ID:
				return Connector_Edge;
			case GeneralizationEditPart.VISUAL_ID:
				return Generalization_Edge;
			case TimeObservationEventEditPart.VISUAL_ID:
				return TimeObservation_EventEdge;
			case DurationObservationEventEditPart.VISUAL_ID:
				return DurationObservation_EventEdge;
			case RepresentationEditPart.VISUAL_ID:
				return Representation_Edge;
			case InformationFlowEditPart.VISUAL_ID:
				return InformationFlow_Edge;
			}
		}
		return null;
	}

	/**
	 * @generated
	 */
	public static final DiagramElementTypes TYPED_INSTANCE = new DiagramElementTypes(elementTypeImages) {

		/**
		 * @generated
		 */
		@Override
		public boolean isKnownElementType(IElementType elementType) {
			return org.eclipse.papyrus.uml.diagram.composite.providers.UMLElementTypes.isKnownElementType(elementType);
		}

		/**
		 * @generated
		 */
		@Override
		public IElementType getElementTypeForVisualId(String visualID) {
			return org.eclipse.papyrus.uml.diagram.composite.providers.UMLElementTypes.getElementType(visualID);
		}

		/**
		 * @generated
		 */
		@Override
		public ENamedElement getDefiningNamedElement(IAdaptable elementTypeAdapter) {
			return org.eclipse.papyrus.uml.diagram.composite.providers.UMLElementTypes.getElement(elementTypeAdapter);
		}
	};


	/**
	 * @generated
	 */
	public static boolean isKindOf(IElementType subtype, IElementType supertype) {
		boolean result = subtype == supertype;

		if (!result) {
			IElementType[] supertypes = subtype.getAllSuperTypes();
			for (int i = 0; !result && (i < supertypes.length); i++) {
				result = supertype == supertypes[i];
			}
		}

		return result;
	}
}

Back to the top