1 /******************************************************************************* 2 * Copyright (c) 2000, 2018 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 * Lars Vogel <Lars.Vogel@gmail.com> - Bug 440810, 440975, 431862 14 * Kaloyan Raev <kaloyan.r@zend.com> - Bug 322002 15 *******************************************************************************/ 16 package org.eclipse.ui; 17 18 /** 19 * Action ids for standard actions, groups in the workbench menu bar, and global 20 * actions. 21 * <p> 22 * This interface contains constants only; it is not intended to be implemented 23 * or extended. 24 * </p> 25 * <h3>Standard menus</h3> 26 * <ul> 27 * <li>File menu (<code>M_FILE</code>)</li> 28 * <li>Edit menu (<code>M_EDIT</code>)</li> 29 * <li>Window menu (<code>M_WINDOW</code>)</li> 30 * <li>Help menu (<code>M_HELP</code>)</li> 31 * </ul> 32 * <h3>Standard group for adding top level menus</h3> 33 * <ul> 34 * <li>Extra top level menu group (<code>MB_ADDITIONS</code>)</li> 35 * </ul> 36 * <h3>Global actions</h3> 37 * <ul> 38 * <li>Undo (<code>UNDO</code>)</li> 39 * <li>Redo (<code>REDO</code>)</li> 40 * <li>Cut (<code>CUT</code>)</li> 41 * <li>Copy (<code>COPY</code>)</li> 42 * <li>Paste (<code>PASTE</code>)</li> 43 * <li>Delete (<code>DELETE</code>)</li> 44 * <li>Find (<code>FIND</code>)</li> 45 * <li>Select All (<code>SELECT_ALL</code>)</li> 46 * <li>Add Bookmark (<code>BOOKMARK</code>)</li> 47 * </ul> 48 * <h3>Standard File menu actions</h3> 49 * <ul> 50 * <li>Start group (<code>FILE_START</code>)</li> 51 * <li>End group (<code>FILE_END</code>)</li> 52 * <li>New action (<code>NEW</code>)</li> 53 * <li>Extra New-like action group (<code>NEW_EXT</code>)</li> 54 * <li>Close action (<code>CLOSE</code>)</li> 55 * <li>Close All action (<code>CLOSE_ALL</code>)</li> 56 * <li>Extra Close-like action group (<code>CLOSE_EXT</code>)</li> 57 * <li>Save action (<code>SAVE</code>)</li> 58 * <li>Save As action (<code>SAVE_AS</code>)</li> 59 * <li>Save All action (<code>SAVE_ALL</code>)</li> 60 * <li>Extra Save-like action group (<code>SAVE_EXT</code>)</li> 61 * <li>Import action (<code>IMPORT</code>)</li> 62 * <li>Export action (<code>EXPORT</code>)</li> 63 * <li>Extra Import-like action group (<code>IMPORT_EXT</code>)</li> 64 * <li>Quit action (<code>QUIT</code>)</li> 65 * </ul> 66 * <h3>Standard Edit menu actions</h3> 67 * <ul> 68 * <li>Start group (<code>EDIT_START</code>)</li> 69 * <li>End group (<code>EDIT_END</code>)</li> 70 * <li>Undo global action (<code>UNDO</code>)</li> 71 * <li>Redo global action (<code>REDO</code>)</li> 72 * <li>Extra Undo-like action group (<code>UNDO_EXT</code>)</li> 73 * <li>Cut global action (<code>CUT</code>)</li> 74 * <li>Copy global action (<code>COPY</code>)</li> 75 * <li>Paste global action (<code>PASTE</code>)</li> 76 * <li>Extra Cut-like action group (<code>CUT_EXT</code>)</li> 77 * <li>Delete global action (<code>DELETE</code>)</li> 78 * <li>Find global action (<code>FIND</code>)</li> 79 * <li>Select All global action (<code>SELECT_ALL</code>)</li> 80 * <li>Bookmark global action (<code>BOOKMARK</code>)</li> 81 * </ul> 82 * <h3>Standard Perspective menu actions</h3> 83 * <ul> 84 * <li>Extra Perspective-like action group (<code>VIEW_EXT</code>)</li> 85 * </ul> 86 * <h3>Standard Workbench menu actions</h3> 87 * <ul> 88 * <li>Start group (<code>WB_START</code>)</li> 89 * <li>End group (<code>WB_END</code>)</li> 90 * <li>Extra Build-like action group (<code>BUILD_EXT</code>)</li> 91 * <li>Build action (<code>BUILD</code>)</li> 92 * <li>Rebuild All action (<code>REBUILD_ALL</code>)</li> 93 * </ul> 94 * <h3>Standard Window menu actions</h3> 95 * <ul> 96 * <li>Extra Window-like action group (<code>WINDOW_EXT</code>)</li> 97 * </ul> 98 * <h3>Standard Help menu actions</h3> 99 * <ul> 100 * <li>Start group (<code>HELP_START</code>)</li> 101 * <li>End group (<code>HELP_END</code>)</li> 102 * <li>About action (<code>ABOUT</code>)</li> 103 * </ul> 104 * <h3>Standard pop-up menu groups</h3> 105 * <ul> 106 * <li>Managing group (<code>GROUP_MANAGING</code>)</li> 107 * <li>Reorganize group (<code>GROUP_REORGANIZE</code>)</li> 108 * <li>Add group (<code>GROUP_ADD</code>)</li> 109 * <li>File group (<code>GROUP_FILE</code>)</li> 110 * </ul> 111 * <p> 112 * To hook a global action handler, a view should use the following code: <code> 113 * IAction copyHandler = ...; 114 * view.getSite().getActionBars().setGlobalActionHandler( 115 * IWorkbenchActionConstants.COPY, 116 * copyHandler); 117 * </code> For editors, this should be done in the 118 * <code>IEditorActionBarContributor</code>. 119 * </p> 120 * 121 * @see org.eclipse.ui.IActionBars#setGlobalActionHandler 122 * 123 * Note: many of the remaining non-deprecated constants here are 124 * IDE-specific and should be deprecated and moved to a constant pool at 125 * the IDE layer (e.g. IIDEActionConstants). 126 * @noimplement This interface is not intended to be implemented by clients. 127 * @noextend This interface is not intended to be extended by clients. 128 */ 129 public interface IWorkbenchActionConstants { 130 131 // Standard menus: 132 /** 133 * <p> 134 * [Issue: MENU_PREFIX is "". It is used to prefix some of the other constants. 135 * There doesn't seem to be much point for this. Recommend deleting it. ] 136 * </p> 137 */ 138 String MENU_PREFIX = ""; //$NON-NLS-1$ 139 140 /** 141 * <p> 142 * [Issue: SEP is "/". It is not used anywhere. Recommend deleting it.] 143 * </p> 144 */ 145 String SEP = "/"; //$NON-NLS-1$ 146 147 /** 148 * Name of standard File menu (value <code>"file"</code>). 149 */ 150 String M_FILE = MENU_PREFIX + "file"; //$NON-NLS-1$ 151 152 /** 153 * Name of standard Edit menu (value <code>"edit"</code>). 154 */ 155 String M_EDIT = MENU_PREFIX + "edit"; //$NON-NLS-1$ 156 157 /** 158 * Name of standard View menu (value <code>"view"</code>). 159 * 160 * @deprecated Since 3.0. This is no longer used. 161 */ 162 @Deprecated 163 String M_VIEW = MENU_PREFIX + "view"; //$NON-NLS-1$ 164 165 /** 166 * Name of standard Workbench menu (value <code>"workbench"</code>). 167 * 168 * @deprecated Since 3.0. This is no longer used. 169 */ 170 @Deprecated 171 String M_WORKBENCH = MENU_PREFIX + "workbench"; //$NON-NLS-1$ 172 173 // menu reorg 174 175 /** 176 * Name of standard Perspective menu (value <code>"perspective"</code>). 177 * 178 * @since 3.107 179 */ 180 String M_PERSPECTIVE = MENU_PREFIX + "perspective"; //$NON-NLS-1$ 181 182 /** 183 * Name of standard Navigate menu (value <code>"navigate"</code>). 184 */ 185 String M_NAVIGATE = MENU_PREFIX + "navigate"; //$NON-NLS-1$ 186 187 /** 188 * Name of standard Project menu (value <code>"project"</code>). 189 */ 190 String M_PROJECT = MENU_PREFIX + "project"; //$NON-NLS-1$ 191 192 // end menu reorg 193 194 /** 195 * Name of standard Window menu (value <code>"window"</code>). 196 */ 197 String M_WINDOW = MENU_PREFIX + "window"; //$NON-NLS-1$ 198 199 /** 200 * Name of Launch window menu (value <code>"launch"</code>). 201 */ 202 String M_LAUNCH = MENU_PREFIX + "launch"; //$NON-NLS-1$ 203 204 /** 205 * Name of standard Help menu (value <code>"help"</code>). 206 */ 207 String M_HELP = MENU_PREFIX + "help"; //$NON-NLS-1$ 208 209 /** 210 * ID of the Project configure popup menu, can be used in menuContributions and 211 * objectContributions. 212 * 213 * @since 3.5 214 */ 215 String M_PROJECT_CONFIGURE = "org.eclipse.ui.projectConfigure"; //$NON-NLS-1$ 216 217 // Standard area for adding top level menus: 218 /** 219 * Name of group for adding new top-level menus (value 220 * <code>"additions"</code>). 221 */ 222 String MB_ADDITIONS = "additions"; // Group. //$NON-NLS-1$ 223 224 // Standard file actions: 225 /** 226 * File menu: name of group for start of menu (value <code>"fileStart"</code>). 227 */ 228 String FILE_START = "fileStart"; // Group. //$NON-NLS-1$ 229 230 /** 231 * File menu: name of group for end of menu (value <code>"fileEnd"</code>). 232 */ 233 String FILE_END = "fileEnd"; // Group. //$NON-NLS-1$ 234 235 /** 236 * File menu: name of standard New action (value <code>"new"</code>). 237 * 238 * @deprecated in 3.0. Use <code>org.eclipse.ui.ActionFactory.NEW.getId()</code> 239 * instead. 240 */ 241 @Deprecated 242 String NEW = "new"; //$NON-NLS-1$ 243 244 /** 245 * File menu: name of group for extra New-like actions (value 246 * <code>"new.ext"</code>). 247 */ 248 String NEW_EXT = "new.ext"; // Group. //$NON-NLS-1$ 249 250 /** 251 * File menu: name of standard Close action (value <code>"close"</code>). 252 * 253 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#CLOSE 254 * ActionFactory.CLOSE.getId()} instead. 255 */ 256 @Deprecated 257 String CLOSE = "close"; //$NON-NLS-1$ 258 259 /** 260 * File menu: name of standard Close All action (value <code>"closeAll"</code>). 261 * 262 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#CLOSE_ALL 263 * ActionFactory.CLOSE_ALL.getId()} instead. 264 */ 265 @Deprecated 266 String CLOSE_ALL = "closeAll"; //$NON-NLS-1$ 267 268 /** 269 * File menu: name of group for extra Close-like actions (value 270 * <code>"close.ext"</code>). 271 */ 272 String CLOSE_EXT = "close.ext"; // Group. //$NON-NLS-1$ 273 274 /** 275 * File menu: name of standard Save action (value <code>"save"</code>). 276 * 277 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#SAVE 278 * ActionFactory.SAVE.getId()} instead. 279 */ 280 @Deprecated 281 String SAVE = "save"; //$NON-NLS-1$ 282 283 /** 284 * File menu: name of standard Save As action (value <code>"saveAs"</code>). 285 * 286 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#SAVE_AS 287 * ActionFactory.SAVE_AS.getId()} instead. 288 */ 289 @Deprecated 290 String SAVE_AS = "saveAs"; //$NON-NLS-1$ 291 292 /** 293 * File menu: name of standard Save All action (value <code>"saveAll"</code>). 294 * 295 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#SAVE_ALL 296 * ActionFactory.SAVE_ALL.getId()} instead. 297 */ 298 @Deprecated 299 String SAVE_ALL = "saveAll"; //$NON-NLS-1$ 300 301 /** 302 * File menu: name of group for extra Save-like actions (value 303 * <code>"save.ext"</code>). 304 */ 305 String SAVE_EXT = "save.ext"; // Group. //$NON-NLS-1$ 306 307 /** 308 * File menu: name of standard Print global action (value <code>"print"</code>). 309 * 310 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#PRINT 311 * ActionFactory.PRINT.getId()} instead. 312 */ 313 @Deprecated 314 String PRINT = "print"; // Global action. //$NON-NLS-1$ 315 316 /** 317 * File menu: name of group for extra Print-like actions (value 318 * <code>"print.ext"</code>). 319 * 320 * @since 3.0 321 */ 322 String PRINT_EXT = "print.ext"; // Group. //$NON-NLS-1$ 323 324 /** 325 * File menu: name of standard Import action (value <code>"import"</code>). 326 * 327 * @deprecated in 3.0. Use 328 * <code>org.eclipse.ui.ActionFactory.IMPORT.getId()</code> instead. 329 */ 330 @Deprecated 331 String IMPORT = "import"; //$NON-NLS-1$ 332 333 /** 334 * File menu: name of standard Export action (value <code>"export"</code>). 335 * 336 * @deprecated in 3.0. Use 337 * <code>org.eclipse.ui.ActionFactory.EXPORT.getId()</code> instead. 338 */ 339 @Deprecated 340 String EXPORT = "export"; //$NON-NLS-1$ 341 342 /** 343 * File menu: name of group for extra Import-like actions (value 344 * <code>"import.ext"</code>). 345 */ 346 String IMPORT_EXT = "import.ext"; // Group. //$NON-NLS-1$ 347 348 /** 349 * File menu: name of "Most Recently Used File" group. (value 350 * <code>"mru"</code>). 351 */ 352 String MRU = "mru"; //$NON-NLS-1$ 353 354 /** 355 * File menu: name of standard Quit action (value <code>"quit"</code>). 356 * 357 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#QUIT 358 * ActionFactory.QUIT.getId()} instead. 359 */ 360 @Deprecated 361 String QUIT = "quit"; //$NON-NLS-1$ 362 363 // Standard edit actions: 364 /** 365 * Edit menu: name of group for start of menu (value <code>"editStart"</code>). 366 */ 367 String EDIT_START = "editStart"; // Group. //$NON-NLS-1$ 368 369 /** 370 * Edit menu: name of group for end of menu (value <code>"editEnd"</code>). 371 */ 372 String EDIT_END = "editEnd"; // Group. //$NON-NLS-1$ 373 374 /** 375 * Edit menu: name of standard Undo global action (value <code>"undo"</code>). 376 * 377 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#UNDO 378 * ActionFactory.UNDO.getId()} instead. 379 */ 380 @Deprecated 381 String UNDO = "undo"; // Global action. //$NON-NLS-1$ 382 383 /** 384 * Edit menu: name of standard Redo global action (value <code>"redo"</code>). 385 * 386 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#REDO 387 * ActionFactory.REDO.getId()} instead. 388 */ 389 @Deprecated 390 String REDO = "redo"; // Global action. //$NON-NLS-1$ 391 392 /** 393 * Edit menu: name of group for extra Undo-like actions (value 394 * <code>"undo.ext"</code>). 395 */ 396 String UNDO_EXT = "undo.ext"; // Group. //$NON-NLS-1$ 397 398 /** 399 * Edit menu: name of standard Cut global action (value <code>"cut"</code>). 400 * 401 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#CUT 402 * ActionFactory.CUT.getId()} instead. 403 */ 404 @Deprecated 405 String CUT = "cut"; // Global action. //$NON-NLS-1$ 406 407 /** 408 * Edit menu: name of standard Copy global action (value <code>"copy"</code>). 409 * 410 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#COPY 411 * ActionFactory.COPY.getId()} instead. 412 */ 413 @Deprecated 414 String COPY = "copy"; // Global action. //$NON-NLS-1$ 415 416 /** 417 * Edit menu: name of standard Paste global action (value <code>"paste"</code>). 418 * 419 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#PASTE 420 * ActionFactory.PASTE.getId()} instead. 421 */ 422 @Deprecated 423 String PASTE = "paste"; // Global action. //$NON-NLS-1$ 424 425 /** 426 * Edit menu: name of group for extra Cut-like actions (value 427 * <code>"cut.ext"</code>). 428 */ 429 String CUT_EXT = "cut.ext"; // Group. //$NON-NLS-1$ 430 431 /** 432 * Edit menu: name of standard Delete global action (value 433 * <code>"delete"</code>). 434 * 435 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#DELETE 436 * ActionFactory.DELETE.getId()} instead. 437 */ 438 @Deprecated 439 String DELETE = "delete"; // Global action. //$NON-NLS-1$ 440 441 /** 442 * Edit menu: name of standard Find global action (value <code>"find"</code>). 443 * 444 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#FIND 445 * ActionFactory.FIND.getId()} instead. 446 */ 447 @Deprecated 448 String FIND = "find"; // Global action. //$NON-NLS-1$ 449 450 /** 451 * Edit menu: name of group for extra Find-like actions (value 452 * <code>"find.ext"</code>). 453 */ 454 String FIND_EXT = "find.ext"; // Group. //$NON-NLS-1$ 455 456 /** 457 * Edit menu: name of standard Select All global action (value 458 * <code>"selectAll"</code>). 459 * 460 * @deprecated in 3.0. Use 461 * {@link org.eclipse.ui.actions.ActionFactory#SELECT_ALL 462 * ActionFactory.SELECT_ALL.getId()} instead. 463 */ 464 @Deprecated 465 String SELECT_ALL = "selectAll"; // Global action. //$NON-NLS-1$ 466 467 /** 468 * Edit menu: name of standard Add Bookmark global action (value 469 * <code>"bookmark"</code>). 470 * 471 * @deprecated in 3.0. Use 472 * <code>org.eclipse.ui.ide.IDEActionFactory.BOOKMARK.getId()</code> 473 * instead. 474 */ 475 @Deprecated 476 String BOOKMARK = "bookmark"; // Global action. //$NON-NLS-1$ 477 478 /** 479 * Edit menu: name of standard Add Task global action (value 480 * <code>"addTask"</code>). 481 * 482 * @deprecated in 3.0. Use 483 * <code>org.eclipse.ui.ide.IDEActionFactory.ADD_TASK.getId()</code> 484 * instead. 485 */ 486 @Deprecated 487 String ADD_TASK = "addTask"; // Global action. //$NON-NLS-1$ 488 489 /** 490 * Edit menu: name of group for extra Add-like actions (value 491 * <code>"add.ext"</code>). 492 */ 493 String ADD_EXT = "add.ext"; // Group. //$NON-NLS-1$ 494 495 // Standard workbench actions: 496 /** 497 * Workbench menu: name of group for start of menu (value 498 * <code>"wbStart"</code>). 499 */ 500 String WB_START = "wbStart"; // Group. //$NON-NLS-1$ 501 502 /** 503 * Workbench menu: name of group for end of menu (value <code>"wbEnd"</code>). 504 */ 505 String WB_END = "wbEnd"; // Group. //$NON-NLS-1$ 506 507 /** 508 * Workbench menu: name of group for extra Build-like actions (value 509 * <code>"build.ext"</code>). 510 */ 511 String BUILD_EXT = "build.ext"; // Group. //$NON-NLS-1$ 512 513 /** 514 * Workbench menu: name of standard Build action (value <code>"build"</code>). 515 * 516 * @deprecated in 3.0. Use 517 * <code>org.eclipse.ui.ide.IDEActionFactory.BUILD.getId()</code> 518 * instead. 519 */ 520 @Deprecated 521 String BUILD = "build"; //$NON-NLS-1$ 522 523 /** 524 * Workbench menu: name of standard Rebuild All action (value 525 * <code>"rebuildAll"</code>). 526 * 527 * @deprecated in 3.0. Use 528 * <code>org.eclipse.ui.ide.IDEActionFactory.REBUILD_ALL.getId()</code> 529 * instead. 530 */ 531 @Deprecated 532 String REBUILD_ALL = "rebuildAll"; //$NON-NLS-1$ 533 534 // Workbench toolbar ids: 535 /** 536 * Workbench toolbar id for file toolbar group. 537 * 538 * @since 2.1 539 */ 540 String TOOLBAR_FILE = "org.eclipse.ui.workbench.file"; //$NON-NLS-1$ 541 542 /** 543 * Workbench toolbar id for edit toolbar group. 544 * 545 * @since 3.111 546 */ 547 String TOOLBAR_EDIT = "org.eclipse.ui.workbench.edit"; //$NON-NLS-1$ 548 549 /** 550 * Workbench toolbar id for navigate toolbar group. 551 * 552 * @since 2.1 553 */ 554 String TOOLBAR_NAVIGATE = "org.eclipse.ui.workbench.navigate"; //$NON-NLS-1$ 555 556 /** 557 * Workbench toolbar id for help toolbar group. 558 * 559 * @since 3.1 560 */ 561 String TOOLBAR_HELP = "org.eclipse.ui.workbench.help"; //$NON-NLS-1$ 562 563 // Workbench toolbar group ids. To add an item at the beginning of the group, 564 // use the GROUP id. To add an item at the end of the group, use the EXT id. 565 566 /** 567 * Group id for pin toolbar group. 568 * 569 * @since 2.1 570 */ 571 String PIN_GROUP = "pin.group"; //$NON-NLS-1$ 572 573 /** 574 * Group id for history toolbar group. 575 * 576 * @since 2.1 577 */ 578 String HISTORY_GROUP = "history.group"; //$NON-NLS-1$ 579 580 /** 581 * Group id for new toolbar group. 582 * 583 * @since 2.1 584 */ 585 String NEW_GROUP = "new.group"; //$NON-NLS-1$ 586 587 /** 588 * Group id for save group. 589 * 590 * @since 2.1 591 */ 592 String SAVE_GROUP = "save.group"; //$NON-NLS-1$ 593 594 /** 595 * Group id for build group. 596 * 597 * @since 3.111 598 */ 599 String EDIT_GROUP = "edit.group"; //$NON-NLS-1$ 600 601 /** 602 * Group id for build group. 603 * 604 * @since 2.1 605 */ 606 String BUILD_GROUP = "build.group"; //$NON-NLS-1$ 607 608 // Pop-up menu groups: 609 /** 610 * Pop-up menu: name of group for Managing actions (value 611 * <code>"group.managing"</code>). 612 */ 613 String GROUP_MANAGING = "group.managing"; //$NON-NLS-1$ 614 615 /** 616 * Pop-up menu: name of group for Reorganize actions (value 617 * <code>"group.reorganize"</code>). 618 */ 619 String GROUP_REORGANIZE = "group.reorganize"; //$NON-NLS-1$ 620 621 /** 622 * Pop-up menu: name of group for Add actions (value <code>"group.add"</code>). 623 */ 624 String GROUP_ADD = "group.add"; //$NON-NLS-1$ 625 626 /** 627 * Pop-up menu: name of group for File actions (value 628 * <code>"group.file"</code>). 629 */ 630 String GROUP_FILE = "group.file"; //$NON-NLS-1$ 631 632 /** 633 * Pop-up menu: name of group for Show In actions (value 634 * <code>"group.showIn"</code>). 635 * 636 * @since 2.1 637 */ 638 String GROUP_SHOW_IN = "group.showIn"; //$NON-NLS-1$ 639 640 /** 641 * Coolbar: name of group for application created actions 642 * 643 * @since 3.0 644 */ 645 String GROUP_APP = "group.application"; //$NON-NLS-1$ 646 647 /** 648 * Toolbar: name of group for editor action bars. 649 */ 650 String GROUP_EDITOR = "group.editor"; //$NON-NLS-1$ 651 652 /** 653 * Coolbar: name of group for help actions and contributions 654 * 655 * @since 3.1 656 */ 657 String GROUP_HELP = "group.help"; //$NON-NLS-1$ 658 659 // Standard view actions: 660 /** 661 * View menu: name of group for additional view-like items. (value 662 * <code>"additions"</code>). 663 */ 664 String VIEW_EXT = MB_ADDITIONS; // Group. 665 666 // Standard window actions: 667 /** 668 * Window menu: name of group for additional window-like items. (value 669 * <code>"additions"</code>). 670 */ 671 String WINDOW_EXT = MB_ADDITIONS; // Group. 672 673 /** 674 * Launch menu: name of group for launching additional windows. (value 675 * <code>"additions"</code>). 676 */ 677 String LAUNCH_EXT = MB_ADDITIONS; // Group. 678 679 // menu reorg 680 /** 681 * File menu: name of standard Revert global action (value 682 * <code>"revert"</code>). 683 * 684 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#REVERT 685 * ActionFactory.REVERT.getId()} instead. 686 */ 687 @Deprecated 688 String REVERT = "revert"; // Global action. //$NON-NLS-1$ 689 690 /** 691 * File menu: name of standard Refresh global action (value 692 * <code>"refresh"</code>). 693 * 694 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#REFRESH 695 * ActionFactory.REFRESH.getId()} instead. 696 */ 697 @Deprecated 698 String REFRESH = "refresh"; // Global action. //$NON-NLS-1$ 699 700 /** 701 * File menu: name of standard Properties global action (value 702 * <code>"properties"</code>). 703 * 704 * @deprecated in 3.0. Use 705 * {@link org.eclipse.ui.actions.ActionFactory#PROPERTIES 706 * ActionFactory.PROPERTIES.getId()} instead. 707 */ 708 @Deprecated 709 String PROPERTIES = "properties"; // Global action. //$NON-NLS-1$ 710 711 /** 712 * Edit menu: name of standard Move global action (value <code>"move"</code>). 713 * 714 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#MOVE 715 * ActionFactory.MOVE.getId()} instead. 716 */ 717 @Deprecated 718 String MOVE = "move"; // Global action. //$NON-NLS-1$ 719 720 /** 721 * Edit menu: name of standard Rename global action (value 722 * <code>"rename"</code>). 723 * 724 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#RENAME 725 * ActionFactory.RENAME.getId()} instead. 726 */ 727 @Deprecated 728 String RENAME = "rename"; // Global action. //$NON-NLS-1$ 729 730 /** 731 * Edit menu: name of standard Add Task global action (value 732 * <code>"addTask"</code>). 733 */ 734 // String ADD_TASK = "addTask"; // Global action. //$NON-NLS-1$ 735 736 /** 737 * Perspective menu: name of group for start of menu (value 738 * <code>"perspectiveStart"</code>). 739 * 740 * @since 3.107 741 */ 742 String PERSPECTIVE_START = "perspectiveStart"; // Group. //$NON-NLS-1$ 743 744 /** 745 * Perspective menu: name of group for end of menu (value 746 * <code>"perspectiveStartEnd"</code> ). 747 * 748 * @since 3.107 749 */ 750 String PERSPECTIVE_END = "perspectiveStartEnd"; // Group. //$NON-NLS-1$ 751 752 /** 753 * Navigate menu: name of group for start of menu (value 754 * <code>"navStart"</code>). 755 */ 756 String NAV_START = "navStart"; // Group. //$NON-NLS-1$ 757 758 /** 759 * Navigate menu: name of group for end of menu (value <code>"navEnd"</code>). 760 */ 761 String NAV_END = "navEnd"; // Group. //$NON-NLS-1$ 762 763 /** 764 * File and Navigate menu: name of group for extra Open actions (value 765 * <code>"open.ext"</code>). 766 */ 767 String OPEN_EXT = "open.ext"; // Group. //$NON-NLS-1$ 768 769 /** 770 * Navigate menu: name of group for extra Show actions (value 771 * <code>"show.ext"</code>). 772 */ 773 String SHOW_EXT = "show.ext"; // Group. //$NON-NLS-1$ 774 775 /** 776 * Navigate menu: name of standard Go Into global action (value 777 * <code>"goInto"</code>). 778 */ 779 String GO_INTO = "goInto"; // Global action. //$NON-NLS-1$ 780 781 /** 782 * Navigate menu: name of standard Go To submenu (value <code>"goTo"</code>). 783 */ 784 String GO_TO = "goTo"; //$NON-NLS-1$ 785 786 /** 787 * Navigate menu: name of standard Go To Resource global action (value 788 * <code>"goToResource"</code>). 789 */ 790 String GO_TO_RESOURCE = "goToResource"; // Global action. //$NON-NLS-1$ 791 792 /** 793 * Navigate menu: name of standard Sync With Editor global action (value 794 * <code>"syncEditor"</code>). 795 * 796 * @deprecated this action will be removed soon; use SHOW_IN instead 797 */ 798 @Deprecated 799 String SYNC_EDITOR = "syncEditor"; // Global action. //$NON-NLS-1$ 800 801 /** 802 * Navigate menu: name of standard Show In... action (value 803 * <code>"showIn"</code>). 804 * 805 * @since 2.1 806 * 807 * @deprecated 808 */ 809 @Deprecated 810 String SHOW_IN = "showIn"; //$NON-NLS-1$ 811 812 /** 813 * Navigate menu: name of standard Back global action (value 814 * <code>"back"</code>). 815 * 816 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#BACK 817 * ActionFactory.BACK.getId()} instead. 818 */ 819 @Deprecated 820 String BACK = "back"; // Global action. //$NON-NLS-1$ 821 822 /** 823 * Navigate menu: name of standard Forward global action (value 824 * <code>"forward"</code>). 825 * 826 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#FORWARD 827 * ActionFactory.FORWARD.getId()} instead. 828 */ 829 @Deprecated 830 String FORWARD = "forward"; // Global action. //$NON-NLS-1$ 831 832 /** 833 * Navigate menu: name of standard Up global action (value <code>"up"</code>). 834 */ 835 String UP = "up"; // Global action. //$NON-NLS-1$ 836 837 /** 838 * Navigate menu: name of standard Next global action (value 839 * <code>"next"</code>). 840 * 841 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#NEXT 842 * ActionFactory.NEXT.getId()} instead. 843 */ 844 @Deprecated 845 String NEXT = "next"; // Global action. //$NON-NLS-1$ 846 847 /** 848 * Navigate menu: name of standard Up global action (value 849 * <code>"previous"</code>). 850 * 851 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#PREVIOUS 852 * ActionFactory.PREVIOUS.getId()} instead. 853 */ 854 @Deprecated 855 String PREVIOUS = "previous"; // Global action. //$NON-NLS-1$ 856 857 /** 858 * Project menu: name of group for start of menu (value 859 * <code>"projStart"</code>). 860 */ 861 String PROJ_START = "projStart"; // Group. //$NON-NLS-1$ 862 863 /** 864 * Project menu: name of group for start of menu (value <code>"projEnd"</code>). 865 */ 866 String PROJ_END = "projEnd"; // Group. //$NON-NLS-1$ 867 868 /** 869 * Project menu: name of standard Build Project global action (value 870 * <code>"buildProject"</code>). 871 * 872 * @deprecated in 3.0. Use 873 * <code>org.eclipse.ui.ide.IDEActionFactory.BUILD_PROJECT.getId()</code> 874 * instead. 875 */ 876 @Deprecated 877 String BUILD_PROJECT = "buildProject"; // Global action. //$NON-NLS-1$ 878 879 /** 880 * Project menu: name of standard Rebuild Project global action (value 881 * <code>"rebuildProject"</code>). 882 * 883 * @deprecated in 3.0. Use 884 * <code>org.eclipse.ui.ide.IDEActionFactory.REBUILD_PROJECT.getId()</code> 885 * instead. 886 */ 887 @Deprecated 888 String REBUILD_PROJECT = "rebuildProject"; // Global action. //$NON-NLS-1$ 889 890 /** 891 * Project menu: name of standard Open Project global action (value 892 * <code>"openProject"</code>). 893 * 894 * @deprecated in 3.0. Use 895 * <code>org.eclipse.ui.ide.IDEActionFactory.OPEN_PROJECT.getId()</code> 896 * instead. 897 */ 898 @Deprecated 899 String OPEN_PROJECT = "openProject"; // Global action. //$NON-NLS-1$ 900 901 /** 902 * Project menu: name of standard Close Project global action (value 903 * <code>"closeProject"</code>). 904 * 905 * @deprecated in 3.0. Use 906 * <code>org.eclipse.ui.ide.IDEActionFactory.CLOSE_PROJECT.getId()</code> 907 * instead. 908 */ 909 @Deprecated 910 String CLOSE_PROJECT = "closeProject"; // Global action. //$NON-NLS-1$ 911 // end menu reorg 912 913 // Standard help actions: 914 /** 915 * Help menu: name of group for start of menu (value <code>"helpStart"</code>). 916 */ 917 String HELP_START = "helpStart"; // Group. //$NON-NLS-1$ 918 919 /** 920 * Help menu: name of group for end of menu (value <code>"helpEnd"</code>). 921 */ 922 String HELP_END = "helpEnd"; // Group. //$NON-NLS-1$ 923 924 /** 925 * Help menu: name of standard About action (value <code>"about"</code>). 926 * 927 * @deprecated in 3.0. Use {@link org.eclipse.ui.actions.ActionFactory#ABOUT 928 * ActionFactory.ABOUT.getId()} instead. 929 */ 930 @Deprecated 931 String ABOUT = "about"; //$NON-NLS-1$ 932 933 /** 934 * Standard global actions in a workbench window. 935 * 936 * @deprecated in 3.0 937 */ 938 @Deprecated 939 String[] GLOBAL_ACTIONS = { UNDO, REDO, CUT, COPY, PASTE, PRINT, DELETE, FIND, SELECT_ALL, BOOKMARK }; 940 } 941