plugin.xml 33.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
<?xml version="1.0" encoding="UTF-8"?>
<plugin>

   <extension
         point="org.eclipse.gmf.runtime.diagram.ui.editpolicyProviders">
      <editpolicyProvider
            class="org.bonitasoft.studio.diagram.custom.providers.CustomProcessEditPolicyProvider">
         <Priority
               name="Lowest">
         </Priority>
         <object
               class="org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart"
               id="allElements">
         </object>
         <context
               editparts="allElements">
         </context>
      </editpolicyProvider>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders">
      <GlobalActionHandlerProvider
            class="org.bonitasoft.studio.diagram.custom.clipboard.CustomGlobalActionHandlerProvider"
            id="org.bonitasoft.studio.diagram.custom.BonitaGlobalActionHandlerProvider">
         <Priority
               name="Medium">
         </Priority>
         <ViewId
               id="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditorID">
            <ElementType
                  class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
               <GlobalActionId
                     actionId="copy">
               </GlobalActionId>
               <GlobalActionId
                     actionId="cut">
               </GlobalActionId>
               <GlobalActionId
                     actionId="paste">
               </GlobalActionId>
            </ElementType>
         </ViewId>
      </GlobalActionHandlerProvider>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
      <editpartProvider
            class="org.bonitasoft.studio.diagram.custom.providers.CustomProcessEditPartProvider">
         <Priority
               name="Medium">
         </Priority>
      </editpartProvider>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
      <decoratorProvider
            class="org.bonitasoft.studio.diagram.custom.decorator.ActivityDecoratorProvider">
         <Priority
               name="Lowest">
         </Priority>
      </decoratorProvider>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
      <propertyContributor
66
            overridableTabListContentProvider="false"
67
            contributorId="org.bonitasoft.studio.diagram"
68
            labelProvider="org.bonitasoft.studio.diagram.custom.ProcessElementLabelProvider">
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
         <propertyCategory
               category="domain">
         </propertyCategory>
         <propertyCategory
               category="visual">
         </propertyCategory>
         <propertyCategory
               category="extra">
         </propertyCategory>
      </propertyContributor>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertyTabs">
      <propertyTabs
            contributorId="org.bonitasoft.studio.diagram">
         <propertyTab
85
               label="%tab.Process"
86
               category="extra"
87
               id="property.tab.Process">
88 89 90 91 92 93 94 95
         </propertyTab>
      </propertyTabs>
   </extension>
   <extension
         point="org.eclipse.ui.views.properties.tabbed.propertySections">
      <propertySections
            contributorId="org.bonitasoft.studio.diagram">
         <propertySection
96
               tab="property.tab.Process"
97
               class="org.bonitasoft.studio.model.process.diagram.sheet.ProcessPropertySection"
98
               id="property.section.Process">
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
         </propertySection>
      </propertySections>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.diagram.ui.layoutProviders">
      <layoutProvider
            class="org.bonitasoft.studio.diagram.custom.providers.LeftRightLayoutProvider">
         <Priority
               name="High">
         </Priority>
      </layoutProvider>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">
      <contributionItemProvider
114 115
            checkPluginLoaded="false"
            class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider">
116 117 118 119 120 121
         <Priority
               name="Medium">
         </Priority>
         <popupContribution
               class="org.bonitasoft.studio.model.process.diagram.part.DiagramEditorContextMenuProvider">
            <popupPredefinedItem
122 123
                  remove="true"
                  id="formatMenu">
124 125
            </popupPredefinedItem>
            <popupPredefinedItem
126 127
                  remove="true"
                  id="diagramMenu">
128 129
            </popupPredefinedItem>
            <popupPredefinedItem
130 131
                  remove="true"
                  id="diagramAddMenu">
132 133
            </popupPredefinedItem>
            <popupPredefinedItem
134 135
                  remove="true"
                  id="navigateMenu">
136 137
            </popupPredefinedItem>
            <popupPredefinedItem
138 139
                  remove="true"
                  id="fileMenu">
140 141
            </popupPredefinedItem>
            <popupPredefinedItem
142 143
                  remove="true"
                  id="filtersMenu">
144 145
            </popupPredefinedItem>
            <popupPredefinedItem
146 147
                  remove="true"
                  id="viewMenu">
148 149
            </popupPredefinedItem>
            <popupPredefinedItem
150 151
                  remove="true"
                  id="arrangeMenu">
152 153
            </popupPredefinedItem>
            <popupPredefinedItem
154 155
                  remove="true"
                  id="selectMenu">
156 157
            </popupPredefinedItem>
            <popupPredefinedItem
158 159
                  remove="true"
                  id="selectMenuToolbar">
160 161
            </popupPredefinedItem>
            <popupPredefinedItem
162 163
                  remove="true"
                  id="alignMenu">
164 165
            </popupPredefinedItem>
            <popupPredefinedItem
166 167
                  remove="true"
                  id="compartmentMenu">
168 169
            </popupPredefinedItem>
            <popupPredefinedItem
170 171
                  remove="true"
                  id="connectorLabelMenu">
172 173
            </popupPredefinedItem>
            <popupPredefinedItem
174 175
                  remove="true"
                  id="routerMenu">
176 177
            </popupPredefinedItem>
            <popupPredefinedItem
178 179
                  remove="true"
                  id="showInMenu">
180 181
            </popupPredefinedItem>
            <popupPredefinedItem
182 183
                  remove="true"
                  id="addNoteAction">
184 185
            </popupPredefinedItem>
            <popupPredefinedItem
186 187
                  remove="true"
                  id="deleteFromDiagramAction">
188 189
            </popupPredefinedItem>
            <popupPredefinedItem
190 191
                  remove="true"
                  id="zoomContributionItem">
192 193
            </popupPredefinedItem>
            <popupPredefinedItem
194 195
                  remove="true"
                  id="addNoteLinkAction">
196 197
            </popupPredefinedItem>
            <popupPredefinedItem
198 199
                  remove="true"
                  id="arrangeAllAction">
200 201
            </popupPredefinedItem>
            <popupPredefinedItem
202 203
                  remove="true"
                  id="editMenu">
204 205
            </popupPredefinedItem>
            <popupPredefinedItem
206 207
                  remove="true"
                  id="showPropertiesViewAction">
208 209
            </popupPredefinedItem>
            <popupPredefinedItem
210 211
                  remove="true"
                  id="properties">
212 213 214 215 216
            </popupPredefinedItem>
         </popupContribution>
         <partContribution
               class="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
            <partPredefinedItem
217
                  removeFromToolbar="true"
218
                  removeFromMenubar="true"
219
                  id="zoomContributionItem">
220 221 222 223 224 225 226 227 228 229 230
            </partPredefinedItem>
         </partContribution>
      </contributionItemProvider>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu?after=additions">
         <command
               commandId="org.eclipse.gef.zoom_in"
               label="%zoomIn"
231 232 233
               icon="icons/menuIcons/zoomplus.gif"
               style="push"
               disabledIcon="icons/menuIcons/zoomplus.gif">
234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
            <visibleWhen
                  checkEnabled="true">
               <and>
                  <with
                        variable="activeEditor">
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
                     </instanceof>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.gef.zoom_out"
               label="%zoomOut"
249 250 251
               icon="icons/menuIcons/zoomminus.gif"
               style="push"
               disabledIcon="icons/menuIcons/zoomminus.gif">
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
            <visibleWhen
                  checkEnabled="true">
               <and>
                  <with
                        variable="activeEditor">
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
                     </instanceof>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.command.resetZoom"
               label="%resetZoom"
267 268 269
               icon="icons/menuIcons/zoom100.gif"
               style="push"
               disabledIcon="icons/menuIcons/zoom100.gif">
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
            <visibleWhen
                  checkEnabled="true">
               <and>
                  <with
                        variable="activeEditor">
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
                     </instanceof>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <separator
               name="org.bonitasoft.studio.diagram.custom.separator3"
               visible="true">
         </separator>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.command.arrangVertical"
               label="%verticalAlignment"
289
               icon="icons/menuIcons/align-vertical.png"
290 291 292 293 294 295 296 297
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.command.arrangeHorizontal"
               label="%horizontalAlignment"
298
               icon="icons/menuIcons/align-horizontal.png"
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
         <separator
               name="org.bonitasoft.studio.diagram.custom.separator2"
               visible="true">
         </separator>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.extractSubprocess"
               icon="icons/menuIcons/extractSubProcess.png"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeEditor">
                  <instanceof
                        value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
                  </instanceof>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.openLatestSubprocess"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
         <separator
               name="org.bonitasoft.studio.diagram.custom.separator4"
               visible="true">
         </separator>
         <command
               commandId="org.eclipse.ui.edit.delete"
               label="%delete"
336
               icon="icons/menuIcons/delete.gif"
337 338 339 340 341
               style="push">
         </command>
         <command
               commandId="org.eclipse.ui.edit.copy"
               label="%copy"
342
               icon="icons/menuIcons/copy.png"
343 344 345 346 347
               style="push">
         </command>
         <command
               commandId="org.eclipse.ui.edit.paste"
               label="%paste"
348
               icon="icons/menuIcons/paste.png"
349 350 351 352 353
               style="push">
         </command>
         <command
               commandId="org.bonitasoft.studio.diagram.custom.saveasimage"
               label="%saveAsImage"
354
               icon="icons/menuIcons/save-as-image.png"
355 356 357
               style="push">
         </command>
      </menuContribution>
358 359
      <menuContribution
            allPopups="false"
360
            locationURI="popup:org.bonitasoft.studio.application.project.explorer.new?after=org.bonitasoft.studio.application.placeholder.diagram">
361 362 363
         <command
               commandId="org.bonitasoft.studio.diagram.command.newDiagram"
               mnemonic="D"
364
               id="org.bonitasoft.studio.diagram.command.newDiagram.popup.menu">
365
            <visibleWhen
366 367 368 369 370 371 372 373
                  checkEnabled="false">
               <with
                     variable="activeMenuSelection">
                  <and>
	                  <count
	                        value="1">
	                  </count>
	                  <iterate>
374 375 376 377 378 379
                        <instanceof
                              value="org.eclipse.core.resources.IProject">
                        </instanceof>
                        <test
                              property="org.bonitasoft.studio.application.isBonitaProject">
                        </test>
380
                     </iterate>
381 382
	               </and>
               </with>
383 384 385
            </visibleWhen>
         </command>
      </menuContribution>
386 387 388 389
      <menuContribution
            allPopups="false"
            locationURI="popup:org.bonitasoft.studio.application.project.explorer?after=group.build">
         <menu
390
               label="%run"
391
               icon="icons/run.png"
392
               id="org.bonitasoft.studio.diagram.run">
393 394 395 396
            <dynamic
                  class="org.bonitasoft.studio.diagram.custom.contributionItem.RunProcessContributionItem"
                  id="org.bonitasoft.studio.diagram.custom.runContributionItem">
            </dynamic>
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeMenuSelection">
                  <and>
	                  <count
	                        value="1">
	                  </count>
	                  <iterate>
	                     <test
	                           property="org.bonitasoft.studio.diagram.isDiagramFile">
	                     </test>
	                  </iterate>
	               </and>
               </with>
412 413 414
            </visibleWhen>
         </menu>
      </menuContribution>
415 416 417 418 419 420 421
      <menuContribution
            allPopups="false"
            locationURI="popup:org.bonitasoft.studio.application.project.explorer?after=additions">
         <command
               commandId="org.bonitasoft.studio.application.printCommand"
               icon="icons/menuIcons/print.png"
               style="push">
422 423 424 425 426 427 428 429 430 431 432 433 434 435 436
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeMenuSelection">
                  <and>
	                  <count
	                        value="1">
	                  </count>
	                  <iterate>
	                     <test
	                           property="org.bonitasoft.studio.diagram.isSelectedDiagramActive">
	                           </test>
	                  </iterate>
	               </and>
               </with>
437 438 439 440 441 442 443 444 445
            </visibleWhen>
         </command>
      </menuContribution>
<menuContribution
            allPopups="false"
            locationURI="popup:org.bonitasoft.studio.application.project.explorer?after=group.edit">
         <command
               commandId="org.bonitasoft.studio.diagram.custom.command.duplicate"
               style="push">
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="activeMenuSelection">
                  <and>
	                  <count
	                        value="1">
	                  </count>
	                  <iterate>
	                     <test
	                           property="org.bonitasoft.studio.diagram.isDiagramFile">
	                     </test>
	                  </iterate>
	               </and>
               </with>
461 462 463
            </visibleWhen>
         </command>
      </menuContribution>
464 465 466 467 468
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.actions.OpenLatestSubprocessCommand"
469 470
            name="%openLatestSubprocess"
            id="org.bonitasoft.studio.diagram.custom.openLatestSubprocess">
471 472 473
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.actions.OpenSpecificProcessCommand"
474 475
            name="%openSpecificProcess"
            id="org.bonitasoft.studio.diagram.custom.openProcessComman">
476 477
      </command>
      <command
478 479
            name="%saveAsImage"
            id="org.bonitasoft.studio.diagram.custom.saveasimage">
480 481 482
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.VerticalArrangeCommandHandler"
483 484
            name="arrangeVertical"
            id="org.bonitasoft.studio.diagram.custom.command.arrangVertical">
485 486 487
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.HorizontalArrangeCommandHandler"
488 489
            name="arrangeHorizontal"
            id="org.bonitasoft.studio.diagram.custom.command.arrangeHorizontal">
490 491 492
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.ResetZoomCommandHandler"
493 494
            name="resetZoom"
            id="org.bonitasoft.studio.diagram.custom.command.resetZoom">
495 496
      </command>
      <command
497 498
            name="%extractSubprocess"
            id="org.bonitasoft.studio.diagram.custom.extractSubprocess">
499 500 501
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.NewDiagramCommandHandler"
502 503
            name="%newDiagram"
            id="org.bonitasoft.studio.diagram.command.newDiagram">
504 505 506
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.OpenDiagramCommandHandler"
507 508
            name="Open diagram"
            id="org.bonitasoft.studio.diagram.command.openDiagram">
509
      </command>
510 511
      <command
            defaultHandler="org.bonitasoft.studio.diagram.custom.commands.DeleteDiagramCommandHandler"
512 513
            name="Delete diagram"
            id="org.bonitasoft.studio.diagram.command.deleteDiagram">
514
      </command>
515 516 517 518
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
519 520
            commandId="org.eclipse.ui.edit.delete"
            class="org.bonitasoft.studio.diagram.custom.handlers.DeleteHandler">
521 522 523 524 525 526 527
         <activeWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.processWithASelection">
            </reference>
         </activeWhen>
      </handler>
      <handler
528 529
            commandId="org.eclipse.ui.edit.copy"
            class="org.bonitasoft.studio.common.handlers.CopyHandler">
530 531 532 533 534 535 536 537 538 539 540 541
         <activeWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.copySelection">
            </reference>
         </activeWhen>
         <enabledWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.copySelection">
            </reference>
         </enabledWhen>
      </handler>
      <handler
542 543
            commandId="org.eclipse.ui.edit.paste"
            class="org.bonitasoft.studio.diagram.custom.handlers.PasteHandler">
544 545 546 547 548 549 550 551 552 553 554 555
         <activeWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.processWithASelection">
            </reference>
         </activeWhen>
         <enabledWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.pasteSelection">
            </reference>
         </enabledWhen>
      </handler>
      <handler
556 557
            commandId="org.bonitasoft.studio.diagram.custom.saveasimage"
            class="org.bonitasoft.studio.common.handlers.SaveAsImageHandler">
558 559
      </handler>
      <handler
560 561
            commandId="org.eclipse.gef.zoom_in"
            class="org.bonitasoft.studio.diagram.custom.commands.ZoomInCommandHandler">
562 563 564 565 566 567 568
         <activeWhen>
            <reference
                  definitionId="isActiveEditorAnInstanceOfProcessEditor">
            </reference>
         </activeWhen>
      </handler>
      <handler
569 570
            commandId="org.eclipse.gef.zoom_out"
            class="org.bonitasoft.studio.diagram.custom.commands.ZoomOutCommandHandler">
571 572 573 574 575 576 577
         <activeWhen>
            <reference
                  definitionId="isActiveEditorAnInstanceOfProcessEditor">
            </reference>
         </activeWhen>
      </handler>
      <handler
578 579
            commandId="org.bonitasoft.studio.diagram.custom.extractSubprocess"
            class="org.bonitasoft.studio.diagram.custom.refactoring.ExtractAsCallActivityHandler">
580 581 582 583 584 585
         <activeWhen>
            <reference
                  definitionId="org.bonitasoft.studio.diagram.custom.definition.extractSubprocessSelection">
            </reference>
         </activeWhen>
      </handler>
586
      <handler
587 588
            commandId="org.bonitasoft.studio.application.new"
            class="org.bonitasoft.studio.diagram.custom.commands.NewDiagramCommandHandler">
589
         <activeWhen>
590 591 592 593 594 595 596 597 598 599 600 601 602
            <with
                  variable="activeMenuSelection">
               <and>
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <test
                           property="org.bonitasoft.studio.diagram.isDiagramFolder">
                     </test>
                  </iterate>
               </and>
            </with>
603 604
         </activeWhen>
      </handler>
605
      <handler
606 607
            commandId="org.bonitasoft.studio.application.export"
            class="org.bonitasoft.studio.diagram.custom.commands.ExportDiagramHandler">
608
         <activeWhen>
609 610 611 612 613 614 615 616 617 618 619 620 621
            <with
                  variable="activeMenuSelection">
               <and>
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <test
                           property="org.bonitasoft.studio.diagram.isDiagramFile">
                     </test>
                  </iterate>
               </and>
            </with>
622 623
         </activeWhen>
      </handler>
624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837
   </extension>
   <extension
         point="org.eclipse.core.expressions.definitions">
      <definition
            id="org.bonitasoft.studio.diagram.custom.definition.processWithASelection">
         <and>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="selection">
               <iterate
                     ifEmpty="false"
                     operator="and">
                  <instanceof
                        value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                  </instanceof>
               </iterate>
            </with>
         </and>
      </definition>
      <definition
            id="org.bonitasoft.studio.diagram.custom.definition.copySelection">
         <and>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="selection">
               <iterate
                     ifEmpty="false"
                     operator="and">
                  <instanceof
                        value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                  </instanceof>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.SubProcessEvent2EditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.Lane2EditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.diagram.custom.parts.CustomSubprocessEventCompartmentEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneLaneCompartmentEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolPoolCompartmentEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.MainProcessEditPart">
                     </instanceof>
                  </not>
               </iterate>
            </with>
         </and>
      </definition>
      <definition
            id="org.bonitasoft.studio.diagram.custom.definition.pasteSelection">
         <and>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="selection">
               <iterate
                     ifEmpty="false"
                     operator="and">
                  <or>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneLaneCompartmentEditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneEditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolEditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.SubProcessEvent2EditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolPoolCompartmentEditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.Lane2EditPart">
                     </instanceof>
                     <instanceof
                           value="org.bonitasoft.studio.diagram.custom.parts.CustomSubprocessEventCompartmentEditPart">
                     </instanceof>
                  </or>
               </iterate>
            </with>
         </and>
      </definition>
      <definition
            id="org.bonitasoft.studio.diagram.custom.definition.extractSubprocessSelection">
         <and>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="selection">
               <iterate
                     ifEmpty="false"
                     operator="and">
                  <instanceof
                        value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                  </instanceof>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.Lane2EditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.LaneLaneCompartmentEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.PoolPoolCompartmentEditPart">
                     </instanceof>
                  </not>
                  <not>
                     <instanceof
                           value="org.bonitasoft.studio.model.process.diagram.edit.parts.MainProcessEditPart">
                     </instanceof>
                  </not>
               </iterate>
            </with>
         </and>
      </definition>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
      <viewProvider
            class="org.bonitasoft.studio.diagram.custom.providers.CustomProcessViewProvider">
         <Priority
               name="Medium">
         </Priority>
      </viewProvider>
   </extension>
   <extension
         point="org.eclipse.gmf.runtime.diagram.ui.layoutProviders">
      <layoutProvider
            class="org.bonitasoft.studio.diagram.custom.providers.TopDownLayoutProvider">
         <Priority
               name="Low">
         </Priority>
      </layoutProvider>
   </extension>
   <extension
         point="org.bonitasoft.studio.preferences.prefrenceFieldEditorContribution">
      <fieldEditor
            class="org.bonitasoft.studio.diagram.custom.preferences.ShowDiagramGridField">
      </fieldEditor>
   </extension>
   <extension
         point="org.bonitasoft.studio.repositoryStore">
      <repositoryStore
            class="org.bonitasoft.studio.diagram.custom.repository.DiagramRepositoryStore">
      </repositoryStore>
      <repositoryStore
            class="org.bonitasoft.studio.diagram.custom.repository.ProcessConfigurationRepositoryStore">
      </repositoryStore>
   </extension>
   <extension
         point="org.bonitasoft.studio.bosArchiveProvider">
      <bosArchiveProvider
Romain Bioteau's avatar
Romain Bioteau committed
838
            providerClass="org.bonitasoft.studio.diagram.custom.repository.DiagramFileStoreBOSArchiveProvider">
839 840
      </bosArchiveProvider>
   </extension>
841
   <extension
842 843
         point="org.eclipse.ui.perspectives">
      <perspective
844
            name="%processPerspective"
845
            class="org.bonitasoft.studio.diagram.custom.perspective.PerspectiveProcessFactory"
846
            id="org.bonitasoft.studio.perspective.process">
847 848 849 850 851 852 853 854 855
      </perspective>
      </extension>
<extension
      point="org.bonitasoft.studio.common.configurationIdProvider">
   <configurationIdProvider
         configurationIdProvider="org.bonitasoft.studio.diagram.custom.ConfigurationIdProvider"
         priority="1">
   </configurationIdProvider>
</extension>
856 857 858 859 860 861 862 863 864
<extension
      point="org.eclipse.gmf.runtime.common.ui.services.editorProviders">
   <EditorProvider
         class="org.bonitasoft.studio.diagram.custom.providers.DiagramEditorProvider">
      <Priority
            name="Medium">
      </Priority>
   </EditorProvider>
</extension>
865 866 867 868 869 870
<extension
      point="org.eclipse.core.expressions.propertyTesters">
   <propertyTester
         class="org.bonitasoft.studio.diagram.custom.DiagramPropertyTester"
         id="org.bonitasoft.studio.diagram.custom.propertyTester"
         namespace="org.bonitasoft.studio.diagram"
871
         properties="isDiagramFolder,isDiagramFile,isSelectedDiagramActive"
872 873 874
         type="org.eclipse.core.runtime.IAdaptable">
   </propertyTester>
</extension>
Adrien's avatar
Adrien committed
875 876 877 878 879 880 881
<extension
      point="org.eclipse.ui.commandImages">
   <image
         commandId="org.bonitasoft.studio.diagram.command.newDiagram"
         icon="icons/ProcessDiagramFile.gif">
   </image>
</extension>
882 883 884 885 886 887 888
<extension
         id="org.bonitasoft.studio.diagram.custom.fragment"
         point="org.eclipse.e4.workbench.model">
      <fragment
            uri="fragment.e4xmi">
      </fragment>
   </extension>
889
</plugin>