Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: c3cad90cecb212f2cf451c5b31eb011783a34204 (plain) (tree)
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664



















































                                                                                                           
                                                        


















































































































































































































































                                                                                                                             
















                                                                                











































































































































































                                                                                                           
                                                     

















































































                                                                                                                




















                                                                                          

































































                                                                                                                   



















                                                                                            






















































































































                                                                                                             

                                                                       




























































































































































































































































































                                                                                                                
                                                        





















































































                                                                                                                   























                                                                                             





































































































































































































                                                                                                                      









                                                                                               







































































































































































































































































































































































































































































                                                                                                                          









































                                                                                        























                                                                                             

























































































































                                                                                                                 
                                 





































































































                                                                                                                          









                                                                                            


























































































































































































































































































































                                                                                                                
 








































                                                                                      



















































                                                                                            































































                                                                                                         






































                                                                                                







































































































































                                                                                             















































































































































































































































































































































                                                                                                        
         






























                                                                                 
                                                  

                                                                      
                         






                                                                                























                                                                             
































































































































































































































































                                                                                                                 
                                                   





                                                                                        


















                                                                                                                        








































































































































































































                                                                                                



                                      

























































































                                             
































                                                                                                               












































                                                                                                               

            





























































































































































































































































































































































































































































































































































































































































































































































































































                                                                                           
            










                                                                                           






                                                                                                      






                                                                                                                


























                                                                                                   
                   
         
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
   <extension
      point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">
   <contributionItemProvider
         checkPluginLoaded="false"
         class="org.eclipse.papyrus.uml.diagram.menu.actions.gmf.CustomContributionItemProvider">
      <Priority
            name="High">
      </Priority>
      <!-- we rewrite this action, because the backgound of the note is black-->
      <popupContribution
            class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">
         <popupAction
               id="customAddNoteLinkAction"
               path="/diagramAddmenu/addDiagramGeneralGroup">
         </popupAction>
      </popupContribution>
   </contributionItemProvider>
</extension>
<extension
      id="ID:DiagramMenuDefinition"
      name="Name:DiagramMenuDefinition"
      point="org.eclipse.ui.menus">
   <menuContribution
         allPopups="false"
         locationURI="menu:org.eclipse.ui.main.menu?after=edit">
      <menu
            icon="icons/papyrus.png"
            id="org.eclipse.papyrus.uml.diagram.ui.menu"
            label="&amp;Diagram"
            tooltip="Diagram Menu">
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </menu>
   </menuContribution>
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?after=filtersMenu">
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.select.menu"
            label="Se&amp;lect"
            tooltip="Select Menu">
         <command
               commandId="org.eclipse.ui.edit.selectAll"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.select.all"
               label="&amp;All"
               style="push"
               tooltip="Select All">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllShapesCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectshapes.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.select.all.shapes"
               label="All &amp;Shapes"
               style="push"
               tooltip="Select All Shapes">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllConnectorsCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectconnectors.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.select.all.connectors"
               label="All &amp;Connectors"
               style="push"
               tooltip="Select All Connectors">
         </command>
         <visibleWhen
               checkEnabled="true">
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
               <with
                     variable="selection">
                  <and>
                     <count
                           value="1">
                     </count>
                     <iterate>
                        <instanceof
                              value="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart">
                        </instanceof>
                     </iterate>
                  </and>
               </with>
            </and>
         </visibleWhen>
      </menu>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.arrange.all"
            label="Arran&amp;ge All"
            style="push"
            tooltip="Arrange All">
         <visibleWhen
               checkEnabled="true">
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
               <with
                     variable="selection">
                  <and>
                     <count
                           value="1">
                     </count>
                     <iterate>
                        <instanceof
                              value="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart">
                        </instanceof>
                     </iterate>
                  </and>
               </with>
            </and>
         </visibleWhen>
      </command>
      <menu
            icon="icons/papyrus.png"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format"
            label="For&amp;mat"
            tooltip="Papyrus Format Menu">
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </menu>
      <menu
            icon="icons/papyrus.png"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters"
            label="F&amp;ilters"
            tooltip="Papyrus Filters Menu">
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.end.separator">
      </separator>
   </menuContribution>
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?after=endFilterMenu">
      <menu
            icon="icons/papyrus.png"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.view"
            label="&amp;View"
            tooltip="Papyrus View Menu">
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.providers/icons/zoomplus.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.zoom"
            label="&amp;Zoom"
            tooltip="Zoom Menu">
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </menu>
   </menuContribution>
   <menuContribution
         locationURI="toolbar:org.eclipse.ui.main.toolbar?after=org.eclipse.papyrus.uml.diagram.ui.toolbar">
      <toolbar
            id="org.eclipes.papyrus.menu.toolbar"
            label="Papyrus Toolbar Action">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/line_style_group.gif"
               id="org.eclipse.papyrus.menu.line.style.toolbar.command"
               style="pulldown"
               tooltip="Line Style Action">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.toolbar.separator0"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/copy_appearance_properties.gif"
               label="Apply Appearance &amp;Properties"
               style="push"
               tooltip="Apply the applicable appearance properties of the last selected shape to the other selected shapes.">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.toolbar.separator1"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
               id="org.eclipse.papyrus.menu.select.toolbar.command"
               style="pulldown"
               tooltip="Select Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
               id="org.eclipse.papyrus.menu.arrange.toolbar.command"
               style="pulldown"
               tooltip="Arrange Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="icons/alignleft.gif"
               id="org.eclipse.papyrus.menu.alignment.toolbar.command"
               style="pulldown"
               tooltip="Alignment Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="icons/textAlignLeft.png"
               id="org.eclipse.papyrus.menu.text_alignment.toolbar.command"
               style="pulldown"
               tooltip="Text Alignment Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="icons/fantom.gif"
               id="org.eclipse.papyrus.menu.showhide.toolbar.command"
               style="pulldown"
               tooltip="Show/Hide Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="icons/horizontal_by_left.gif"
               id="org.eclipse.papyrus.menu.routing.toolbar.command"
               style="pulldown"
               tooltip="Routing Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
               icon="icons/distribute_horizontally.gif"
               id="org.eclipse.papyrus.menu.distribute.toolbar.command"
               style="pulldown"
               tooltip="Distribute Actions">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.toolbar.separator2"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SnapBack"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/snapback.gif"
               label="&amp;Snap Back"
               style="push"
               tooltip="Reset the element to its initial location">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.autosize"
               icon="icons/autosize.gif"
               style="push"
               tooltip="Auto Size">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.toolbar.same.size.command"
               icon="icons/size_to_control.gif"
               id="org.eclipse.papyrus.menu.size.toolbar.command"
               style="pulldown"
               tooltip="Make Same Size">
            <visibleWhen>
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </command>
                  <dynamic
               class="org.eclipse.papyrus.uml.diagram.menu.toolbar.ZoomToolbar"
               id="zoomToolBar">
            <visibleWhen
                  checkEnabled="true">
               <and>
                  <with
                  variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
               </and>
            </visibleWhen>
         </dynamic>
         <visibleWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </toolbar>
   </menuContribution>
</extension>
<extension
      point="org.eclipse.ui.menus">
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.line.style.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.rectilinear"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/rectilinear.gif"
            id="org.eclipse.papyrus.menu.line.style.toolbar.rectilinear"
            label="&amp;Rectilinear Style Routing"
            style="toggle"
            tooltip="Change routing to rectilinear style for connectors">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.oblique"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/oblique.gif"
            id="org.eclipse.papyrus.menu.line.style.toolbar.oblique"
            label="&amp;Oblique Style Routing"
            style="toggle"
            tooltip="Change routing to oblique style for connectors">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.tree"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/tree.gif"
            id="org.eclipse.papyrus.menu.line.style.toolbar.tree"
            label="&amp;Tree Style Routing"
            style="toggle"
            tooltip="Change routing to tree style for connectors">
      </command>
      <separator
            name="org.eclipse.papyrus.menu.line.style.toolbar.separator0"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.removebendpoint"
            icon="icons/no_bendpoints.gif"
            id="org.eclipse.papyrus.menu.line.style.toolbar.no.bendpoint"
            label="Remove &amp;all bendpoints"
            style="push"
            tooltip="Remove all bendpoints on the selected connectors">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.select.toolbar.command">
      <command
            commandId="org.eclipse.ui.edit.selectAll"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
            label="Select &amp;All"
            style="push"
            tooltip="Select All">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllShapesCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectshapes.gif"
            label="Select All &amp;Shapes"
            style="push"
            tooltip="Select All Shapes">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllConnectorsCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectconnectors.gif"
            label="Select All &amp;Connectors"
            style="push"
            tooltip="Select All Connectors">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.arrange.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
            label="Arran&amp;ge All"
            style="push"
            tooltip="Arrange All">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeSelectionCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeselected.gif"
            label="Arrange &amp;Selection"
            style="push"
            tooltip="Arrange Selection">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.alignment.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.left"
            icon="icons/alignleft.gif"
            label="Align &amp;Left"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.center"
            icon="icons/aligncenter.gif"
            label="Align &amp;Center"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.right"
            icon="icons/alignright.gif"
            label="Align &amp;Right"
            style="push">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.alignment.pulldown.separator"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.bottom"
            icon="icons/alignbottom.gif"
            label="Align &amp;Bottom"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.middle"
            icon="icons/alignmid.gif"
            label="Align &amp;Middle"

            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.top"
            icon="icons/aligntop.gif"
            label="Align &amp;Top"
            style="push">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.text_alignment.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.left"
            icon="icons/textAlignLeft.png"
            label="Text Align &amp;Left"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.center"
            icon="icons/textAlignCenter.png"
            label="Text Align &amp;Center"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.right"
            icon="icons/textAlignRight.png"
            label="Text Align &amp;Right"
            style="push">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.showhide.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand"
            icon="icons/fantomContents.gif"
            label="Show/Hide &amp;Contents"
            style="push"
            tooltip="The Show/Hide Contents Action">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand"
            icon="icons/fantomCompartment.gif"
            label="Show/Hide Com&amp;partments"
            style="push"
            tooltip="The Show/Hide Compartments Action">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowRelatedLinkBetweenSelectedElementsCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowAllRelatedLinkCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SortFilterCompartmentItemsCommand"
            helpContextId="ActionToolTipText"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/sortfilter.gif"
            label="Sort/&amp;Filter Compartments Items..."
            style="push"
            tooltip="Sort or Filter Compartments Items for this shape">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
      <separator
            name="org.eclipse.papyrus.menu.showhide.toolbar.separator1"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.toggleCanonical"
            label="Synchronized with Model"
            style="toggle"
            tooltip="Automatically synchronize contents with the underlying model elements">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
      <separator
            name="org.eclipse.papyrus.menu.showhide.toolbar.separator0"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.show.all"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/showconnector.gif"
            id="org.eclipse.papyrus.menu.showhide.toolbar.all.connector.label"
            label="&amp;All Connector Labels"
            style="push"
            tooltip="Display all labels on the selected connectors">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.hide.all"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/hideconnector.gif"
            id="org.eclipse.papyrus.menu.showhide.toolbar.no.connector.label"
            label="N&amp;o Connector Labels"
            style="push"
            tooltip="Hide all labels on the selected Connections">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.manager"
            icon="icons/manage_connector_label.gif"
            id="org.eclipse.papyrus.menu.showhide.toolbar.manage.connector.label"
            label="&amp;Manage Connector Labels"
            style="push"
            tooltip="Manage the labels to display for the selected connections">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.routing.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.left"
            icon="icons/horizontal_by_left.gif"
            label="Set Horizontal By &amp;Left"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.right"
            icon="icons/horizontal_by_right.gif"
            label="Set Horizontal By &amp;Right"
            style="push">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.routing.pulldown.separator"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.top"
            icon="icons/vertical_by_top.gif"
            label="Set Vertical By &amp;Top"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.bottom"
            icon="icons/vertical_by_bottom.gif"
            label="Set Vertical By &amp;Bottom"
            style="push">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.distribute.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally"
            icon="icons/distribute_horizontally.gif"
            label="Distribute Nodes/Links &amp;Horizontally"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally_between_nodesly"
            icon="icons/distribute_horizontally_between_nodes.gif"
            label="Distribute Nodes/Links H&amp;orizontally Between 2 Nodes"
            style="push">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.distribute.pulldown.separator"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically"
            icon="icons/distibute_vertically.gif"
            label="Distribute Nodes/Links &amp;Vertically"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically_between_nodes"
            icon="icons/distribute_vertically_between_nodes.gif"
            label="Distribute Nodes/Links V&amp;ertically Between 2 Nodes"
            style="push">
      </command>
   </menuContribution>
   <menuContribution
         locationURI="menu:org.eclipse.papyrus.menu.size.toolbar.command">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.both"
            icon="icons/size_to_control.gif"
            label="&amp;Both"
            style="push"
            tooltip="Set the dimension of the last selected element">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.height"
            icon="icons/size_to_control_height.gif"
            label="&amp;Height"
            style="push"
            tooltip="Set the height of the last selected element">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.width"
            icon="icons/size_to_control_width.gif"
            label="&amp;Width"
            style="push"
            tooltip="Set the width of the last selected element">
      </command>
   </menuContribution>
</extension>
<extension
      point="org.eclipse.ui.menus">
   <menuContribution
         allPopups="false"
         locationURI="menu:org.eclipse.papyrus.uml.diagram.ui.menu">   
      
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.FontCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/font_color.gif"
            label="&amp;Font..."
            style="push"
            tooltip="Font">
         <visibleWhen
               checkEnabled="false">
         </visibleWhen>
      </command>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/fill_color.gif"
            label="Fill &amp;Color"
            tooltip="Fill Color">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.white.command"
                            icon="icons/colors/white.gif"
               label="White"
               style="push"
               tooltip="White">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.black.command"
               icon="icons/colors/black.gif"
               label="Black"
               style="push"
               tooltip="Black">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.lightgray.command"
               icon="icons/colors/light_gray.gif"
               label="Light Gray"
               style="push"
               tooltip="Light Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.gray.command"
               icon="icons/colors/gray.gif"
               label="Gray"
               style="push"
               tooltip="Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.darkgray.command"
               icon="icons/colors/dark_gray.gif"
               label="Dark Gray"
               style="push"
               tooltip="Dark Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.red.command"
               icon="icons/colors/red.gif"
               label="Red"
               style="push"
               tooltip="Red">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.green.command"
               icon="icons/colors/green.gif"
               label="Green"
               style="push"
               tooltip="Green">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.blue.command"
               icon="icons/colors/blue.gif"
               label="Blue"
               style="push"
               tooltip="Blue">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.yellow.command"
               icon="icons/colors/yellow.gif"
               label="Yellow"
               style="push"
               tooltip="Yellow">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.magenta.command"
               icon="icons/colors/magenta.gif"
               label="Magenta"
               style="push"
               tooltip="Magenta">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.cyan.command"
               icon="icons/colors/cyan.gif"
               label="Cyan"
               style="push"
               tooltip="Cyan">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.pink.command"
               icon="icons/colors/pink.gif"
               label="Pink"
               style="push"
               tooltip="Pink">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.orange.command"
               icon="icons/colors/orange.gif"
               label="Orange"
               style="push"
               tooltip="Orange">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.fill.color.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.defaultcolor.command"
               label="&amp;Default Color"
               style="push"
               tooltip="Default Colors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.morecolors.command"
               label="&amp;More colors..."
               style="push"
               tooltip="More Colors">
         </command>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/line_color.gif"
            label="Li&amp;ne Color"
            tooltip="Line Color">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.white.command"
               icon="icons/colors/white.gif"
               label="White"
               style="push"
               tooltip="White">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.black.command"
               icon="icons/colors/black.gif"
               label="Black"
               style="push"
               tooltip="Black">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.lightgray.command"
               icon="icons/colors/light_gray.gif"
               label="Light Gray"
               style="push"
               tooltip="Light Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.gray.command"
               icon="icons/colors/gray.gif"
               label="Gray"
               style="push"
               tooltip="Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.darkgray.command"
               icon="icons/colors/dark_gray.gif"
               label="Dark Gray"
               style="push"
               tooltip="Dark Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.red.command"
               icon="icons/colors/red.gif"
               label="Red"
               style="push"
               tooltip="Red">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.green.command"
               icon="icons/colors/green.gif"
               label="Green"
               style="push"
               tooltip="Green">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.blue.command"
               icon="icons/colors/blue.gif"
               label="Blue"
               style="push"
               tooltip="Blue">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.yellow.command"
               icon="icons/colors/yellow.gif"
               label="Yellow"
               style="push"
               tooltip="Yellow">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.magenta.command"
               icon="icons/colors/magenta.gif"
               label="Magenta"
               style="push"
               tooltip="Magenta">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.cyan.command"
               icon="icons/colors/cyan.gif"
               label="Cyan"
               style="push"
               tooltip="Cyan">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.pink.command"
               icon="icons/colors/pink.gif"
               label="Pink"
               style="push"
               tooltip="Pink">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.orange.command"
               icon="icons/colors/orange.gif"
               label="Orange"
               style="push"
               tooltip="Orange">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.line.color.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.defaultcolor.command"
               label="&amp;Default Color"
               style="push"
               tooltip="Default Colors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.morecolors.command"
               label="&amp;More colors..."
               style="push"
               tooltip="More Colors">
         </command>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/line_style_group.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.menu"
            label="Line &amp;Style"
            tooltip="Line Style">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.rectilinear"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/rectilinear.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.rectilinear"
               label="&amp;Rectilinear Style Routing"
               style="toggle"
               tooltip="Change routing to rectilinear style for connectors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.oblique"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/oblique.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.oblique"
               label="&amp;Oblique Style Routing"
               style="toggle"
               tooltip="Change routing to oblique style for connectors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.tree"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/tree.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.tree"
               label="&amp;Tree Style Routing"
               style="toggle"
               tooltip="Change routing to tree style for connectors">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.separator0"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.removebendpoint"
               icon="icons/no_bendpoints.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.line.style.no.bendpoint"
               label="Remove &amp;all bendpoints"
               style="push"
               tooltip="Remove all bendpoints on the selected connectors">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.separator0"
            visible="true">
      </separator>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
            label="Se&amp;lect"
            tooltip="Select Menu">
         <command
               commandId="org.eclipse.ui.edit.selectAll"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectall.gif"
               label="&amp;All"
               style="push"
               tooltip="Select All">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllShapesCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectshapes.gif"
               label="All &amp;Shapes"
               style="push"
               tooltip="Select All Shapes">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllConnectorsCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/selectconnectors.gif"
               label="All &amp;Connectors"
               style="push"
               tooltip="Select All Connectors">
         </command>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
            label="A&amp;rrange"
            tooltip="Arrange Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
               label="&amp;All"
               style="push"
               tooltip="Arrange All">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeSelectionCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeselected.gif"
               label="&amp;Selection"
               style="push"
               tooltip="Arrange Selection">
         </command>
      </menu>
      <menu
            icon="icons/alignleft.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.alignMenu"
            label="Ali&amp;gnment"
            tooltip="Alignement Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.left"
               icon="icons/alignleft.gif"
               label="Align &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.center"
               icon="icons/aligncenter.gif"
               label="Align &amp;Center"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.right"
               icon="icons/alignright.gif"
               label="Align &amp;Right"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.papyrus.alignment.menu.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.bottom"
               icon="icons/alignbottom.gif"
               label="Align &amp;Bottom"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.middle"
               icon="icons/alignmid.gif"
               label="Align &amp;Middle"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.top"
               icon="icons/aligntop.gif"
               label="Align &amp;Top"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/textAlignLeft.png"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.textAlignMenu"
            label="Text Alignment"
            tooltip="Text Alignement Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.left"
               icon="icons/textAlignLeft.png"
               label="Text Align &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.center"
               icon="icons/textAlignCenter.png"
               label="Text Align &amp;Center"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.right"
               icon="icons/textAlignRight.png"
               label="Text Align &amp;Right"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/horizontal_by_left.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.routingMenu"
            label="&amp;Routing"
            tooltip="Routing Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.left"
               icon="icons/horizontal_by_left.gif"
               label="Set Horizontal By &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.right"
               icon="icons/horizontal_by_right.gif"
               label="Set Horizontal By &amp;Right"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.papyrus.menu.separator1"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.top"
               icon="icons/vertical_by_top.gif"
               label="Set Vertical By &amp;Top"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.bottom"
               icon="icons/vertical_by_bottom.gif"
               label="Set Vertical By &amp;Bottom"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/distribute_horizontally.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.distributeMenu"
            label="&amp;Distribution"
            tooltip="Distribute Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally"
               icon="icons/distribute_horizontally.gif"
               label="Distribute Nodes/Links &amp;Horizontally"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally_between_nodesly"
               icon="icons/distribute_horizontally_between_nodes.gif"
               label="Distribute Nodes/Links H&amp;orizontally Between 2 Nodes"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.distribute.menu.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically"
               icon="icons/distibute_vertically.gif"
               label="Distribute Nodes/Links &amp;Vertically"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically_between_nodes"
               icon="icons/distribute_vertically_between_nodes.gif"
               label="Distribute Nodes/Links V&amp;ertically Between 2 Nodes"
               style="push">
         </command>
      </menu>
      <menu
            label="&amp;Order"
            tooltip="Order">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringToFrontCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/bring_to_front.gif"
               label="Bring To &amp;Front"
               style="push"
               tooltip="Bring To Front">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendToBackCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/send_to_back.gif"
               label="Send To &amp;Back"
               style="push"
               tooltip="Send To Back">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringForwardCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/bring_forward.gif"
               label="Bring F&amp;orward"
               style="push"
               tooltip="Bring Forward">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendBackwardCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/send_backward.gif"
               label="Send B&amp;ackward"
               style="push"
               tooltip="Send Backward">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.separator1"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SnapBack"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/snapback.gif"
            label="&amp;Snap Back"
            style="push"
            tooltip="Reset the element to its initial location">
         <visibleWhen
               checkEnabled="false">
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.autosize"
            icon="icons/autosize.gif"
            label="&amp;Auto Size"
            style="push"
            tooltip="Auto Size">
      </command>
      <menu
            icon="icons/size_to_control.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.sameSizeMenu"
            label="&amp;Make Same Size"
            tooltip="Make Same Size Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.both"
               icon="icons/size_to_control.gif"
               label="&amp;Both"
               style="push"
               tooltip="Set the dimension of the last selected element">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.height"
               icon="icons/size_to_control_height.gif"
               label="&amp;Height"
               style="push"
               tooltip="Set the height of the last selected element">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.width"
               icon="icons/size_to_control_width.gif"
               label="&amp;Width"
               style="push"
               tooltip="Set the width of the last selected element">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.separator2"
            visible="true">
      </separator>
      <menu
            icon="icons/fantom.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu"
            label="&amp;Filters"
            tooltip="Filters Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand"
               icon="icons/fantomContents.gif"
               id="showh"
               label="Show/Hide &amp;Contents"
               style="push"
               tooltip="The Show/Hide Contents Action">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand"
               icon="icons/fantomCompartment.gif"
               label="Show/Hide &amp;Compartments"
               style="push"
               tooltip="The Show/Hide Compartments Action">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowRelatedLinkBetweenSelectedElementsCommand"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SortFilterCompartmentItemsCommand"
               helpContextId="ActionToolTipText"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/sortfilter.gif"
               label="Sort/&amp;Filter Compartments Items..."
               style="push"
               tooltip="Sort or Filter Compartments Items for this shape">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu.separator1"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.toggleCanonical"
               label="Synchronized with Model"
               style="toggle"
               tooltip="Automatically synchronize contents with the underlying model elements">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu.separator0"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.show.all"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/showconnector.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu.all.connector.label"
               label="&amp;All Connector Labels"
               style="push"
               tooltip="Display all labels on the selected connectors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.hide.all"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/hideconnector.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu.no.connector.label"
               label="N&amp;o Connector Labels"
               style="push"
               tooltip="Hide all labels on the selected Connections">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.manager"
               icon="icons/manage_connector_label.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.menu.filtersMenu.manage.connector.label"
               label="&amp;Manage Connector Labels"
               style="push"
               tooltip="Manage the labels to display for the selected connections">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.separator3"
            visible="true">
      </separator>
      <menu
            label="&amp;View"
            tooltip="This Menu provides Action for the View">
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewGridCommand"
               label="&amp;Grid"
               style="toggle"
               tooltip="Toggle the grid lines on the diagram">
         </command>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewRulersCommand"
               label="&amp;Rulers"
               style="toggle"
               tooltip="Toggle the rulers on the diagram">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.view.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewPageBreaksCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/viewpagebreaks.gif"
               label="&amp;Page Breaks"
               style="toggle"
               tooltip="Show the page breaks on the diagram">
         </command>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.RecalculatePageBreaksCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/recalcpagebreaks.gif"
               label="&amp;Recalculate Page Breaks"
               style="push"
               tooltip="Recalculate Page Breaks">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.view.separator1"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.SnapToGridCommand"
               label="&amp;Snap to Grid"
               style="toggle"
               tooltip="Toggle Snap to Grid">
         </command>
      </menu>
       <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.providers/icons/zoomplus.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.zoomMenu"
            label="&amp;Zoom"
            tooltip="Zoom Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomplus.gif"
               label="Zoom &amp;In"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomOutCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomminus.gif"
               label="Zoom &amp;Out"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.Zoom100Command"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoom100.gif"
               label="Zoom &amp;to 100%"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomFitCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
               label="Zoom to &amp;Fit"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomWidthCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
               label="Fit to &amp;Width"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomHeightCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
               label="Fit to &amp;Height"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomSelectionCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
               label="Fit to &amp;Selection"
               style="push">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.separator4"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/copy_appearance_properties.gif"
            label="Apply Appearance &amp;Properties"
            style="push"
            tooltip="Apply the applicable appearance properties of the last selected shape to the other selected shapes.">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
   </menuContribution>
</extension>
<extension
      point="org.eclipse.ui.menus">
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.papyrus.uml.diagram.ui.popupmenu.format">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.FontCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/font_color.gif"
            label="&amp;Font..."
            style="push"
            tooltip="Font">
         <visibleWhen
               checkEnabled="false">
         </visibleWhen>
      </command>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/fill_color.gif"
            label="Fill &amp;Color"
            tooltip="Fill Color">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.white.command"
               icon="icons/colors/white.gif"
               label="White"
               style="push"
               tooltip="White">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.black.command"
               icon="icons/colors/black.gif"
               label="Black"
               style="push"
               tooltip="Black">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.lightgray.command"
               icon="icons/colors/light_gray.gif"
               label="Light Gray"
               style="push"
               tooltip="Light Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.gray.command"
               icon="icons/colors/gray.gif"
               label="Gray"
               style="push"
               tooltip="Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.darkgray.command"
               icon="icons/colors/dark_gray.gif"
               label="Dark Gray"
               style="push"
               tooltip="Dark Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.red.command"
               icon="icons/colors/red.gif"
               label="Red"
               style="push"
               tooltip="Red">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.green.command"
               icon="icons/colors/green.gif"
               label="Green"
               style="push"
               tooltip="Green">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.blue.command"
               icon="icons/colors/blue.gif"
               label="Blue"
               style="push"
               tooltip="Blue">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.yellow.command"
               icon="icons/colors/yellow.gif"
               label="Yellow"
               style="push"
               tooltip="Yellow">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.magenta.command"
               icon="icons/colors/magenta.gif"
               label="Magenta"
               style="push"
               tooltip="Magenta">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.cyan.command"
               icon="icons/colors/cyan.gif"
               label="Cyan"
               style="push"
               tooltip="Cyan">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.pink.command"
               icon="icons/colors/pink.gif"
               label="Pink"
               style="push"
               tooltip="Pink">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.orange.command"
               icon="icons/colors/orange.gif"
               label="Orange"
               style="push"
               tooltip="Orange">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.fill.color.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.defaultcolor.command"
               label="&amp;Default Color"
               style="push"
               tooltip="Default Colors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.morecolors.command"
               label="&amp;More colors..."
               style="push"
               tooltip="More Colors">
         </command>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/line_color.gif"
            label="Li&amp;ne Color"
            tooltip="Line Color">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.white.command"
               icon="icons/colors/white.gif"
               label="White"
               style="push"
               tooltip="White">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.black.command"
               icon="icons/colors/black.gif"
               label="Black"
               style="push"
               tooltip="Black">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.lightgray.command"
               icon="icons/colors/light_gray.gif"
               label="Light Gray"
               style="push"
               tooltip="Light Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.gray.command"
               icon="icons/colors/gray.gif"
               label="Gray"
               style="push"
               tooltip="Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.darkgray.command"
               icon="icons/colors/dark_gray.gif"
               label="Dark Gray"
               style="push"
               tooltip="Dark Gray">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.red.command"
               icon="icons/colors/red.gif"
               label="Red"
               style="push"
               tooltip="Red">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.green.command"
               icon="icons/colors/green.gif"
               label="Green"
               style="push"
               tooltip="Green">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.blue.command"
               icon="icons/colors/blue.gif"
               label="Blue"
               style="push"
               tooltip="Blue">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.yellow.command"
               icon="icons/colors/yellow.gif"
               label="Yellow"
               style="push"
               tooltip="Yellow">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.magenta.command"
               icon="icons/colors/magenta.gif"
               label="Magenta"
               style="push"
               tooltip="Magenta">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.cyan.command"
               icon="icons/colors/cyan.gif"
               label="Cyan"
               style="push"
               tooltip="Cyan">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.pink.command"
               icon="icons/colors/pink.gif"
               label="Pink"
               style="push"
               tooltip="Pink">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.orange.command"
               icon="icons/colors/orange.gif"
               label="Orange"
               style="push"
               tooltip="Orange">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.line.color.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.defaultcolor.command"
               label="&amp;Default Color"
               style="push"
               tooltip="Default Colors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.morecolors.command"
               label="&amp;More colors..."
               style="push"
               tooltip="More Colors">
         </command>
      </menu>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/line_style_group.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.menu"
            label="Line &amp;Style"
            tooltip="Line Style">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.rectilinear"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/rectilinear.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.rectilinear"
               label="&amp;Rectilinear Style Routing"
               style="toggle"
               tooltip="Change routing to rectilinear style for connectors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.oblique"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/oblique.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.oblique"
               label="&amp;Oblique Style Routing"
               style="toggle"
               tooltip="Change routing to oblique style for connectors">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.tree"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/tree.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.tree"
               label="&amp;Tree Style Routing"
               style="toggle"
               tooltip="Change routing to tree style for connectors">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.separator0"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.removebendpoint"
               icon="icons/no_bendpoints.gif"
               id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.line.style.no.bendpoint"
               label="Remove &amp;all bendpoints"
               style="push"
               tooltip="Remove all bendpoints on the selected connectors">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.popup.separator0"
            visible="true">
      </separator>
      <menu
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
            label="A&amp;rrange"
            tooltip="Arrange Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeall.gif"
               label="&amp;All"
               style="push"
               tooltip="Arrange All">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeSelectionCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/arrangeselected.gif"
               label="&amp;Selection"
               style="push"
               tooltip="Arrange Selection">
         </command>
      </menu>
      <menu
            icon="icons/alignleft.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.alignMenu"
            label="Ali&amp;gnment"
            tooltip="Alignement Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.left"
               icon="icons/alignleft.gif"
               label="Align &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.center"
               icon="icons/aligncenter.gif"
               label="Align &amp;Center"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.right"
               icon="icons/alignright.gif"
               label="Align &amp;Right"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.papyrus.alignment.popup.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.bottom"
               icon="icons/alignbottom.gif"
               label="Align &amp;Bottom"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.middle"
               icon="icons/alignmid.gif"
               label="Align &amp;Middle"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.top"
               icon="icons/aligntop.gif"
               label="Align &amp;Top"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/textAlignLeft.png"
            id="org.eclipse.papyrus.uml.diagram.ui.menu.textAlignMenu"
            label="Text Alignment"
            tooltip="Text Alignement Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.left"
               icon="icons/textAlignLeft.png"
               label="Text Align &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.center"
               icon="icons/textAlignCenter.png"
               label="Text Align &amp;Center"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.right"
               icon="icons/textAlignRight.png"
               label="Text Align &amp;Right"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/horizontal_by_left.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.routingMenu"
            label="&amp;Routing"
            tooltip="Routing Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.left"
               icon="icons/horizontal_by_left.gif"
               label="Set Horizontal By &amp;Left"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.right"
               icon="icons/horizontal_by_right.gif"
               label="Set Horizontal By &amp;Right"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.routing.popup.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.top"
               icon="icons/vertical_by_top.gif"
               label="Set Vertical By &amp;Top"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.bottom"
               icon="icons/vertical_by_bottom.gif"
               label="Set Vertical By &amp;Bottom"
               style="push">
         </command>
      </menu>
      <menu
            icon="icons/distribute_horizontally.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.distributeMenu"
            label="&amp;Distribution"
            tooltip="Distribute Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally"
               icon="icons/distribute_horizontally.gif"
               label="Distribute Nodes/Links &amp;Horizontally"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally_between_nodesly"
               icon="icons/distribute_horizontally_between_nodes.gif"
               label="Distribute Nodes/Links H&amp;orizontally Between 2 Nodes"
               style="push">
         </command>
         <separator
               name="org.eclipse.papyrus.uml.diagram.menu.distribute.popup.separator"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically"
               icon="icons/distibute_vertically.gif"
               label="Distribute Nodes/Links &amp;Vertically"
               style="push">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically_between_nodes"
               icon="icons/distribute_vertically_between_nodes.gif"
               label="Distribute Nodes/Links V&amp;ertically Between 2 Nodes"
               style="push">
         </command>
      </menu>
      <menu
            label="&amp;Order"
            tooltip="Order">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringToFrontCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/bring_to_front.gif"
               label="Bring To &amp;Front"
               style="push"
               tooltip="Bring To Front">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendToBackCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/send_to_back.gif"
               label="Send To &amp;Back"
               style="push"
               tooltip="Send To Back">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringForwardCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/bring_forward.gif"
               label="Bring F&amp;orward"
               style="push"
               tooltip="Bring Forward">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendBackwardCommand"
               icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/send_backward.gif"
               label="Send B&amp;ackward"
               style="push"
               tooltip="Send Backward">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.popup.separator1"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SnapBack"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/snapback.gif"
            label="&amp;Snap Back"
            style="push"
            tooltip="Reset the element to its initial location">
         <visibleWhen
               checkEnabled="false">
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </visibleWhen>
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.command.autosize"
            icon="icons/autosize.gif"
            label="&amp;Autosize"
            style="push"
            tooltip="Auto Size">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
      <menu
            icon="icons/size_to_control.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.format.sameSizeMenu"
            label="&amp;Make Same Size"
            tooltip="Make Same Size Menu">
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.both"
               icon="icons/size_to_control.gif"
               label="&amp;Both"
               style="push"
               tooltip="Set the dimension of the last selected element">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.height"
               icon="icons/size_to_control_height.gif"
               label="&amp;Height"
               style="push"
               tooltip="Set the height of the last selected element">
         </command>
         <command
               commandId="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.width"
               icon="icons/size_to_control_width.gif"
               label="&amp;Width"
               style="push"
               tooltip="Set the width of the last selected element">
         </command>
      </menu>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.popup.separator2"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/copy_appearance_properties.gif"
            label="Apply Appearance &amp;Properties"
            style="push"
            tooltip="Apply the applicable appearance properties of the last selected shape to the other selected shapes.">
         <visibleWhen>
            <and>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </and>
         </visibleWhen>
      </command>
   </menuContribution>
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand"
            icon="icons/fantomContents.gif"
            id="showhidecontents.popup"
            label="Show/Hide &amp;Contents"
            style="push"
            tooltip="The Show/Hide Contents Action">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand"
            icon="icons/fantomCompartment.gif"
            id="showhidecompartments.popup"
            label="Show/Hide Com&amp;partments"
            style="push"
            tooltip="The Show/Hide Compartments Action">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowRelatedLinkBetweenSelectedElementsCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowAllRelatedLinkCommand"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SortFilterCompartmentItemsCommand"
            helpContextId="ActionToolTipText"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/sortfilter.gif"
            label="Sort/&amp;Filter Compartments Items..."
            style="push"
            tooltip="Sort or Filter Compartments Items for this shape">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.separator1"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.toggleCanonical"
            label="Synchronized with Model"
            style="toggle"
            tooltip="Automatically synchronize contents with the underlying model elements">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.separator0"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.show.all"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/showconnector.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.all.connector.label"
            label="&amp;All Connector Labels"
            style="push"
            tooltip="Display all labels on the selected connectors">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.hide.all"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/hideconnector.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.no.connector.label"
            label="N&amp;o Connector Labels"
            style="push"
            tooltip="Hide all labels on the selected Connections">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.manager"
            icon="icons/manage_connector_label.gif"
            id="org.eclipse.papyrus.uml.diagram.ui.popupmenu.filters.manage.connector.label"
            label="&amp;Manage Connector Labels"
            style="push"
            tooltip="Manage the labels to display for the selected connections">
      </command>
   </menuContribution>
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.papyrus.uml.diagram.ui.popupmenu.view">
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewGridCommand"
            label="&amp;Grid"
            style="toggle"
            tooltip="Toggle the grid lines on the diagram">
      </command>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewRulersCommand"
            label="&amp;Rulers"
            style="toggle"
            tooltip="Toggle the rulers on the diagram">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.popup.view.separator1"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewPageBreaksCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/viewpagebreaks.gif"
            label="&amp;Page Breaks"
            style="toggle"
            tooltip="Show the page breaks on the diagram">
      </command>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.RecalculatePageBreaksCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui.actions/icons/elcl16/recalcpagebreaks.gif"
            label="&amp;Recalculate Page Breaks"
            style="push"
            tooltip="Recalculate Page Breaks">
      </command>
      <separator
            name="org.eclipse.papyrus.uml.diagram.menu.popup.view.separator2"
            visible="true">
      </separator>
      <command
            commandId="org.eclipse.papyrus.infra.gmfdiag.menu.SnapToGridCommand"
            label="Snap to &amp;Grid"
            style="toggle"
            tooltip="Toggle Snap to Grid">
      </command>
   </menuContribution>
   <menuContribution
         allPopups="false"
         locationURI="popup:org.eclipse.papyrus.uml.diagram.ui.popupmenu.zoom">
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomplus.gif"
            label="Zoom &amp;In"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomOutCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomminus.gif"
            label="Zoom &amp;Out"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.Zoom100Command"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoom100.gif"
            label="Zoom &amp;to 100%"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomFitCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
            label="Zoom to &amp;Fit"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomWidthCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
            label="Fit to &amp;Width"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomHeightCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
            label="Fit to &amp;Heightight"
            style="push">
      </command>
      <command
            commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomSelectionCommand"
            icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/zoomtofit.gif"
            label="Fit to &amp;Selection"
            style="push">
      </command>
   </menuContribution>
</extension>
<extension
      point="org.eclipse.ui.commands">
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         defaultHandler="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DropDownToolBarHandler"
         id="org.eclipse.papyrus.uml.diagram.menu.toolbar.command"
         name="Command for the toolbar actions">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         defaultHandler="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DropDownToolBarSameSizeHandler"
         id="org.eclipse.papyrus.uml.diagram.menu.toolbar.same.size.command"
         name="Command for the Make Same Size Toolbar actions">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Routing By Left Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.routing.left"
         name="Routing By Left Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.RoutingHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandRoutingParameter"
               value="parameter_left">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Routing By Right Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.routing.right"
         name="Routing By Righ Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.RoutingHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandRoutingParameter"
               value="parameter_right">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Routing By Top Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.routing.top"
         name="Routing By Top Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.RoutingHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandRoutingParameter"
               value="parameter_top">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Routing By Bottom Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.routing.bottom"
         name="Routing By Bottom Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.RoutingHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandRoutingParameter"
               value="parameter_bottom">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Distribute Nodes/Links Figure Horizontally"
         id="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally"
         name="Distribute Nodes/Links horizontally">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DistributionHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandDistributionParameter"
               value="parameter_horizontally">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Distribute Nodes/Links Horizontally Between 2 Nodes"
         id="org.eclipse.papyrus.uml.diagram.menu.command.distribute.horizontally_between_nodesly"
         name="Distribute Nodes/Links Horizontally Between 2 Nodes">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DistributionHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandDistributionParameter"
               value="parameter_horizontally_between_nodes">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Distribute Nodes/Links Vertically"
         id="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically"
         name="Distribute Nodes/Links Vertically">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DistributionHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandDistributionParameter"
               value="parameter_vertically">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Distribute Nodes/Links Vertically Between 2 Nodes"
         id="org.eclipse.papyrus.uml.diagram.menu.command.distribute.vertically_between_nodes"
         name="Distribute Nodes/Links Vertically Between 2 Nodes">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DistributionHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandDistributionParameter"
               value="parameter_vertically_between_nodes">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Left Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.left"
         name="Align Left Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_left">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Center Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.center"
         name="Align Center Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_center">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Right Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.right"
         name="Align Right Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_right">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Bottom Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.bottom"
         name="Align Bottom Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_bottom">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Middle Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.middle"
         name="Align Middle Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_middle">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Align on Top Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.alignment.top"
         name="Align Top Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.AlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandAlignmentParameter"
               value="parameter_top">
         </parameter>
      </defaultHandler>
   </command>

   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Make Same Size Both Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.both"
         name="Make Same Size Both">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SizeHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandSizeParameter"
               value="parameter_both">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Make Same Size Height Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.height"
         name="Make Same Height">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SizeHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandSizeParameter"
               value="parameter_height">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Make Width Size Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.sameSize.width"
         name="Make Same Width Both">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SizeHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandSizeParameter"
               value="parameter_width">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Grow horizontally"
         id="org.eclipse.papyrus.uml.diagram.menu.command.grow.left"
         name="Grow Width Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ReduceGrowHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandGrowParameter"
               value="parameter_left">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Grow horizontally"
         id="org.eclipse.papyrus.uml.diagram.menu.command.grow.right"
         name="Grow Width Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ReduceGrowHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandGrowParameter"
               value="parameter_right">
         </parameter>
      </defaultHandler>
   </command>         
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Grow on width"
         id="org.eclipse.papyrus.uml.diagram.menu.command.grow.top"
         name="Grow Width Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ReduceGrowHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandGrowParameter"
               value="parameter_top">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Grow on width"
         id="org.eclipse.papyrus.uml.diagram.menu.command.grow.bottom"
         name="Grow Width Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ReduceGrowHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandGrowParameter"
               value="parameter_bottom">
         </parameter>
      </defaultHandler>
   </command>              
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Auto Size Action"
         id="org.eclipse.papyrus.uml.diagram.menu.command.autosize"
         name="Auto Size">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Show/Hide Compartments Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand"
         name="Show/Hide Compartments Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Show/Hide Contents Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand"
         name="Show/Hide Contents Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
          description="Call the Show/Hide Related Link Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand"
         name="Show/Hide Related Link">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Show/Hide Related Link In Selection Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ShowRelatedLinkBetweenSelectedElementsCommand"
         name="Show Related Link In Selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Show All Related Link Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ShowAllRelatedLinkCommand"
         name="Show All Related Link">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Copy the appearance properties"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand"
         name="Copy Appearance Properties Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Command  to manage the displayed label on links"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.manager"
         name="Manage Displayed Labels Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Command to show all labels on links"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.show.all"
         name="Show all labels on links">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Command to hide all labels on links"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.hide.all"
         name="Hide all labels on links">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Reset the label to its initial location"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SnapBack"
         name="Snap Back">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Text Align on Left Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.left"
         name="Text Align Left Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.TextAlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandTextAlignmentParameter"
               value="parameter_left">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Text Align on Center Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.center"
         name="Text Align Center Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.TextAlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandTextAlignmentParameter"
               value="parameter_center">
         </parameter>
      </defaultHandler>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Text Align on Right Command"
         id="org.eclipse.papyrus.uml.diagram.menu.command.text_alignment.right"
         name="Text Align Right Command">
      <defaultHandler
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.TextAlignementHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandTextAlignmentParameter"
               value="parameter_right">
         </parameter>
      </defaultHandler>
   </command>
</extension>
<extension
      id="viewCommands"
      point="org.eclipse.ui.commands">
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to view the Grid"
         id="org.eclipse.papyrus.infra.gmfdiag.menu.ViewGridCommand"
         name="Grid Command">
      <state
            class="org.eclipse.jface.commands.ToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to view the Rulers"
         id="org.eclipse.papyrus.infra.gmfdiag.menu.ViewRulersCommand"
         name="Rulers Command">
      <state
            class="org.eclipse.jface.commands.ToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to view the page breaks"
         id="org.eclipse.papyrus.infra.gmfdiag.menu.ViewPageBreaksCommand"
         name="Page breaks Command">
      <state
            class="org.eclipse.jface.commands.ToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to recalculate the Page Breaks"
         id="org.eclipse.papyrus.infra.gmfdiag.menu.RecalculatePageBreaksCommand"
         name="Recalculate Page Breaks Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to snap to grid"
         id="org.eclipse.papyrus.infra.gmfdiag.menu.SnapToGridCommand"
         name="Snap To Grid Command">
      <state
            class="org.eclipse.papyrus.uml.diagram.menu.providers.InitTrueToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to sort Compartments Items"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SortFilterCompartmentItemsCommand"
         name="Sort/Filter Compartments Items...">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom In Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand"
         name="Command to Zoom In">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom Out Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomOutCommand"
         name="Command to Zoom Out">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom to 100% Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.Zoom100Command"
         name="Command to Zoom 100%">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom to Fit Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomFitCommand"
         name="Command to Zoom Fit">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom to Width Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomWidthCommand"
         name="Command to Zoom Width">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom to Height Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomHeightCommand"
         name="Command to Zoom Height">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="Call the Zoom Selection Action"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomSelectionCommand"
         name="Command to Zoom Selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to bring to front the selection"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.BringToFrontCommand"
         name="Bring to front the selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to send to back the selection"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SendToBackCommand"
         name="Send to back the selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to bring forward the selection"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.BringForwardCommand"
         name="Bring forward the selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to send backward the selection"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SendBackwardCommand"
         name="Send backward the selection">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to arrange all elements"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand"
         name="Arrange All Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to arrange selected elements"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeSelectionCommand"
         name="Arrange Selection Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to select all shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllShapesCommand"
         name="Select All Shapes Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to select all connectors"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllConnectorsCommand"
         name="Select All Connectors Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to modify the font"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.FontCommand"
         name="Modify the Font Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to change routing to rectilinear style for connectors"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.rectilinear"
         name="Rectilinear Style Routing Command">
      <state
            class="org.eclipse.papyrus.uml.diagram.menu.providers.RectilinearToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to change routing to oblique style for connectors"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.oblique"
         name="Oblique Style Routing Command">
      <state
            class="org.eclipse.papyrus.uml.diagram.menu.providers.ObliqueToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to change routing to tree style for connectors"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.tree"
         name="Tree Style Routing Command">
      <state
            class="org.eclipse.papyrus.uml.diagram.menu.providers.TreeToggleState"
            id="org.eclipse.ui.commands.toggleState">
      </state>
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to remove all bendpoints"
         id="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.removebendpoint"
         name="Remove Bendpoints Command">
   </command>
</extension>
<extension
      id="viewHandlers"
      point="org.eclipse.ui.handlers">
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ViewGridHandler"
         commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewGridCommand">
      <activeWhen>
         <with
               variable="activePart">
            <adapt
                  type="org.eclipse.gmf.runtime.notation.Diagram">
            </adapt>
         </with>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.RecalculatePageBreaksHandler"
         commandId="org.eclipse.papyrus.infra.gmfdiag.menu.RecalculatePageBreaksCommand">
      <activeWhen>
         <with
               variable="activePart">
            <adapt
                  type="org.eclipse.gmf.runtime.notation.Diagram">
            </adapt>
         </with>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SnapToGridHandler"
         commandId="org.eclipse.papyrus.infra.gmfdiag.menu.SnapToGridCommand">
      <activeWhen>
         <with
               variable="activePart">
            <adapt
                  type="org.eclipse.gmf.runtime.notation.Diagram">
            </adapt>
         </with>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ViewPageBreaksHandler"
         commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewPageBreaksCommand">
      <activeWhen>
         <with
               variable="activePart">
            <adapt
                  type="org.eclipse.gmf.runtime.notation.Diagram">
            </adapt>
         </with>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ViewRulersHandler"
         commandId="org.eclipse.papyrus.infra.gmfdiag.menu.ViewRulersCommand">
      <activeWhen>
         <with
               variable="activePart">
            <adapt
                  type="org.eclipse.gmf.runtime.notation.Diagram">
            </adapt>
         </with>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SortFilterCompartmentItemsHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SortFilterCompartmentItemsCommand">
      <activeWhen>
         <and>
            <with
                  variable="sortFilterCompartmentItems">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_in">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomOutCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_out">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.Zoom100Command">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_100">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomFitCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_fit">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomWidthCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_width">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomHeightCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_height">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomSelectionCommand">
      <activeWhen>
         <and>
            <with
                  variable="zoom">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZoomHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandZoomParameter"
               value="parameter_zoom_selection">
         </parameter>
      </class>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SnapBackHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SnapBack">
      <activeWhen>
         <and>
            <with
                  variable="selection">
               <iterate
                     ifEmpty="false"
                     operator="and">
                  <adapt
                        type="org.eclipse.gef.EditPart">
                     <instanceof
                           value="org.eclipse.gmf.runtime.diagram.ui.editparts.LabelEditPart">
                     </instanceof>
                  </adapt>
               </iterate>
            </with>
         </and>
      </activeWhen>
   </handler>
</extension>
<extension
      id="update-cmd-binding"
      point="org.eclipse.ui.bindings">
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.left"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+ARROW_LEFT">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.right"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+ARROW_RIGHT">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.top"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+ARROW_UP">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.alignment.bottom"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+ARROW_DOWN">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="F4">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+F5">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.left"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+SHIFT+ARROW_LEFT">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.right"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+SHIFT+ARROW_RIGHT">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.top"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+SHIFT+ARROW_UP">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.routing.bottom"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+SHIFT+ARROW_DOWN">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomOutCommand"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+-">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL+=">
   </key>
   <key
         commandId="org.eclipse.ui.edit.selectAll"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="M1+A">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ZoomInCommand"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="CTRL++">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.grow.left"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="M2+ARROW_LEFT">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.grow.right"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="M2+ARROW_RIGHT">
   </key>
    <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.grow.top"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="M2+ARROW_UP">
   </key>
   <key
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.grow.bottom"
         contextId="org.eclipse.gmf.runtime.diagram.ui.diagramContext"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="M2+ARROW_DOWN">
   </key>          
</extension>
<extension
      point="org.eclipse.ui.handlers">
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SizeHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.command.autosize">
      <enabledWhen>
         <iterate>
            <instanceof
                  value="org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart">
            </instanceof>
            <and>
               <not>
                  <instanceof
                        value="org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart">
                  </instanceof>
               </not>
            </and>
         </iterate>
      </enabledWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SizeHandler">
         <parameter
               name="org.eclipse.papyrus.uml.diagram.menu.commandSizeParameter"
               value="parameter_autosize">
         </parameter>
      </class>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideContentsHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideContentsCommand">
      <activeWhen>
         <and>
            <with
                  variable="showHideContents">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideCompartmentHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideCompartmentCommand">
      <activeWhen>
         <and>
            <with
                  variable="showHideCompartments">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowHideRelatedLinkCommand">
      <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     args="ShowHideRelatedLinkEditPolicy"
                     property="org.eclipse.papyrus.uml.diagram.menu.tester.hasRequiredEditPolicy"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideRelatedLinkHandler">
         <parameter
               name="showHideRelatedLinkParameter"
               value="OPEN_DIALOG">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowRelatedLinkBetweenSelectedElementsCommand">
      <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     args="ShowHideRelatedLinkEditPolicy"
                     property="org.eclipse.papyrus.uml.diagram.menu.tester.hasRequiredEditPolicy"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideRelatedLinkHandler">
         <parameter
               name="showHideRelatedLinkParameter"
               value="SHOW_ALL_LINK_BETWEEN_SELECTED_ELEMENT">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ShowAllRelatedLinkCommand">
      <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     args="ShowHideRelatedLinkEditPolicy"
                     property="org.eclipse.papyrus.uml.diagram.menu.tester.hasRequiredEditPolicy"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideRelatedLinkHandler">
         <parameter
               name="showHideRelatedLinkParameter"
               value="SHOW_ALL_LINK_IN_DIAGRAM">
         </parameter>
      </class>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.CopyAppearancePropertiesHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.CopyAppearancePropertiesCommand">
      <activeWhen>
         <and>
            <with
                  variable="copyAppearanceProperties">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeAllCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ArrangeHandler">
         <parameter
               name="arrange_parameter"
               value="arrangeAll">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="arrangeAll">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.ArrangeSelectionCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ArrangeHandler">
         <parameter
               name="arrange_parameter"
               value="arrangeSelection">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="arrangeSelection">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringToFrontCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZOrderHandler">
         <parameter
               name="order_parameter"
               value="bringToFront">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="bringToFront">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendToBackCommand">
      <activeWhen>
         <and>
            <with
                  variable="sendToBack">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZOrderHandler">
         <parameter
               name="order_parameter"
               value="sendToBack">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.BringForwardCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZOrderHandler">
         <parameter
               name="order_parameter"
               value="bringForward">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="bringForward">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SendBackwardCommand">
      <activeWhen>
         <and>
            <with
                  variable="sendBackward">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ZOrderHandler">
         <parameter
               name="order_parameter"
               value="sendBackward">
         </parameter>
      </class>
   </handler>
   <handler
         commandId="org.eclipse.ui.edit.selectAll">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SelectHandler">
         <parameter
               name="select_parameter"
               value="selectAll">
         </parameter></class>
     <activeWhen>
        <and>
           <with
                 variable="activeContexts">
              <test
                    property="org.eclipse.papyrus.infra.gmfdiag.common.diagram.context.tester.isGmfDiagramContextActive"
                    value="true">
              </test>
           </with>
           <with
                 variable="selection">
              <test
                    forcePluginActivation="true"
                    property="org.eclipse.papyrus.infra.gmfdiag.common.diagram.tester.isDiagramEditor"
                    value="true">
              </test>
           </with>
        </and>
     </activeWhen>         
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllShapesCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SelectHandler">
         <parameter
               name="select_parameter"
               value="selectAllShapes">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="selectAllShapes">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.SelectAllConnectorsCommand">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.SelectHandler">
         <parameter
               name="select_parameter"
               value="selectAllConnectors">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="selectAllConnectors">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FontHandler"
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.FontCommand">
      <activeWhen>
         <and>
            <with
                  variable="font">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.rectilinear">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineStyleHandler">
         <parameter
               name="line_style_parameter"
               value="rectilinear">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineStyle">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.oblique">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineStyleHandler">
         <parameter
               name="line_style_parameter"
               value="oblique">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineStyle">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.tree">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineStyleHandler">
         <parameter
               name="line_style_parameter"
               value="tree">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineStyleTree">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.line.style.removebendpoint">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineStyleHandler">
         <parameter
               name="line_style_parameter"
               value="remove_benpoints">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineStyle">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.hide.all">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideLabelsHandler">
         <parameter
               name="show_hide_link_label_parameter"
               value="hide">
         </parameter>
      </class>
      <activeWhen>
         <with
               variable="showHideLabels">
            <equals
                  value="enabled">
            </equals>
         </with>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.show.all">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideLabelsHandler">
         <parameter
               name="show_hide_link_label_parameter"
               value="show">
         </parameter>
      </class>
      <activeWhen>
         <with
               variable="showHideLabels">
            <equals
                  value="enabled">
            </equals>
         </with></activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.commands.link.label.manager">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.ShowHideLabelsHandler">
         <parameter
               name="show_hide_link_label_parameter"
               value="manage">
         </parameter>
      </class>
      <activeWhen>
         <with
               variable="showHideLabels">
            <equals
                  value="enabled">
            </equals>
         </with></activeWhen>
   </handler>
</extension>
<extension
      point="org.eclipse.ui.services">
   <sourceProvider
         provider="org.eclipse.papyrus.uml.diagram.menu.providers.HandlerStateSourceProvider">
      <variable
            name="showHideContents"
            priorityLevel="workbench">
      </variable>
      <variable
            name="showHideCompartments"
            priorityLevel="workbench">
      </variable>
      <variable
            name="toggleCanonical"
            priorityLevel="workbench">
      </variable>
      <variable
            name="copyAppearanceProperties"
            priorityLevel="workbench">
      </variable>
      <variable
            name="grid"
            priorityLevel="workbench">
      </variable>
      <variable
            name="rulers"
            priorityLevel="workbench">
      </variable>
      <variable
            name="pageBreaks"
            priorityLevel="workbench">
      </variable>
      <variable
            name="recalculatePageBreaks"
            priorityLevel="workbench">
      </variable>
      <variable
            name="snapToGrid"
            priorityLevel="workbench">
      </variable>
      <variable
            name="sortFilterCompartmentItems"
            priorityLevel="workbench">
      </variable>
      <variable
            name="bringToFront"
            priorityLevel="workbench">
      </variable>
      <variable
            name="sendToBack"
            priorityLevel="workbench">
      </variable>
      <variable
            name="bringForward"
            priorityLevel="workbench">
      </variable>
      <variable
            name="sendBackward"
            priorityLevel="workbench">
      </variable>
      <variable
            name="arrangeAll"
            priorityLevel="workbench">
      </variable>
      <variable
            name="arrangeSelection"
            priorityLevel="workbench">
      </variable>
      <variable
            name="selectAll"
            priorityLevel="workbench">
      </variable>
      <variable
            name="selectAllConnectors"
            priorityLevel="workbench">
      </variable>
      <variable
            name="selectAllShapes"
            priorityLevel="workbench">
      </variable>
      <variable
            name="font"
            priorityLevel="workbench">
      </variable>
      <variable
            name="fillColor"
            priorityLevel="workbench">
      </variable>
      <variable
            name="lineColor"
            priorityLevel="workbench">
      </variable>
      <variable
            name="lineStyle"
            priorityLevel="workbench">
      </variable>
      <variable
            name="lineTree"
            priorityLevel="workbench">
      </variable>
      <variable
            name="showHideLabels"
            priorityLevel="workbench">
      </variable>
   </sourceProvider>
</extension>
<extension
      id="PapyrusQuickFormatHandler"
      name="QuickFormatHandler"
      point="org.eclipse.ui.handlers">
   <handler
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramQuickFormatHandler"
         commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingUpperCaseCommand">
       <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     property="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester.isNameChangeable"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler 
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramQuickFormatHandler"
         commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingLowerCaseCommand">
       <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     property="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester.isNameChangeable"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
   </handler>
      <handler 
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramQuickFormatHandler"
         commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingSwitchSpace2UnderscoreCommand">
       <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     property="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester.isNameChangeable"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler 
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramQuickFormatHandler"
         commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingCapitalizeFirstLetterCommand">
       <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     property="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester.isNameChangeable"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler 
         class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramQuickFormatHandler"
         commandId="org.eclipse.papyrus.infra.ui.menu.commands.QuickFormattingRemoveSpaceCommand">
       <activeWhen>
         <and>
            <with
                  variable="selection">
               <test
                     property="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester.isNameChangeable"
                     value="true">
               </test>
            </with>
         </and>
      </activeWhen>
   </handler>
</extension>
<extension
      id="PapyrusFillColorCommand"
      name="FillColorCommand"
      point="org.eclipse.ui.commands">
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in white the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.white.command"
         name="Fill White Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in black the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.black.command"
         name="Fill Black Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in light gray the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.lightgray.command"
         name="Fill Light Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in gray the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.gray.command"
         name="Fill Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in dark gray the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.darkgray.command"
         name="Fill Dark Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in red the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.red.command"
         name="Fill Red Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in green the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.green.command"
         name="Fill Green Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in blue the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.blue.command"
         name="Fill Blue Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in yellow the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.yellow.command"
         name="Fill Yellow Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in magenta the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.magenta.command"
         name="Fill Magenta Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in cyan the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.cyan.command"
         name="Fill Cyan Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in pink the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.pink.command"
         name="Fill Pink Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill in orange the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.orange.command"
         name="Fill Orange Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill with the default color the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.defaultcolor.command"
         name="Fill Default Color Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to fill with another color the selected shapes"
         id="org.eclipse.papyrus.uml.diagram.menu.fill.color.morecolors.command"
         name="Fill With Another Color Command">
   </command>
</extension>
<extension
      id="PapyrusFillColorHandler"
      name="FillColorHandler"
      point="org.eclipse.ui.handlers">
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.white.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="White">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.black.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Black">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.lightgray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Light Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.gray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.darkgray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Dark Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.red.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Red">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.green.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Green">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.blue.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Blue">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.yellow.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Yellow">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.magenta.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Magenta">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.cyan.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Cyan">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.pink.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Pink">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.orange.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="Orange">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.defaultcolor.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="default_color">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.fill.color.morecolors.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.FillColorHandler">
         <parameter
               name="color_parameter"
               value="more_colors">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="fillColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
</extension>
<extension
      id="PapyrusLineColorCommand"
      name="LineColorCommand"
      point="org.eclipse.ui.commands">
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in white"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.white.command"
         name="Set Lines In White Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in black"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.black.command"
         name="Set Lines In Black Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in light gray"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.lightgray.command"
         name="Set Lines In Light Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the line in gray"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.gray.command"
         name="Set Lines In Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in dark gray "
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.darkgray.command"
         name="Set Lines In Dark Gray Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in red"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.red.command"
         name="Set Lines In Red Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in green"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.green.command"
         name="Set Lines In Green Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in blue"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.blue.command"
         name="Set Lines In Blue Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in yellow"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.yellow.command"
         name="Set Lines In Yellow Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in magenta"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.magenta.command"
         name="Set Lines In Magenta Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in cyan"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.cyan.command"
         name="Set Lines In Cyan Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in pink"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.pink.command"
         name="Set Lines In Pink Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in orange"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.orange.command"
         name="Set Lines In Orange Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in the default color"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.defaultcolor.command"
         name="Set Lines In Default Color Command">
   </command>
   <command
         categoryId="org.eclipse.papyrus.editor.category"
         description="The command to set the lines in another color"
         id="org.eclipse.papyrus.uml.diagram.menu.line.color.morecolors.command"
         name="Set lines In Another Color Command">
   </command>
</extension>
<extension
      id="PapyrusLineColorHandler"
      name="LineColorHandler"
      point="org.eclipse.ui.handlers">
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.white.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="White">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.black.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Black">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.lightgray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Light Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.gray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.darkgray.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Dark Gray">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.red.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Red">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.green.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Green">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.blue.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Blue">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.yellow.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Yellow">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.magenta.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Magenta">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.cyan.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Cyan">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.pink.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Pink">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.orange.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="Orange">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.defaultcolor.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="default_color">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
   <handler
         commandId="org.eclipse.papyrus.uml.diagram.menu.line.color.morecolors.command">
      <class
            class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.LineColorHandler">
         <parameter
               name="color_parameter"
               value="more_colors">
         </parameter>
      </class>
      <activeWhen>
         <and>
            <with
                  variable="lineColor">
               <equals
                     value="enabled">
               </equals>
            </with>
         </and>
      </activeWhen>
   </handler>
</extension>

<!--                                                      -->

      <extension
            point="org.eclipse.core.expressions.propertyTesters">
         <propertyTester
               class="org.eclipse.papyrus.uml.diagram.menu.providers.DiagramPropertyTester"
               id="org.eclipse.papyrus.uml.diagram.menu.tester"
               namespace="org.eclipse.papyrus.uml.diagram.menu.tester"
               properties="isDiagram,hasRequiredEditPolicy"
               type="org.eclipse.jface.viewers.IStructuredSelection">
         </propertyTester>
         <propertyTester
               class="org.eclipse.papyrus.uml.diagram.menu.actions.handlers.DiagramNamePropertyTester"
               id="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester"
               namespace="org.eclipse.papyrus.uml.diagram.menu.quickformatpropertytester"
               properties="isNameChangeable"
               type="org.eclipse.jface.viewers.IStructuredSelection">
         </propertyTester>
      </extension>
      <extension
            point="org.eclipse.ui.menus">
         <menuContribution
               allPopups="false"
               locationURI="popup:org.eclipse.papyrus.infra.gmfdiag.menu.editmenu?after=edit_actions_separator">
            <command
                  commandId="org.eclipse.papyrus.infra.gmfdiag.menu.cleandiagram"
                  style="push">
            </command>
         </menuContribution>
      </extension>
      <extension
            point="org.eclipse.ui.commandImages">
         <image
               commandId="org.eclipse.papyrus.infra.gmfdiag.menu.pastewithmodel"
               icon="icons/paste_edit.gif">
         </image>
      </extension>
      <extension
            point="org.eclipse.ui.commands">
         <command
               categoryId="org.eclipse.papyrus.editor.category"
               defaultHandler="org.eclipse.papyrus.uml.diagram.menu.handlers.PasteWithModelHandler"
               id="org.eclipse.papyrus.infra.gmfdiag.menu.pastewithmodel"
               name="Paste With Model">
         </command>
         <command
               categoryId="org.eclipse.papyrus.editor.category"
               description="This action remove the invalid views from the diagram"
               id="org.eclipse.papyrus.infra.gmfdiag.menu.cleandiagram"
               name="Clean Diagram">
         </command>
      </extension> 
</plugin>

Back to the top