plugin.xml 35.9 KB
Newer Older
Romain Bioteau's avatar
Romain Bioteau committed
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
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * Copyright (C) 2009 BonitaSoft S.A.
 * BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2.0 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 -->
<?eclipse version="3.4"?>
<plugin>
   
   <extension-point id="PropertiesView" name="Properties View Contribution" schema="schema/PropertiesView.exsd"/>
   
   <extension-point id="prestartup" name="Actions to hoot at the preStartup of the workbench" schema="schema/prestartup.exsd"/>
   <extension-point id="preshutdown" name="Actions to hoot at the preShutdown of the workbench" schema="schema/preshutdown.exsd"/>
   <extension-point id="postImport" name="Actions to hook after Import" schema="schema/postImport.exsd"/>
   <extension-point id="preImport" name="Actions to hook before Import" schema="schema/preImport.exsd"/>
   <extension
         id="application"
         point="org.eclipse.core.runtime.applications">
      <application
            thread="main"
            visible="true">
         <run
               class="org.bonitasoft.studio.application.BonitaStudioApplication">
         </run>
      </application>
   </extension>
      <extension
         point="org.eclipse.ui.perspectiveExtensions">
      <perspectiveExtension
Romain Bioteau's avatar
Romain Bioteau committed
44
            targetID="*">
45 46 47 48
         <hiddenMenuItem
               id="org.eclipse.ui.run">
         </hiddenMenuItem>
      </perspectiveExtension>
Romain Bioteau's avatar
Romain Bioteau committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.ui.main.menu">
         <menu
               id="org.bonitasoft.studio.processusMenu"
               label="%fileMenu_Label">
            <command
                  commandId="org.bonitasoft.studio.diagram.command.newDiagram"
                  disabledIcon="icons/menuIcons/new_disabled.png"
                  hoverIcon="icons/menuIcons/new_hover.png"
                  icon="icons/menuIcons/new.png"
                  label="%newProcessAction_Label"
                  style="push">
            </command>
            <command
                  commandId="org.bonitasoft.studio.diagram.command.openDiagram"
                  disabledIcon="icons/menuIcons/open_disabled.png"
                  hoverIcon="icons/menuIcons/open_hover.png"
                  icon="icons/menuIcons/open.png"
                  label="%openProcess_label"
                  style="push">
            </command>
73 74 75 76 77 78 79 80
            <command
                  commandId="org.bonitasoft.studio.diagram.command.deleteDiagram"
                  disabledIcon="icons/menuIcons/open_disabled.png"
                  hoverIcon="icons/menuIcons/open_hover.png"
                  icon="icons/menuIcons/open.png"
                  label="%deleteProcess_label"
                  style="push">
            </command>
Romain Bioteau's avatar
BS-8786  
Romain Bioteau committed
81 82 83 84 85
            <command
                  commandId="org.bonitasoft.studio.application.command.rename"
                  label="%renameLabel"
                  style="push">
            </command>
azara's avatar
azara committed
86
            <menu
azara's avatar
azara committed
87
                  icon="icons/menuIcons/recently.png"
azara's avatar
azara committed
88 89 90 91 92 93
                  label="%RecentlyModified">
               <dynamic
                     class="org.bonitasoft.studio.application.actions.ProcessListContribution"
                     id="org.bonitasoft.studio.application.openRecently">
               </dynamic>
            </menu>
Romain Bioteau's avatar
Romain Bioteau committed
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
            <command
                  commandId="org.eclipse.ui.file.save"
                  disabledIcon="icons/menuIcons/save_disabled.png"
                  hoverIcon="icons/menuIcons/save_hover.png"
                  icon="icons/menuIcons/save.png"
                  label="%saveProcess_label"
                  style="push">
            </command>
            <command
                  commandId="org.eclipse.ui.file.saveAll"
                  disabledIcon="icons/menuIcons/save_disabled.png"
                  hoverIcon="icons/menuIcons/save_hover.png"
                  icon="icons/menuIcons/save_all.png"
                  label="%saveAll_label"
                  style="push">
            </command>
            <command
                  commandId="org.bonitasoft.studio.application.command.saveAs"
                  disabledIcon="icons/duplicate_disabled.png"
                  icon="icons/duplicate.png"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.separator2"
                  visible="true">
            </separator>
120
            <menu
Romain Bioteau's avatar
Romain Bioteau committed
121
                  id="org.bonitasoft.studio.menu.import"
122 123 124 125 126 127 128 129 130 131 132
                  label="%importLabel">
               <command
                     commandId="org.bonitasoft.studio.importer.bos.command"
                     icon="icons/menuIcons/import.png"
                     style="push">
               </command>
               <command
                     commandId="org.bonitasoft.studio.importer.other.command"
                     style="push">
               </command>
            </menu>
Romain Bioteau's avatar
Romain Bioteau committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
            <separator
                  name="org.bonitasoft.studio.application.separator5"
                  visible="true">
            </separator>
            <command
                  commandId="org.bonitasoft.studio.application.printCommand"
                  disabledIcon="icons/menuIcons/print_disabled.png"
                  hoverIcon="icons/menuIcons/print_hover.png"
                  icon="icons/menuIcons/print.png"
                  label="%printLabel"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.separator3"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.file.close"
                  icon="icons/menuIcons/close.png"
                  label="%close"
                  style="push">
            </command>
            <command
                  commandId="org.eclipse.ui.file.closeAll"
                  disabledIcon="icons/menuIcons/close_all_disabled.png"
                  icon="icons/menuIcons/close_all.png"
                  label="%closeAll"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.separator4"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.file.exit"
                  icon="icons/menuIcons/exit.png"
                  label="%exitAction_label"
                  style="push">
            </command>
            <visibleWhen
                  checkEnabled="true">
               <reference
                     definitionId="isBonitaPerspectiveActive">
               </reference>
            </visibleWhen>
         </menu>
         <menu
               id="org.bonitasoft.studio.menu.edit"
               label="%editMenu_label">
            <command
Romain Bioteau's avatar
Romain Bioteau committed
183
                  commandId="org.eclipse.ui.views.showView"
Romain Bioteau's avatar
Romain Bioteau committed
184 185
                  icon="icons/find.png"
                  label="%findLabel"
Romain Bioteau's avatar
Romain Bioteau committed
186
                  mnemonic="F"
Romain Bioteau's avatar
Romain Bioteau committed
187
                  style="push">
Romain Bioteau's avatar
Romain Bioteau committed
188 189 190 191
               <parameter
                     name="org.eclipse.ui.views.showView.viewId"
                     value="org.bonitasoft.studio.views.overview.tree">
               </parameter>
Romain Bioteau's avatar
Romain Bioteau committed
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252
            </command>
             <separator
                  name="org.bonitasoft.studio.application.separator20"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.edit.undo"
                  disabledIcon="icons/undo_disabled.png"
                  icon="icons/undo.png"
                  label="%undoLabel"
                  style="push">
            </command>
            <command
                  commandId="org.eclipse.ui.edit.redo"
                  disabledIcon="icons/redo_disabled.png"
                  icon="icons/redo.png"
                  label="%redoLabel"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.separator1"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.edit.copy"
                  disabledIcon="icons/menuIcons/copy_disabled.png"
                  hoverIcon="icons/menuIcons/copy_hover.png"
                  icon="icons/menuIcons/copy.png"
                  label="%copyLabel"
                  style="push">
            </command>
            <command
                  commandId="org.eclipse.ui.edit.paste"
                  disabledIcon="icons/menuIcons/paste_disabled.png"
                  hoverIcon="icons/menuIcons/paste_hover.png"
                  icon="icons/menuIcons/paste.png"
                  label="%pasteLabel"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.separator2"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.window.preferences"
                  disabledIcon="icons/menuIcons/preferences_disabled.png"
                  icon="icons/menuIcons/preferences.png"
                  style="push">
            </command>
            <visibleWhen
                  checkEnabled="true">
               <reference
                     definitionId="isBonitaPerspectiveActive">
               </reference>
            </visibleWhen>
         </menu>
         
         <menu
               id="org.bonitasoft.studio.menu.view"
               label="%viewMenu_label">
            <menu
Romain Bioteau's avatar
Romain Bioteau committed
253
                  id="org.bonitasoft.studio.menu.view.coolbar"
Romain Bioteau's avatar
Romain Bioteau committed
254 255 256 257 258 259 260 261 262 263 264
                  label="%CoolBarLabel">
               <command
                     commandId="org.bonitasoft.studio.application.smallCoolbar"
                     label="%small">
               </command>
               <command
                     commandId="org.bonitasoft.studio.application.normalCoolbar"
                     label="%normal">
               </command>
            </menu>
            <command
Romain Bioteau's avatar
Romain Bioteau committed
265
                  commandId="org.eclipse.ui.views.showView"
Romain Bioteau's avatar
Romain Bioteau committed
266 267 268
                  icon="icons/show_view.png"
                  label="%showOverview_label"
                  style="push">
Romain Bioteau's avatar
Romain Bioteau committed
269 270 271 272
               <parameter
                     name="org.eclipse.ui.views.showView.viewId"
                     value="org.bonitasoft.studio.views.overview">
               </parameter>
Romain Bioteau's avatar
Romain Bioteau committed
273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312
            </command>
            <command
                  commandId="org.bonitasoft.studio.application.resetWindowCommand"
                  disabledIcon="icons/reset_view_disabled.png"
                  icon="icons/reset_view.png"
                  label="%resetPerspective_label"
                  style="push">
            </command>
            <command
                  commandId="org.bonitasoft.studio.application.fullscreen"
                  icon="icons/full_screen.png"
                  style="push">
            </command>
            <visibleWhen
                  checkEnabled="true">
               <reference
                     definitionId="isBonitaPerspectiveActive">
               </reference>
            </visibleWhen>
         </menu>
        
         <!--menu
               label="%selectProfile">
            <command
                  commandId="org.bonitasoft.studio.application.switchToAnalyst"
                  icon="icons/bonitasoft-icon-16-16-transparent.png"
                  label="%analystMode">
            </command>
            <command
                  commandId="org.bonitasoft.studio.application.commands.switchToDeveloper"
                  icon="icons/javaPerspective.gif"
                  label="%developerMode">
            </command>
         </menu-->
         <menu
               id="org.bonitasoft.studio.menu.help"
               label="%help_label">
            <command
                  commandId="org.bonitasoft.studio.application.openIntroCommand"
                  hoverIcon="icons/menuIcons/bonita_hover.png"
Romain Bioteau's avatar
Romain Bioteau committed
313
                  icon="icons/bonitasoft-icon-16-16-transparent.png"
Romain Bioteau's avatar
Romain Bioteau committed
314 315 316 317
                  id="org.bonitasoft.studio.helpMenu.welcomeMenu"
                  label="%openWelcomePage_label"
                  style="push">
            </command>
Romain Bioteau's avatar
BS-7837  
Romain Bioteau committed
318

Romain Bioteau's avatar
Romain Bioteau committed
319 320 321 322 323
            <command
                  commandId="org.bonitasoft.studio.application.showHelp"
                  disabledIcon="icons/menuIcons/help_disabled.png"
                  hoverIcon="icons/menuIcons/help_hover.png"
                  icon="icons/menuIcons/help.png"
Romain Bioteau's avatar
Romain Bioteau committed
324
                  label="%online_documentation"
Romain Bioteau's avatar
Romain Bioteau committed
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.help.separator4"
                  visible="true">
            </separator>
            <command
                  commandId="org.bonitasoft.studio.application.openLog"
                  icon="icons/log.png"
                  label="%openLog_label"
                  style="push">
            </command>
            <command
                  commandId="org.bonitasoft.studio.application.openEngineLog"
                  icon="icons/log.png"
                  label="%openEngineLog_label"
                  style="push">
            </command>
            <separator
                  name="org.bonitasoft.studio.application.help.separator2"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.ui.help.aboutAction"
azara's avatar
azara committed
349
                  icon="icons/menuIcons/about.png"
Romain Bioteau's avatar
Romain Bioteau committed
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447
                  style="push">
            </command>
            <visibleWhen
                  checkEnabled="true">
               <reference
                     definitionId="isBonitaPerspectiveActive">
               </reference>
            </visibleWhen>
            </menu>
         </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.SaveProcessAsCommand"
            id="org.bonitasoft.studio.application.command.saveAs"
            name="%saveAs_label">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.OpenIntroCommandHandler"
            id="org.bonitasoft.studio.application.openIntroCommand"
            name="%openWelcomePage_label">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.ResetPerspectiveCommand"
            id="org.bonitasoft.studio.application.resetWindowCommand"
            name="%resetPerspective_label">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.ShowHelpCommand"
            id="org.bonitasoft.studio.application.showHelp"
            name="%showHelp_label">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.OpenConsoleCommand"
            id="org.bonitasoft.studio.application.openConsole"
            name="%openConsoleActionLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.OpenApplicationCommand"
            id="org.bonitasoft.studio.application.openApplication"
            name="%openAppplicationActionLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.OpenLogCommand"
            id="org.bonitasoft.studio.application.openLog"
            name="%openLog_commandLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.PrintCommandHandler"
            id="org.bonitasoft.studio.application.printCommand"
            name="%printLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.OpenEngineLogCommand"
            id="org.bonitasoft.studio.application.openEngineLog"
            name="%openEngineLog_commandLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.RefreshConnectorHandler"
            id="org.bonitasoft.studio.application.refreshconnectorcommand"
            name="%refreshConnectors_commandLabel">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.SwitchPaletteMode"
            id="org.bonitasoft.studio.application.switchPalette"
            name="switch palette">
         <commandParameter
               id="org.bonitasoft.studio.application.switch.advanced"
               name="advanced"
               optional="true">
         </commandParameter>
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.SwitchPaletteMode"
            id="org.bonitasoft.studio.application.paletteSimple"
            name="switch palette to simple">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.SwitchPaletteMode"
            id="org.bonitasoft.studio.application.paletteAdvanced"
            name="switch palette to advanced">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.coolbar.SmallCoolBarHandler"
            id="org.bonitasoft.studio.application.smallCoolbar"
            name="%small">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.coolbar.NormalCoolBarHandler"
            id="org.bonitasoft.studio.application.normalCoolbar"
            name="%normal">
      </command>
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.FullscreenHandler"
            id="org.bonitasoft.studio.application.fullscreen"
            name="%fullscreen">
      </command>
Romain Bioteau's avatar
BS-8786  
Romain Bioteau committed
448 449 450 451 452
      <command
            defaultHandler="org.bonitasoft.studio.application.actions.RenameDiagramCommandHandler"
            id="org.bonitasoft.studio.application.command.rename"
            name="Rename Command">
      </command>
Romain Bioteau's avatar
Romain Bioteau committed
453 454 455 456 457
      <command
            defaultHandler="org.bonitasoft.studio.application.handler.ImportArtifactsFromZipHandler"
            id="org.bonitasoft.studio.repository.importArtifacts"
            name="import artifacts">
      </command>
Romain Bioteau's avatar
Romain Bioteau committed
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512
   </extension>
   <extension
         point="org.eclipse.ui.views">
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.BonitaContentOutlineView"
            icon="icons/overview.png"
            id="org.bonitasoft.studio.views.overview"
            name="%overviewViewName"
            restorable="true">
      </view>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.process.BonitaApplicationPropertiesView"
            icon="icons/menuIcons/form.png"
            id="org.bonitasoft.studio.views.properties.application"
            name="%Application"
            restorable="true">
      </view>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.process.BonitaGeneralProcessPropertiesView"
            icon="icons/details.png"
            id="org.bonitasoft.studio.views.properties.process.general"
            name="%General_process"
            restorable="true">
      </view>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.form.BonitaGeneralFormPropertiesView"
            icon="icons/details.png"
            id="org.bonitasoft.studio.views.properties.form.general"
            name="%General_form"
            restorable="true">
      </view>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.form.BonitaAppearancePropertiesView"
            icon="icons/appearanceView.png"
            id="org.bonitasoft.studio.views.properties.form.appearance"
            name="%Appearance"
            restorable="true">
      </view>
      <category
            id="org.bonitasoft.studio.application.bonita"
            name="Bonita">
      </category>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.process.BonitaAppearencePropertiesView"
            icon="icons/appearanceView.png"
            id="org.bonitasoft.studio.views.properties.process.appearance"
            name="%Appearance"
            restorable="true">
      </view>
Arelie Zara's avatar
Arelie Zara committed
513 514 515 516 517
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.BonitaContentOutlineTreeView"
            icon="icons/overview.png"
            id="org.bonitasoft.studio.views.overview.tree"
518
            name="%TreeOverView"
Arelie Zara's avatar
Arelie Zara committed
519 520
            restorable="true">
      </view>
Romain Bioteau's avatar
Romain Bioteau committed
521 522
      <view
            category="org.bonitasoft.studio.application.bonita"
azara's avatar
azara committed
523
            class="org.bonitasoft.studio.application.views.process.BonitaDataPropertiesView"
azara's avatar
azara committed
524
            icon="icons/Picto_Studio_Data_16x16.png"
azara's avatar
azara committed
525 526 527 528 529 530 531
            id="org.bonitasoft.studio.views.properties.process.data"
            name="%Data"
            restorable="true">
      </view>
      <view
            category="org.bonitasoft.studio.application.bonita"
            class="org.bonitasoft.studio.application.views.process.BonitaExecutionPropertiesView"
Romain Bioteau's avatar
Romain Bioteau committed
532
            icon="icons/Execution-D.png"
azara's avatar
azara committed
533 534
            id="org.bonitasoft.studio.views.properties.process.execution"
            name="%Execution"
Romain Bioteau's avatar
Romain Bioteau committed
535 536
            restorable="true">
      </view>
Romain Bioteau's avatar
Romain Bioteau committed
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554
   </extension>
   <extension
         point="org.eclipse.ui.activities">
      <activity
            description="searchActivity to remove from studio"
            id="org.bonitasoft.studio.application.searchActivity"
            name="SearchActivity">
      </activity>
      <activityPatternBinding
            activityId="org.bonitasoft.studio.application.searchActivity"
            pattern="org.eclipse.search.*">
      </activityPatternBinding>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.bonitasoft.studio.application.actions.UndoCommandHandler"
            commandId="org.eclipse.ui.edit.undo">
555
         <enabledWhen>
Romain Bioteau's avatar
Romain Bioteau committed
556 557 558
            <reference
                  definitionId="isActiveEditorAnInstanceOfBonitaEditor">
            </reference>
559
         </enabledWhen>
Romain Bioteau's avatar
Romain Bioteau committed
560 561 562 563
      </handler>
      <handler
            class="org.bonitasoft.studio.application.actions.RedoCommandHandler"
            commandId="org.eclipse.ui.edit.redo">
564
         <enabledWhen>
Romain Bioteau's avatar
Romain Bioteau committed
565 566 567
            <reference
                  definitionId="isActiveEditorAnInstanceOfBonitaEditor">
            </reference>
568
         </enabledWhen>
Romain Bioteau's avatar
Romain Bioteau committed
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688
      </handler>
      <handler
            class="org.bonitasoft.studio.application.actions.SaveCommandHandler"
            commandId="org.eclipse.ui.file.save">
         <activeWhen>
            <reference
                  definitionId="isBonitaPerspectiveActive">
            </reference>
         </activeWhen>
      </handler>
      <handler
            class="org.bonitasoft.studio.application.actions.RefreshHandler"
            commandId="org.eclipse.ui.file.refresh">
         <activeWhen>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.eclipse.ui.editors.text.TextEditor">
               </instanceof>
            </with>
         </activeWhen>
      </handler>
      <handler
            class="org.bonitasoft.studio.application.actions.AboutDialogHandler"
            commandId="org.eclipse.ui.help.aboutAction">
          <activeWhen>
             <and>
                <reference
                      definitionId="isABonitaProduct">
                </reference>
                <with
                      variable="activeContexts">
                   <iterate
                         ifEmpty="true"
                         operator="or">
                      <equals
                            value="org.eclipse.ui.contexts.window">
                      </equals>
                   </iterate>
                </with>
             </and>
        </activeWhen>
    </handler>
   </extension>
   <extension
         point="org.eclipse.core.expressions.definitions">
      <definition
            id="isActiveEditorAnInstanceOfBonitaEditor">
         <or>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.model.process.diagram.form.part.FormDiagramEditor">
               </instanceof>
            </with>
            <with
                  variable="activeEditor">
               <instanceof
                     value="org.bonitasoft.studio.themes.editors.themeMultiPageEditor">
               </instanceof>
            </with>
         </or>
      </definition>
      <definition
            id="isABonitaProduct">
         <or>
            <with
                  variable="org.eclipse.core.runtime.Platform">
               <test
                     property="org.eclipse.core.runtime.product"
                     value="org.bonitasoft.studio.product">
               </test>
            </with>
         </or>
      </definition>
      <definition
            id="isBonitaPerspectiveActive">
            <or>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.common.perspective.form">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.birt.ui.perspective.birt">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.perspective.process">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.perspective.java">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.perspective.textEditor">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.perspective.theme">
            </equals>
         </with>
689 690 691 692 693 694 695 696 697 698 699 700
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.common.perspective.form.migration">
            </equals>
         </with>
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.migration.perspective.process">
            </equals>
         </with>
701 702 703 704 705 706
         <with
               variable="activeWorkbenchWindow.activePerspective">
            <equals
                  value="org.bonitasoft.studio.rest.api.extension.perspective">
            </equals>
         </with>
707 708 709 710
         <with
               variable="activeWorkbenchWindow.activePerspective">
           <equals
                  value="org.bonitasoft.studio.la.perspective">
711 712 713 714 715 716
            </equals>
         </with>
          <with
               variable="activeWorkbenchWindow.activePerspective">
           <equals
                  value="com.bonitasoft.studio.la.perspective">
717 718
            </equals>
         </with>
Romain Bioteau's avatar
Romain Bioteau committed
719 720 721 722 723 724 725 726 727 728 729 730 731 732
         </or>
      </definition>
      <definition
            id="isActiveEditorAnInstanceOfProcessEditor">
         <with
               variable="activeEditor">
            <instanceof
                  value="org.bonitasoft.studio.model.process.diagram.part.ProcessDiagramEditor">
            </instanceof>
         </with>
      </definition>
   </extension>

   <extension
733
         point="org.eclipse.ui.propertiesView">
Romain Bioteau's avatar
Romain Bioteau committed
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
      <excludeSources
            id="org.bonitasoft.studio.views.properties.application">
      </excludeSources>
      <excludeSources
            id="org.bonitasoft.studio.views.properties.form.general">
      </excludeSources>
      <excludeSources
            id="org.bonitasoft.studio.views.properties.appearance">
      </excludeSources>
      <excludeSources
            id="org.bonitasoft.studio.views.overview">
      </excludeSources>
   </extension>
   <extension
         point="org.eclipse.ui.splashHandlers">
      <splashHandlerProductBinding
            productId="org.bonitasoft.studio.product"
            splashId="org.bonitasoft.studio.application.bos.splashHandler">
      </splashHandlerProductBinding>
      <splashHandler
            class="org.bonitasoft.studio.application.splash.BOSSplashHandler"
            id="org.bonitasoft.studio.application.bos.splashHandler">
      </splashHandler>
   </extension>
   <extension
         point="org.bonitasoft.studio.common.poststartup">
      <contribution
            class="org.bonitasoft.studio.application.contribution.StudioPropertiesContributor"
            priority="0">
      </contribution>
Arelie Zara's avatar
Arelie Zara committed
764 765 766
      <contribution
            class="org.bonitasoft.studio.application.contribution.CheckJavaVersionPostStartupContribution">
      </contribution>
Romain Bioteau's avatar
Romain Bioteau committed
767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782
   </extension>
   <extension
         id="id1"
         point="org.eclipse.equinox.security.secureStorage">
      <provider
            class="org.bonitasoft.studio.application.security.BonitaStudioPasswordProvider"
            description="Bonita Studio default password provider"
            priority="10">
      </provider>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.bonitasoft.studio.application.fullscreen"
            contextId="org.eclipse.ui.contexts.dialogAndWindow"
            platform="win32"
Romain Bioteau's avatar
Romain Bioteau committed
783
            schemeId="org.bonitasoft.studio.application.scheme"
Romain Bioteau's avatar
Romain Bioteau committed
784 785 786 787 788 789
            sequence="F11">
      </key>
      <key
            commandId="org.bonitasoft.studio.application.fullscreen"
            contextId="org.eclipse.ui.contexts.dialogAndWindow"
            platform="cocoa"
Romain Bioteau's avatar
Romain Bioteau committed
790
            schemeId="org.bonitasoft.studio.application.scheme"
Romain Bioteau's avatar
Romain Bioteau committed
791 792 793 794 795 796
            sequence="M1+M3+F11">
      </key>
      <key
            commandId="org.bonitasoft.studio.application.fullscreen"
            contextId="org.eclipse.ui.contexts.dialogAndWindow"
            platform="gtk"
Romain Bioteau's avatar
Romain Bioteau committed
797
            schemeId="org.bonitasoft.studio.application.scheme"
Romain Bioteau's avatar
Romain Bioteau committed
798 799
            sequence="F11">
      </key>
Romain Bioteau's avatar
Romain Bioteau committed
800
      <key
Romain Bioteau's avatar
Romain Bioteau committed
801
            commandId="org.eclipse.ui.views.showView"
Romain Bioteau's avatar
Romain Bioteau committed
802
            contextId="org.bonitasoft.studio.model.process.diagram.form.ui.diagramContext"
Romain Bioteau's avatar
Romain Bioteau committed
803 804 805 806 807 808 809 810 811
            schemeId="org.bonitasoft.studio.application.scheme"
            sequence="M1+F">
         <parameter
               id="org.eclipse.ui.views.showView.viewId"
               value="org.bonitasoft.studio.views.overview.tree">
         </parameter>
      </key>
      <key
            commandId="org.eclipse.ui.views.showView"
Romain Bioteau's avatar
Romain Bioteau committed
812
            contextId="org.bonitasoft.studio.model.process.diagram.ui.diagramContext"
Romain Bioteau's avatar
Romain Bioteau committed
813 814 815 816 817 818 819 820 821
            schemeId="org.bonitasoft.studio.application.scheme"
            sequence="M1+F">
         <parameter
               id="org.eclipse.ui.views.showView.viewId"
               value="org.bonitasoft.studio.views.overview.tree">
         </parameter>
      </key>
      <key
            commandId="org.eclipse.ui.views.showView"
Romain Bioteau's avatar
Romain Bioteau committed
822
            contextId="org.eclipse.ui.contexts.dialogAndWindow"
Romain Bioteau's avatar
Romain Bioteau committed
823
            schemeId="org.bonitasoft.studio.application.scheme"
Romain Bioteau's avatar
Romain Bioteau committed
824
            sequence="M1+M3+O">
Romain Bioteau's avatar
Romain Bioteau committed
825 826 827 828
         <parameter
               id="org.eclipse.ui.views.showView.viewId"
               value="org.bonitasoft.studio.views.overview">
         </parameter>
Romain Bioteau's avatar
Romain Bioteau committed
829
      </key>
Romain Bioteau's avatar
Romain Bioteau committed
830 831 832 833 834
      <scheme
            id="org.bonitasoft.studio.application.scheme"
            name="BonitaBPM Scheme"
            parentId="org.eclipse.ui.defaultAcceleratorConfiguration">
      </scheme>
Romain Bioteau's avatar
Romain Bioteau committed
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896
   </extension>
   <extension
         point="org.bonitasoft.studio.application.prestartup">
      <contribution
            class="org.bonitasoft.studio.application.contribution.UpdateRSSContribution"
            priority="5">
      </contribution>
   </extension>
   <extension
         point="org.eclipse.ui.popupMenus">
      <viewerContribution
            id="org.bonitasoft.studio.application.refreshAction"
            targetID="#TextEditorContext">
         <action
               class="org.bonitasoft.studio.application.actions.EditorRefreshActionDelegate"
               icon="icons/refresh.png"
               id="org.bonitasoft.studio.application.refreshAction"
               label="%Refresh"
               menubarPath="additions">
         </action>
      </viewerContribution>
   </extension>
   <extension
         point="org.bonitasoft.studio.coolbarContributionItem">
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.NewDiagramCoolbarItem"
            priority="0"
            toolbarPosition="0">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.OpenDiagramCoolbarItem"
            priority="0"
            toolbarPosition="1">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.SaveCoolbarItem"
            priority="0"
            toolbarPosition="2">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.PrintCoolbarItem"
            priority="0"
            toolbarPosition="3">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.CopyCoolbarItem"
            priority="0"
            toolbarPosition="6">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.PasteCoolbarItem"
            priority="0"
            toolbarPosition="7">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.SeparatorCoolbarItem"
            priority="0"
            toolbarPosition="8">
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.PreferenceCoolbarItem"
            priority="0"
897
            toolbarPosition="18">
Romain Bioteau's avatar
Romain Bioteau committed
898 899 900 901
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.HelpCoolbarItem"
            priority="0"
902
            toolbarPosition="19">
Romain Bioteau's avatar
Romain Bioteau committed
903 904 905 906
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.WelcomeCoolbarItem"
            priority="0"
907
            toolbarPosition="20">
Romain Bioteau's avatar
Romain Bioteau committed
908 909 910 911
      </coolbarItem>
      <coolbarItem
            class="org.bonitasoft.studio.application.coolbar.SeparatorCoolbarItem"
            priority="0"
912
            toolbarPosition="15">
Romain Bioteau's avatar
Romain Bioteau committed
913 914
      </coolbarItem>
   </extension>
Romain Bioteau's avatar
BS-7774  
Romain Bioteau committed
915 916 917 918 919 920
   <extension
         point="org.eclipse.ui.startup">
      <startup
            class="org.bonitasoft.studio.application.BonitaStudioWorkbenchAdvisor">
      </startup>
   </extension>
921 922 923 924 925 926 927 928 929
   <extension
         point="org.eclipse.ui.contexts">
      <context
            description="Bonita context"
            id="org.bonitasoft.studio.context.id"
            name="Bonita"
            parentId="org.eclipse.ui.contexts.window">
      </context>
   </extension>
930 931 932 933 934 935 936 937 938
   <extension
         id="id1"
         point="org.eclipse.e4.workbench.model">
      <processor
            apply="always"
            beforefragment="false"
            class="org.bonitasoft.studio.application.RemoveQuickAccessProcessor">
      </processor>
   </extension>
Romain Bioteau's avatar
Romain Bioteau committed
939 940

</plugin>