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