KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > ide > IIDEActionConstants


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.ide;
12
13 /**
14  * Identifiers for IDE menus, toolbars and groups.
15  * <p>
16  * This interface contains constants only; it is not intended to be implemented
17  * or extended.
18  * </p>
19  *
20  * Note: want to move IDE-specific stuff out of IWorkbenchActionConstants.
21  * There's still some cleanup to be done here (and there).
22  *
23  * @since 3.0
24  */

25 public interface IIDEActionConstants {
26
27     /**
28      * Name of standard File menu (value <code>"file"</code>).
29      */

30     public static final String JavaDoc M_FILE = "file"; //$NON-NLS-1$
31

32     /**
33      * Name of standard Edit menu (value <code>"edit"</code>).
34      */

35     public static final String JavaDoc M_EDIT = "edit"; //$NON-NLS-1$
36

37     /**
38      * Name of standard Navigate menu (value <code>"navigate"</code>).
39      */

40     public static final String JavaDoc M_NAVIGATE = "navigate"; //$NON-NLS-1$
41

42     /**
43      * Name of standard Project menu (value <code>"project"</code>).
44      */

45     public static final String JavaDoc M_PROJECT = "project"; //$NON-NLS-1$
46

47     /**
48      * Name of standard Window menu (value <code>"window"</code>).
49      */

50     public static final String JavaDoc M_WINDOW = "window"; //$NON-NLS-1$
51

52     /**
53      * Name of standard Help menu (value <code>"help"</code>).
54      */

55     public static final String JavaDoc M_HELP = "help"; //$NON-NLS-1$
56

57     /**
58      * File menu: name of group for start of menu (value <code>"fileStart"</code>).
59      */

60     public static final String JavaDoc FILE_START = "fileStart"; //$NON-NLS-1$
61

62     /**
63      * File menu: name of group for end of menu (value <code>"fileEnd"</code>).
64      */

65     public static final String JavaDoc FILE_END = "fileEnd"; //$NON-NLS-1$
66

67     /**
68      * File menu: name of group for extra New-like actions (value <code>"new.ext"</code>).
69      */

70     public static final String JavaDoc NEW_EXT = "new.ext"; //$NON-NLS-1$
71

72     /**
73      * File menu: name of group for extra Close-like actions (value <code>"close.ext"</code>).
74      */

75     public static final String JavaDoc CLOSE_EXT = "close.ext"; //$NON-NLS-1$
76

77     /**
78      * File menu: name of group for extra Save-like actions (value <code>"save.ext"</code>).
79      */

80     public static final String JavaDoc SAVE_EXT = "save.ext"; //$NON-NLS-1$
81

82     /**
83      * File menu: name of group for extra Print-like actions (value <code>"print.ext"</code>).
84      */

85     public static final String JavaDoc PRINT_EXT = "print.ext"; //$NON-NLS-1$
86

87     /**
88      * File menu: name of group for extra Import-like actions (value <code>"import.ext"</code>).
89      */

90     public static final String JavaDoc IMPORT_EXT = "import.ext"; //$NON-NLS-1$
91

92     /**
93      * File menu: name of "Most Recently Used File" group.
94      * (value <code>"mru"</code>).
95      */

96     public static final String JavaDoc MRU = "mru"; //$NON-NLS-1$
97

98     /**
99      * Edit menu: name of group for start of menu (value <code>"editStart"</code>).
100      */

101     public static final String JavaDoc EDIT_START = "editStart"; //$NON-NLS-1$
102

103     /**
104      * Edit menu: name of group for end of menu (value <code>"editEnd"</code>).
105      */

106     public static final String JavaDoc EDIT_END = "editEnd"; //$NON-NLS-1$
107

108     /**
109      * Edit menu: name of group for extra Undo-like actions (value <code>"undo.ext"</code>).
110      */

111     public static final String JavaDoc UNDO_EXT = "undo.ext"; //$NON-NLS-1$
112

113     /**
114      * Edit menu: name of group for extra Cut-like actions (value <code>"cut.ext"</code>).
115      */

116     public static final String JavaDoc CUT_EXT = "cut.ext"; //$NON-NLS-1$
117

118     /**
119      * Edit menu: name of group for extra Find-like actions (value <code>"find.ext"</code>).
120      * <p>Note: The value of this constant has changed in 3.3 to match the specification;
121      * before 3.3, its value was incorrect (<code>"cut.ext"</code>). See bug 155856 for details.</p>
122      */

123     public static final String JavaDoc FIND_EXT = "find.ext"; //$NON-NLS-1$
124

125     /**
126      * Edit menu: name of group for extra Add-like actions (value <code>"add.ext"</code>).
127      */

128     public static final String JavaDoc ADD_EXT = "add.ext"; //$NON-NLS-1$
129

130     /**
131      * Workbench menu: name of group for extra Build-like actions
132      * (value <code>"build.ext"</code>).
133      */

134     public static final String JavaDoc BUILD_EXT = "build.ext"; //$NON-NLS-1$
135

136     /**
137      * Workbench toolbar id for file toolbar group.
138      *
139      * @since 2.1
140      */

141     public static final String JavaDoc TOOLBAR_FILE = "org.eclipse.ui.workbench.file"; //$NON-NLS-1$
142

143     /**
144      * Workbench toolbar id for navigate toolbar group.
145      *
146      * @since 2.1
147      */

148     public static final String JavaDoc TOOLBAR_NAVIGATE = "org.eclipse.ui.workbench.navigate"; //$NON-NLS-1$
149

150     // Workbench toolbar group ids. To add an item at the beginning of the group,
151
// use the GROUP id. To add an item at the end of the group, use the EXT id.
152

153     /**
154      * Group id for pin toolbar group.
155      *
156      * @since 2.1
157      */

158     public static final String JavaDoc PIN_GROUP = "pin.group"; //$NON-NLS-1$
159

160     /**
161      * Group ids for history toolbar group.
162      *
163      * @since 2.1
164      */

165     public static final String JavaDoc HISTORY_GROUP = "history.group"; //$NON-NLS-1$
166

167     /**
168      * Group ids for new toolbar group.
169      *
170      * @since 2.1
171      */

172     public static final String JavaDoc NEW_GROUP = "new.group"; //$NON-NLS-1$
173

174     /**
175      * Group ids for save toolbar group.
176      *
177      * @since 2.1
178      */

179     public static final String JavaDoc SAVE_GROUP = "save.group"; //$NON-NLS-1$
180

181     /**
182      * Group ids for build toolbar group.
183      *
184      * @since 2.1
185      */

186     public static final String JavaDoc BUILD_GROUP = "build.group"; //$NON-NLS-1$
187

188     // Pop-up menu groups:
189
/**
190      * Pop-up menu: name of group for Add actions (value <code>"group.add"</code>).
191      */

192     public static final String JavaDoc GROUP_ADD = "group.add"; //$NON-NLS-1$
193

194     /**
195      * Pop-up menu and cool bar: name of group for File actions (value <code>"group.file"</code>).
196      */

197     public static final String JavaDoc GROUP_FILE = "group.file"; //$NON-NLS-1$
198

199     /**
200      * Coolbar: name of group for Navigate actions (value <code>"group.nav"</code>).
201      */

202     public static final String JavaDoc GROUP_NAV = "group.nav"; //$NON-NLS-1$
203

204     /**
205      * Pop-up menu: name of group for Show In actions (value <code>"group.showIn"</code>).
206      *
207      * @since 2.1
208      */

209     public static final String JavaDoc GROUP_SHOW_IN = "group.showIn"; //$NON-NLS-1$
210

211     /**
212      * Navigate menu: name of group for start of menu
213      * (value <code>"navStart"</code>).
214      */

215     public static final String JavaDoc NAV_START = "navStart"; //$NON-NLS-1$
216

217     /**
218      * Navigate menu: name of group for end of menu
219      * (value <code>"navEnd"</code>).
220      */

221     public static final String JavaDoc NAV_END = "navEnd"; //$NON-NLS-1$
222

223     /**
224      * Navigate menu: name of group for extra Open actions
225      * (value <code>"open.ext"</code>).
226      */

227     public static final String JavaDoc OPEN_EXT = "open.ext"; //$NON-NLS-1$
228

229     /**
230      * Navigate menu: name of group for extra Show actions
231      * (value <code>"show.ext"</code>).
232      */

233     public static final String JavaDoc SHOW_EXT = "show.ext"; //$NON-NLS-1$
234

235     /**
236      * Navigate menu: name of standard Go Into global action
237      * (value <code>"goInto"</code>).
238      */

239     public static final String JavaDoc GO_INTO = "goInto"; // Global action. //$NON-NLS-1$
240

241     /**
242      * Navigate menu: name of standard Go To submenu
243      * (value <code>"goTo"</code>).
244      */

245     public static final String JavaDoc GO_TO = "goTo"; //$NON-NLS-1$
246

247     /**
248      * Navigate menu: name of standard Go To Resource global action
249      * (value <code>"goToResource"</code>).
250      *
251      * Note:should be in an action factory
252      */

253     public static final String JavaDoc GO_TO_RESOURCE = "goToResource"; // Global action. //$NON-NLS-1$
254

255     /**
256      * Project menu: name of group for start of menu
257      * (value <code>"projStart"</code>).
258      */

259     public static final String JavaDoc PROJ_START = "projStart"; //$NON-NLS-1$
260

261     /**
262      * Project menu: name of group for start of menu
263      * (value <code>"projEnd"</code>).
264      */

265     public static final String JavaDoc PROJ_END = "projEnd"; //$NON-NLS-1$
266

267     /**
268      * Help menu: name of group for start of menu
269      * (value <code>"helpStart"</code>).
270      */

271     public static final String JavaDoc HELP_START = "helpStart"; //$NON-NLS-1$
272

273     /**
274      * Help menu: name of group for end of menu
275      * (value <code>"helpEnd"</code>).
276      */

277     public static final String JavaDoc HELP_END = "helpEnd"; //$NON-NLS-1$
278

279 }
280
281
Popular Tags