Source Code Cross Referenced for IWorkbenchActionConstants.java in  » IDE-Eclipse » ui-workbench » org » eclipse » ui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Eclipse » ui workbench » org.eclipse.ui 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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