001: /*******************************************************************************
002: * Copyright (c) 2000, 2006 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.ide;
011:
012: /**
013: * Identifiers for IDE menus, toolbars and groups.
014: * <p>
015: * This interface contains constants only; it is not intended to be implemented
016: * or extended.
017: * </p>
018: *
019: * Note: want to move IDE-specific stuff out of IWorkbenchActionConstants.
020: * There's still some cleanup to be done here (and there).
021: *
022: * @since 3.0
023: */
024: public interface IIDEActionConstants {
025:
026: /**
027: * Name of standard File menu (value <code>"file"</code>).
028: */
029: public static final String M_FILE = "file"; //$NON-NLS-1$
030:
031: /**
032: * Name of standard Edit menu (value <code>"edit"</code>).
033: */
034: public static final String M_EDIT = "edit"; //$NON-NLS-1$
035:
036: /**
037: * Name of standard Navigate menu (value <code>"navigate"</code>).
038: */
039: public static final String M_NAVIGATE = "navigate"; //$NON-NLS-1$
040:
041: /**
042: * Name of standard Project menu (value <code>"project"</code>).
043: */
044: public static final String M_PROJECT = "project"; //$NON-NLS-1$
045:
046: /**
047: * Name of standard Window menu (value <code>"window"</code>).
048: */
049: public static final String M_WINDOW = "window"; //$NON-NLS-1$
050:
051: /**
052: * Name of standard Help menu (value <code>"help"</code>).
053: */
054: public static final String M_HELP = "help"; //$NON-NLS-1$
055:
056: /**
057: * File menu: name of group for start of menu (value <code>"fileStart"</code>).
058: */
059: public static final String FILE_START = "fileStart"; //$NON-NLS-1$
060:
061: /**
062: * File menu: name of group for end of menu (value <code>"fileEnd"</code>).
063: */
064: public static final String FILE_END = "fileEnd"; //$NON-NLS-1$
065:
066: /**
067: * File menu: name of group for extra New-like actions (value <code>"new.ext"</code>).
068: */
069: public static final String NEW_EXT = "new.ext"; //$NON-NLS-1$
070:
071: /**
072: * File menu: name of group for extra Close-like actions (value <code>"close.ext"</code>).
073: */
074: public static final String CLOSE_EXT = "close.ext"; //$NON-NLS-1$
075:
076: /**
077: * File menu: name of group for extra Save-like actions (value <code>"save.ext"</code>).
078: */
079: public static final String SAVE_EXT = "save.ext"; //$NON-NLS-1$
080:
081: /**
082: * File menu: name of group for extra Print-like actions (value <code>"print.ext"</code>).
083: */
084: public static final String PRINT_EXT = "print.ext"; //$NON-NLS-1$
085:
086: /**
087: * File menu: name of group for extra Import-like actions (value <code>"import.ext"</code>).
088: */
089: public static final String IMPORT_EXT = "import.ext"; //$NON-NLS-1$
090:
091: /**
092: * File menu: name of "Most Recently Used File" group.
093: * (value <code>"mru"</code>).
094: */
095: public static final String MRU = "mru"; //$NON-NLS-1$
096:
097: /**
098: * Edit menu: name of group for start of menu (value <code>"editStart"</code>).
099: */
100: public static final String EDIT_START = "editStart"; //$NON-NLS-1$
101:
102: /**
103: * Edit menu: name of group for end of menu (value <code>"editEnd"</code>).
104: */
105: public static final String EDIT_END = "editEnd"; //$NON-NLS-1$
106:
107: /**
108: * Edit menu: name of group for extra Undo-like actions (value <code>"undo.ext"</code>).
109: */
110: public static final String UNDO_EXT = "undo.ext"; //$NON-NLS-1$
111:
112: /**
113: * Edit menu: name of group for extra Cut-like actions (value <code>"cut.ext"</code>).
114: */
115: public static final String CUT_EXT = "cut.ext"; //$NON-NLS-1$
116:
117: /**
118: * Edit menu: name of group for extra Find-like actions (value <code>"find.ext"</code>).
119: * <p>Note: The value of this constant has changed in 3.3 to match the specification;
120: * before 3.3, its value was incorrect (<code>"cut.ext"</code>). See bug 155856 for details.</p>
121: */
122: public static final String FIND_EXT = "find.ext"; //$NON-NLS-1$
123:
124: /**
125: * Edit menu: name of group for extra Add-like actions (value <code>"add.ext"</code>).
126: */
127: public static final String ADD_EXT = "add.ext"; //$NON-NLS-1$
128:
129: /**
130: * Workbench menu: name of group for extra Build-like actions
131: * (value <code>"build.ext"</code>).
132: */
133: public static final String BUILD_EXT = "build.ext"; //$NON-NLS-1$
134:
135: /**
136: * Workbench toolbar id for file toolbar group.
137: *
138: * @since 2.1
139: */
140: public static final String TOOLBAR_FILE = "org.eclipse.ui.workbench.file"; //$NON-NLS-1$
141:
142: /**
143: * Workbench toolbar id for navigate toolbar group.
144: *
145: * @since 2.1
146: */
147: public static final String TOOLBAR_NAVIGATE = "org.eclipse.ui.workbench.navigate"; //$NON-NLS-1$
148:
149: // Workbench toolbar group ids. To add an item at the beginning of the group,
150: // use the GROUP id. To add an item at the end of the group, use the EXT id.
151:
152: /**
153: * Group id for pin toolbar group.
154: *
155: * @since 2.1
156: */
157: public static final String PIN_GROUP = "pin.group"; //$NON-NLS-1$
158:
159: /**
160: * Group ids for history toolbar group.
161: *
162: * @since 2.1
163: */
164: public static final String HISTORY_GROUP = "history.group"; //$NON-NLS-1$
165:
166: /**
167: * Group ids for new toolbar group.
168: *
169: * @since 2.1
170: */
171: public static final String NEW_GROUP = "new.group"; //$NON-NLS-1$
172:
173: /**
174: * Group ids for save toolbar group.
175: *
176: * @since 2.1
177: */
178: public static final String SAVE_GROUP = "save.group"; //$NON-NLS-1$
179:
180: /**
181: * Group ids for build toolbar group.
182: *
183: * @since 2.1
184: */
185: public static final String BUILD_GROUP = "build.group"; //$NON-NLS-1$
186:
187: // Pop-up menu groups:
188: /**
189: * Pop-up menu: name of group for Add actions (value <code>"group.add"</code>).
190: */
191: public static final String GROUP_ADD = "group.add"; //$NON-NLS-1$
192:
193: /**
194: * Pop-up menu and cool bar: name of group for File actions (value <code>"group.file"</code>).
195: */
196: public static final String GROUP_FILE = "group.file"; //$NON-NLS-1$
197:
198: /**
199: * Coolbar: name of group for Navigate actions (value <code>"group.nav"</code>).
200: */
201: public static final String GROUP_NAV = "group.nav"; //$NON-NLS-1$
202:
203: /**
204: * Pop-up menu: name of group for Show In actions (value <code>"group.showIn"</code>).
205: *
206: * @since 2.1
207: */
208: public static final String GROUP_SHOW_IN = "group.showIn"; //$NON-NLS-1$
209:
210: /**
211: * Navigate menu: name of group for start of menu
212: * (value <code>"navStart"</code>).
213: */
214: public static final String NAV_START = "navStart"; //$NON-NLS-1$
215:
216: /**
217: * Navigate menu: name of group for end of menu
218: * (value <code>"navEnd"</code>).
219: */
220: public static final String NAV_END = "navEnd"; //$NON-NLS-1$
221:
222: /**
223: * Navigate menu: name of group for extra Open actions
224: * (value <code>"open.ext"</code>).
225: */
226: public static final String OPEN_EXT = "open.ext"; //$NON-NLS-1$
227:
228: /**
229: * Navigate menu: name of group for extra Show actions
230: * (value <code>"show.ext"</code>).
231: */
232: public static final String SHOW_EXT = "show.ext"; //$NON-NLS-1$
233:
234: /**
235: * Navigate menu: name of standard Go Into global action
236: * (value <code>"goInto"</code>).
237: */
238: public static final String GO_INTO = "goInto"; // Global action. //$NON-NLS-1$
239:
240: /**
241: * Navigate menu: name of standard Go To submenu
242: * (value <code>"goTo"</code>).
243: */
244: public static final String GO_TO = "goTo"; //$NON-NLS-1$
245:
246: /**
247: * Navigate menu: name of standard Go To Resource global action
248: * (value <code>"goToResource"</code>).
249: *
250: * Note:should be in an action factory
251: */
252: public static final String GO_TO_RESOURCE = "goToResource"; // Global action. //$NON-NLS-1$
253:
254: /**
255: * Project menu: name of group for start of menu
256: * (value <code>"projStart"</code>).
257: */
258: public static final String PROJ_START = "projStart"; //$NON-NLS-1$
259:
260: /**
261: * Project menu: name of group for start of menu
262: * (value <code>"projEnd"</code>).
263: */
264: public static final String PROJ_END = "projEnd"; //$NON-NLS-1$
265:
266: /**
267: * Help menu: name of group for start of menu
268: * (value <code>"helpStart"</code>).
269: */
270: public static final String HELP_START = "helpStart"; //$NON-NLS-1$
271:
272: /**
273: * Help menu: name of group for end of menu
274: * (value <code>"helpEnd"</code>).
275: */
276: public static final String HELP_END = "helpEnd"; //$NON-NLS-1$
277:
278: }
|