Lines 2-10
Link Here
|
2 |
<!-- Schema file written by PDE --> |
2 |
<!-- Schema file written by PDE --> |
3 |
<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
3 |
<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
4 |
<annotation> |
4 |
<annotation> |
5 |
<appinfo> |
5 |
<appInfo> |
6 |
<meta.schema plugin="org.eclipse.ui" id="commands" name="Commands"/> |
6 |
<meta.schema plugin="org.eclipse.ui" id="commands" name="Commands"/> |
7 |
</appinfo> |
7 |
</appInfo> |
8 |
<documentation> |
8 |
<documentation> |
9 |
<p> |
9 |
<p> |
10 |
The <code>org.eclipse.ui.commands</code> extension point is used to declare commands and command categories, using the <code>command</code> and <code>category</code> elements. A command is an abstract representation of some semantic behaviour, but not it's actual implementation. This allows different developers to contribute specific behaviour for their individual parts. For example, there might be a "paste" command with one implementation in an editor and a different implementation in an explorer widget. These implementations are called handlers. Commands can also be viewed as declarative function pointers, or signal handlers. |
10 |
The <code>org.eclipse.ui.commands</code> extension point is used to declare commands and command categories, using the <code>command</code> and <code>category</code> elements. A command is an abstract representation of some semantic behaviour, but not it's actual implementation. This allows different developers to contribute specific behaviour for their individual parts. For example, there might be a "paste" command with one implementation in an editor and a different implementation in an explorer widget. These implementations are called handlers. Commands can also be viewed as declarative function pointers, or signal handlers. |
Lines 13-18
The <code>org.eclipse.ui.commands</code> extension point is used to
Link Here
|
13 |
</annotation> |
13 |
</annotation> |
14 |
|
14 |
|
15 |
<element name="extension"> |
15 |
<element name="extension"> |
|
|
16 |
<annotation> |
17 |
<appInfo> |
18 |
<meta.element /> |
19 |
</appInfo> |
20 |
</annotation> |
16 |
<complexType> |
21 |
<complexType> |
17 |
<sequence> |
22 |
<sequence> |
18 |
<element ref="category" minOccurs="0" maxOccurs="unbounded"/> |
23 |
<element ref="category" minOccurs="0" maxOccurs="unbounded"/> |
Lines 36-44
The <code>org.eclipse.ui.commands</code> extension point is used to
Link Here
|
36 |
<documentation> |
41 |
<documentation> |
37 |
An optional name of the extension instance. |
42 |
An optional name of the extension instance. |
38 |
</documentation> |
43 |
</documentation> |
39 |
<appinfo> |
44 |
<appInfo> |
40 |
<meta.attribute translatable="true"/> |
45 |
<meta.attribute translatable="true"/> |
41 |
</appinfo> |
46 |
</appInfo> |
42 |
</annotation> |
47 |
</annotation> |
43 |
</attribute> |
48 |
</attribute> |
44 |
<attribute name="point" type="string" use="required"> |
49 |
<attribute name="point" type="string" use="required"> |
Lines 64-78
This element is used to define commands. A command represents an request from th
Link Here
|
64 |
<element ref="defaultHandler" minOccurs="0" maxOccurs="1"/> |
69 |
<element ref="defaultHandler" minOccurs="0" maxOccurs="1"/> |
65 |
<element ref="state" minOccurs="0" maxOccurs="unbounded"/> |
70 |
<element ref="state" minOccurs="0" maxOccurs="unbounded"/> |
66 |
<element ref="commandParameter" minOccurs="0" maxOccurs="unbounded"/> |
71 |
<element ref="commandParameter" minOccurs="0" maxOccurs="unbounded"/> |
|
|
72 |
<element ref="aliasFor" minOccurs="0" maxOccurs="1"/> |
67 |
</sequence> |
73 |
</sequence> |
68 |
<attribute name="category" type="string"> |
74 |
<attribute name="category" type="string"> |
69 |
<annotation> |
75 |
<annotation> |
70 |
<documentation> |
76 |
<documentation> |
71 |
Please use <code>categoryId</code> instead. |
77 |
Please use <code>categoryId</code> instead. |
72 |
</documentation> |
78 |
</documentation> |
73 |
<appinfo> |
79 |
<appInfo> |
74 |
<meta.attribute deprecated="true"/> |
80 |
<meta.attribute deprecated="true"/> |
75 |
</appinfo> |
81 |
</appInfo> |
76 |
</annotation> |
82 |
</annotation> |
77 |
</attribute> |
83 |
</attribute> |
78 |
<attribute name="description" type="string"> |
84 |
<attribute name="description" type="string"> |
Lines 80-88
This element is used to define commands. A command represents an request from th
Link Here
|
80 |
<documentation> |
86 |
<documentation> |
81 |
A translatable short description of this command for display in the UI. |
87 |
A translatable short description of this command for display in the UI. |
82 |
</documentation> |
88 |
</documentation> |
83 |
<appinfo> |
89 |
<appInfo> |
84 |
<meta.attribute translatable="true"/> |
90 |
<meta.attribute translatable="true"/> |
85 |
</appinfo> |
91 |
</appInfo> |
86 |
</annotation> |
92 |
</annotation> |
87 |
</attribute> |
93 |
</attribute> |
88 |
<attribute name="id" type="string" use="required"> |
94 |
<attribute name="id" type="string" use="required"> |
Lines 97-105
This element is used to define commands. A command represents an request from th
Link Here
|
97 |
<documentation> |
103 |
<documentation> |
98 |
The translatable name of this command for display in the UI. Commands are typically named in the form of an imperative verb. |
104 |
The translatable name of this command for display in the UI. Commands are typically named in the form of an imperative verb. |
99 |
</documentation> |
105 |
</documentation> |
100 |
<appinfo> |
106 |
<appInfo> |
101 |
<meta.attribute translatable="true"/> |
107 |
<meta.attribute translatable="true"/> |
102 |
</appinfo> |
108 |
</appInfo> |
103 |
</annotation> |
109 |
</annotation> |
104 |
</attribute> |
110 |
</attribute> |
105 |
<attribute name="categoryId" type="string"> |
111 |
<attribute name="categoryId" type="string"> |
Lines 110-118
The unique id of the category for this command. If this command does not specify
Link Here
|
110 |
</p> |
116 |
</p> |
111 |
<p><em>Since: 3.0</em></p> |
117 |
<p><em>Since: 3.0</em></p> |
112 |
</documentation> |
118 |
</documentation> |
113 |
<appinfo> |
119 |
<appInfo> |
114 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/> |
120 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/> |
115 |
</appinfo> |
121 |
</appInfo> |
116 |
</annotation> |
122 |
</annotation> |
117 |
</attribute> |
123 |
</attribute> |
118 |
<attribute name="defaultHandler" type="string"> |
124 |
<attribute name="defaultHandler" type="string"> |
Lines 123-131
The default handler for this command (see the <a href="org_eclipse_ui_ha
Link Here
|
123 |
</p> |
129 |
</p> |
124 |
<p><em>Since: 3.1</em></p> |
130 |
<p><em>Since: 3.1</em></p> |
125 |
</documentation> |
131 |
</documentation> |
126 |
<appinfo> |
132 |
<appInfo> |
127 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> |
133 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> |
128 |
</appinfo> |
134 |
</appInfo> |
129 |
</annotation> |
135 |
</annotation> |
130 |
</attribute> |
136 |
</attribute> |
131 |
<attribute name="returnTypeId" type="string"> |
137 |
<attribute name="returnTypeId" type="string"> |
Lines 136-144
The id of a <code>commandParameterType</code> indicating the type of
Link Here
|
136 |
</p> |
142 |
</p> |
137 |
<p><em>Since: 3.2</em></p> |
143 |
<p><em>Since: 3.2</em></p> |
138 |
</documentation> |
144 |
</documentation> |
139 |
<appinfo> |
145 |
<appInfo> |
140 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/> |
146 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/> |
141 |
</appinfo> |
147 |
</appInfo> |
142 |
</annotation> |
148 |
</annotation> |
143 |
</attribute> |
149 |
</attribute> |
144 |
<attribute name="helpContextId" type="string"> |
150 |
<attribute name="helpContextId" type="string"> |
Lines 168-176
In the UI, commands are often organized by category to make them more manageable
Link Here
|
168 |
<documentation> |
174 |
<documentation> |
169 |
A translatable short description of this category for display in the UI. |
175 |
A translatable short description of this category for display in the UI. |
170 |
</documentation> |
176 |
</documentation> |
171 |
<appinfo> |
177 |
<appInfo> |
172 |
<meta.attribute translatable="true"/> |
178 |
<meta.attribute translatable="true"/> |
173 |
</appinfo> |
179 |
</appInfo> |
174 |
</annotation> |
180 |
</annotation> |
175 |
</attribute> |
181 |
</attribute> |
176 |
<attribute name="id" type="string" use="required"> |
182 |
<attribute name="id" type="string" use="required"> |
Lines 185-193
In the UI, commands are often organized by category to make them more manageable
Link Here
|
185 |
<documentation> |
191 |
<documentation> |
186 |
The translatable name of this category for display in the UI. |
192 |
The translatable name of this category for display in the UI. |
187 |
</documentation> |
193 |
</documentation> |
188 |
<appinfo> |
194 |
<appInfo> |
189 |
<meta.attribute translatable="true"/> |
195 |
<meta.attribute translatable="true"/> |
190 |
</appinfo> |
196 |
</appInfo> |
191 |
</annotation> |
197 |
</annotation> |
192 |
</attribute> |
198 |
</attribute> |
193 |
</complexType> |
199 |
</complexType> |
Lines 195-203
In the UI, commands are often organized by category to make them more manageable
Link Here
|
195 |
|
201 |
|
196 |
<element name="commandParameter"> |
202 |
<element name="commandParameter"> |
197 |
<annotation> |
203 |
<annotation> |
198 |
<appinfo> |
204 |
<appInfo> |
199 |
<meta.element labelAttribute="id"/> |
205 |
<meta.element labelAttribute="id"/> |
200 |
</appinfo> |
206 |
</appInfo> |
201 |
<documentation> |
207 |
<documentation> |
202 |
<p> |
208 |
<p> |
203 |
Defines a parameter that a command should understand. A parameter is a way to provide more information to a handler at execution time. For example, a "show view" command might take a view as a parameter. Handlers should be able to understand these parameters, so they should be treated like API. |
209 |
Defines a parameter that a command should understand. A parameter is a way to provide more information to a handler at execution time. For example, a "show view" command might take a view as a parameter. Handlers should be able to understand these parameters, so they should be treated like API. |
Lines 221-229
Defines a parameter that a command should understand. A parameter is a way to p
Link Here
|
221 |
<documentation> |
227 |
<documentation> |
222 |
The name for the parameter. This is the name as it will be displayed to an end-user. As such, it should be translatable. The name should be short -- preferrably one word. |
228 |
The name for the parameter. This is the name as it will be displayed to an end-user. As such, it should be translatable. The name should be short -- preferrably one word. |
223 |
</documentation> |
229 |
</documentation> |
224 |
<appinfo> |
230 |
<appInfo> |
225 |
<meta.attribute translatable="true"/> |
231 |
<meta.attribute translatable="true"/> |
226 |
</appinfo> |
232 |
</appInfo> |
227 |
</annotation> |
233 |
</annotation> |
228 |
</attribute> |
234 |
</attribute> |
229 |
<attribute name="values" type="string"> |
235 |
<attribute name="values" type="string"> |
Lines 231-239
Defines a parameter that a command should understand. A parameter is a way to p
Link Here
|
231 |
<documentation> |
237 |
<documentation> |
232 |
The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
238 |
The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
233 |
</documentation> |
239 |
</documentation> |
234 |
<appinfo> |
240 |
<appInfo> |
235 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> |
241 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> |
236 |
</appinfo> |
242 |
</appInfo> |
237 |
</annotation> |
243 |
</annotation> |
238 |
</attribute> |
244 |
</attribute> |
239 |
<attribute name="typeId" type="string"> |
245 |
<attribute name="typeId" type="string"> |
Lines 241-249
Defines a parameter that a command should understand. A parameter is a way to p
Link Here
|
241 |
<documentation> |
247 |
<documentation> |
242 |
The id of a commandParameterType for this commandParameter. Specifying a typeId allows handlers of a command to convert string parameter values to objects in a consistent way and it allows potential callers of a command to look for commands that take objects of various types for their parameters. |
248 |
The id of a commandParameterType for this commandParameter. Specifying a typeId allows handlers of a command to convert string parameter values to objects in a consistent way and it allows potential callers of a command to look for commands that take objects of various types for their parameters. |
243 |
</documentation> |
249 |
</documentation> |
244 |
<appinfo> |
250 |
<appInfo> |
245 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/> |
251 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/> |
246 |
</appinfo> |
252 |
</appInfo> |
247 |
</annotation> |
253 |
</annotation> |
248 |
</attribute> |
254 |
</attribute> |
249 |
<attribute name="optional" type="boolean" use="default" value="true"> |
255 |
<attribute name="optional" type="boolean" use="default" value="true"> |
Lines 278-286
Defines the object type of a commandParameter and may specify an <code>org
Link Here
|
278 |
<documentation> |
284 |
<documentation> |
279 |
The fully qualified name of a Java class or interface to use as the type of this command parameter. This attribute is optional, however if omitted, <code>java.lang.Object</code> will be used as the parameter type. |
285 |
The fully qualified name of a Java class or interface to use as the type of this command parameter. This attribute is optional, however if omitted, <code>java.lang.Object</code> will be used as the parameter type. |
280 |
</documentation> |
286 |
</documentation> |
281 |
<appinfo> |
287 |
<appInfo> |
282 |
<meta.attribute kind="java"/> |
288 |
<meta.attribute kind="java"/> |
283 |
</appinfo> |
289 |
</appInfo> |
284 |
</annotation> |
290 |
</annotation> |
285 |
</attribute> |
291 |
</attribute> |
286 |
<attribute name="converter" type="string"> |
292 |
<attribute name="converter" type="string"> |
Lines 288-296
Defines the object type of a commandParameter and may specify an <code>org
Link Here
|
288 |
<documentation> |
294 |
<documentation> |
289 |
The class for converting between objects and string representations of objects for command parameter values. This class should extend <code>org.eclipse.core.commands.AbstractParameterValueConverter</code>. The converter should produce and consume objects of the type indicated in the <code>type</code> attribute. If this class is not specified, this facility to convert between string and object values for this parameter type will not be available (the <code>getValueConverter()</code> on class <code>ParameterType</code> will return <code>null</code>). |
295 |
The class for converting between objects and string representations of objects for command parameter values. This class should extend <code>org.eclipse.core.commands.AbstractParameterValueConverter</code>. The converter should produce and consume objects of the type indicated in the <code>type</code> attribute. If this class is not specified, this facility to convert between string and object values for this parameter type will not be available (the <code>getValueConverter()</code> on class <code>ParameterType</code> will return <code>null</code>). |
290 |
</documentation> |
296 |
</documentation> |
291 |
<appinfo> |
297 |
<appInfo> |
292 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.AbstractParameterValueConverter"/> |
298 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.AbstractParameterValueConverter"/> |
293 |
</appinfo> |
299 |
</appInfo> |
294 |
</annotation> |
300 |
</annotation> |
295 |
</attribute> |
301 |
</attribute> |
296 |
</complexType> |
302 |
</complexType> |
Lines 298-306
Defines the object type of a commandParameter and may specify an <code>org
Link Here
|
298 |
|
304 |
|
299 |
<element name="values"> |
305 |
<element name="values"> |
300 |
<annotation> |
306 |
<annotation> |
301 |
<appinfo> |
307 |
<appInfo> |
302 |
<meta.element labelAttribute="class"/> |
308 |
<meta.element labelAttribute="class"/> |
303 |
</appinfo> |
309 |
</appInfo> |
304 |
<documentation> |
310 |
<documentation> |
305 |
<p> |
311 |
<p> |
306 |
The more verbose version of the <code>values</code> attribute on the <code>commandParameter</code>. |
312 |
The more verbose version of the <code>values</code> attribute on the <code>commandParameter</code>. |
Lines 317-325
The more verbose version of the <code>values</code> attribute on the
Link Here
|
317 |
<documentation> |
323 |
<documentation> |
318 |
The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
324 |
The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
319 |
</documentation> |
325 |
</documentation> |
320 |
<appinfo> |
326 |
<appInfo> |
321 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> |
327 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> |
322 |
</appinfo> |
328 |
</appInfo> |
323 |
</annotation> |
329 |
</annotation> |
324 |
</attribute> |
330 |
</attribute> |
325 |
</complexType> |
331 |
</complexType> |
Lines 327-335
The more verbose version of the <code>values</code> attribute on the
Link Here
|
327 |
|
333 |
|
328 |
<element name="parameter"> |
334 |
<element name="parameter"> |
329 |
<annotation> |
335 |
<annotation> |
330 |
<appinfo> |
336 |
<appInfo> |
331 |
<meta.element labelAttribute="name"/> |
337 |
<meta.element labelAttribute="name"/> |
332 |
</appinfo> |
338 |
</appInfo> |
333 |
<documentation> |
339 |
<documentation> |
334 |
<p> |
340 |
<p> |
335 |
A possible value for a parameter. |
341 |
A possible value for a parameter. |
Lines 357-365
A possible value for a parameter.
Link Here
|
357 |
|
363 |
|
358 |
<element name="defaultHandler"> |
364 |
<element name="defaultHandler"> |
359 |
<annotation> |
365 |
<annotation> |
360 |
<appinfo> |
366 |
<appInfo> |
361 |
<meta.element labelAttribute="class"/> |
367 |
<meta.element labelAttribute="class"/> |
362 |
</appinfo> |
368 |
</appInfo> |
363 |
<documentation> |
369 |
<documentation> |
364 |
<p> |
370 |
<p> |
365 |
The default handler for this command. If no other handler is active, this handler will be active. This handler will conflict with other handler definitions that specify no <code>activeWhen</code> conditions. If you are not creating an <code>IExecutableExtension</code>, you can use the <code>defaultHandler</code> attribute instead. |
371 |
The default handler for this command. If no other handler is active, this handler will be active. This handler will conflict with other handler definitions that specify no <code>activeWhen</code> conditions. If you are not creating an <code>IExecutableExtension</code>, you can use the <code>defaultHandler</code> attribute instead. |
Lines 376-384
The default handler for this command. If no other handler is active, this handl
Link Here
|
376 |
<documentation> |
382 |
<documentation> |
377 |
The class which implements <code>org.eclipse.core.commands.IHandler</code>. |
383 |
The class which implements <code>org.eclipse.core.commands.IHandler</code>. |
378 |
</documentation> |
384 |
</documentation> |
379 |
<appinfo> |
385 |
<appInfo> |
380 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> |
386 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> |
381 |
</appinfo> |
387 |
</appInfo> |
382 |
</annotation> |
388 |
</annotation> |
383 |
</attribute> |
389 |
</attribute> |
384 |
</complexType> |
390 |
</complexType> |
Lines 386-394
The default handler for this command. If no other handler is active, this handl
Link Here
|
386 |
|
392 |
|
387 |
<element name="state"> |
393 |
<element name="state"> |
388 |
<annotation> |
394 |
<annotation> |
389 |
<appinfo> |
395 |
<appInfo> |
390 |
<meta.element labelAttribute="class"/> |
396 |
<meta.element labelAttribute="class"/> |
391 |
</appinfo> |
397 |
</appInfo> |
392 |
<documentation> |
398 |
<documentation> |
393 |
<p> |
399 |
<p> |
394 |
State information shared between all handlers, and potentially persisted between sessions.The state is simply a class that is loaded to look after the state. See the API Information for more details. This is not used for UI attributes like a menu contribution check box state or label. |
400 |
State information shared between all handlers, and potentially persisted between sessions.The state is simply a class that is loaded to look after the state. See the API Information for more details. This is not used for UI attributes like a menu contribution check box state or label. |
Lines 405-413
State information shared between all handlers, and potentially persisted between
Link Here
|
405 |
<documentation> |
411 |
<documentation> |
406 |
The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must subclass <code>org.eclipse.core.commands.State</code>. Please see API Information. |
412 |
The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must subclass <code>org.eclipse.core.commands.State</code>. Please see API Information. |
407 |
</documentation> |
413 |
</documentation> |
408 |
<appinfo> |
414 |
<appInfo> |
409 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.State"/> |
415 |
<meta.attribute kind="java" basedOn="org.eclipse.core.commands.State"/> |
410 |
</appinfo> |
416 |
</appInfo> |
411 |
</annotation> |
417 |
</annotation> |
412 |
</attribute> |
418 |
</attribute> |
413 |
<attribute name="id" type="string" use="required"> |
419 |
<attribute name="id" type="string" use="required"> |
Lines 424-432
A unique identifier for this state. This is used for persisting the state betwe
Link Here
|
424 |
|
430 |
|
425 |
<element name="class"> |
431 |
<element name="class"> |
426 |
<annotation> |
432 |
<annotation> |
427 |
<appinfo> |
433 |
<appInfo> |
428 |
<meta.element labelAttribute="class"/> |
434 |
<meta.element labelAttribute="class"/> |
429 |
</appinfo> |
435 |
</appInfo> |
430 |
<documentation> |
436 |
<documentation> |
431 |
<p> |
437 |
<p> |
432 |
The class that can be loaded to store the state of this command. This element is used if you wish to pass multiple parameters to an <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
438 |
The class that can be loaded to store the state of this command. This element is used if you wish to pass multiple parameters to an <code>org.eclipse.core.runtime.IExecutableExtension</code>. |
Lines 443-451
The class that can be loaded to store the state of this command. This element i
Link Here
|
443 |
<documentation> |
449 |
<documentation> |
444 |
The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must implement <code>org.eclipse.core.commands.State</code>. Please see API Information. |
450 |
The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must implement <code>org.eclipse.core.commands.State</code>. Please see API Information. |
445 |
</documentation> |
451 |
</documentation> |
446 |
<appinfo> |
452 |
<appInfo> |
447 |
<meta.attribute kind="java"/> |
453 |
<meta.attribute kind="java"/> |
448 |
</appinfo> |
454 |
</appInfo> |
449 |
</annotation> |
455 |
</annotation> |
450 |
</attribute> |
456 |
</attribute> |
451 |
</complexType> |
457 |
</complexType> |
Lines 453-461
The class that can be loaded to store the state of this command. This element i
Link Here
|
453 |
|
459 |
|
454 |
<element name="keyConfiguration"> |
460 |
<element name="keyConfiguration"> |
455 |
<annotation> |
461 |
<annotation> |
456 |
<appinfo> |
462 |
<appInfo> |
457 |
<meta.element deprecated="true"/> |
463 |
<meta.element deprecated="true"/> |
458 |
</appinfo> |
464 |
</appInfo> |
459 |
<documentation> |
465 |
<documentation> |
460 |
This element is used to define key configurations. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the "org.eclipse.ui.bindings" extension point instead. |
466 |
This element is used to define key configurations. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the "org.eclipse.ui.bindings" extension point instead. |
461 |
</documentation> |
467 |
</documentation> |
Lines 466-474
The class that can be loaded to store the state of this command. This element i
Link Here
|
466 |
<documentation> |
472 |
<documentation> |
467 |
A translatable short description of this key configuration for display in the UI. |
473 |
A translatable short description of this key configuration for display in the UI. |
468 |
</documentation> |
474 |
</documentation> |
469 |
<appinfo> |
475 |
<appInfo> |
470 |
<meta.attribute translatable="true" deprecated="true"/> |
476 |
<meta.attribute translatable="true" deprecated="true"/> |
471 |
</appinfo> |
477 |
</appInfo> |
472 |
</annotation> |
478 |
</annotation> |
473 |
</attribute> |
479 |
</attribute> |
474 |
<attribute name="id" type="string" use="required"> |
480 |
<attribute name="id" type="string" use="required"> |
Lines 476-484
The class that can be loaded to store the state of this command. This element i
Link Here
|
476 |
<documentation> |
482 |
<documentation> |
477 |
The unique identifier of this key configuration. |
483 |
The unique identifier of this key configuration. |
478 |
</documentation> |
484 |
</documentation> |
479 |
<appinfo> |
485 |
<appInfo> |
480 |
<meta.attribute deprecated="true"/> |
486 |
<meta.attribute deprecated="true"/> |
481 |
</appinfo> |
487 |
</appInfo> |
482 |
</annotation> |
488 |
</annotation> |
483 |
</attribute> |
489 |
</attribute> |
484 |
<attribute name="name" type="string" use="required"> |
490 |
<attribute name="name" type="string" use="required"> |
Lines 486-494
The class that can be loaded to store the state of this command. This element i
Link Here
|
486 |
<documentation> |
492 |
<documentation> |
487 |
The translatable name of this key configuration for display in the UI. If this key configuration has a parent, it is not necessary to add "(extends ...)" to the name. This will be automatically added by the UI where necessary. |
493 |
The translatable name of this key configuration for display in the UI. If this key configuration has a parent, it is not necessary to add "(extends ...)" to the name. This will be automatically added by the UI where necessary. |
488 |
</documentation> |
494 |
</documentation> |
489 |
<appinfo> |
495 |
<appInfo> |
490 |
<meta.attribute translatable="true" deprecated="true"/> |
496 |
<meta.attribute translatable="true" deprecated="true"/> |
491 |
</appinfo> |
497 |
</appInfo> |
492 |
</annotation> |
498 |
</annotation> |
493 |
</attribute> |
499 |
</attribute> |
494 |
<attribute name="parent" type="string"> |
500 |
<attribute name="parent" type="string"> |
Lines 497-505
The class that can be loaded to store the state of this command. This element i
Link Here
|
497 |
The unique id of the parent key configuration. If this key configuration has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own key configuration. |
503 |
The unique id of the parent key configuration. If this key configuration has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own key configuration. |
498 |
@deprecated Please use parentId instead. |
504 |
@deprecated Please use parentId instead. |
499 |
</documentation> |
505 |
</documentation> |
500 |
<appinfo> |
506 |
<appInfo> |
501 |
<meta.attribute deprecated="true"/> |
507 |
<meta.attribute deprecated="true"/> |
502 |
</appinfo> |
508 |
</appInfo> |
503 |
</annotation> |
509 |
</annotation> |
504 |
</attribute> |
510 |
</attribute> |
505 |
<attribute name="parentId" type="string"> |
511 |
<attribute name="parentId" type="string"> |
Lines 507-515
The class that can be loaded to store the state of this command. This element i
Link Here
|
507 |
<documentation> |
513 |
<documentation> |
508 |
The unique id of the parent key configuration. If this key configuration has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own key configuration. |
514 |
The unique id of the parent key configuration. If this key configuration has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own key configuration. |
509 |
</documentation> |
515 |
</documentation> |
510 |
<appinfo> |
516 |
<appInfo> |
511 |
<meta.attribute deprecated="true"/> |
517 |
<meta.attribute deprecated="true"/> |
512 |
</appinfo> |
518 |
</appInfo> |
513 |
</annotation> |
519 |
</annotation> |
514 |
</attribute> |
520 |
</attribute> |
515 |
</complexType> |
521 |
</complexType> |
Lines 517-525
The class that can be loaded to store the state of this command. This element i
Link Here
|
517 |
|
523 |
|
518 |
<element name="context"> |
524 |
<element name="context"> |
519 |
<annotation> |
525 |
<annotation> |
520 |
<appinfo> |
526 |
<appInfo> |
521 |
<meta.element deprecated="true"/> |
527 |
<meta.element deprecated="true"/> |
522 |
</appinfo> |
528 |
</appInfo> |
523 |
<documentation> |
529 |
<documentation> |
524 |
This element is used to define contexts. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the <a href="org_eclipse_ui_contexts.html">org.eclipse.ui.contexts</a> extension point instead. |
530 |
This element is used to define contexts. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the <a href="org_eclipse_ui_contexts.html">org.eclipse.ui.contexts</a> extension point instead. |
525 |
</documentation> |
531 |
</documentation> |
Lines 530-538
The class that can be loaded to store the state of this command. This element i
Link Here
|
530 |
<documentation> |
536 |
<documentation> |
531 |
A translatable short description of this context for display in the UI. |
537 |
A translatable short description of this context for display in the UI. |
532 |
</documentation> |
538 |
</documentation> |
533 |
<appinfo> |
539 |
<appInfo> |
534 |
<meta.attribute translatable="true" deprecated="true"/> |
540 |
<meta.attribute translatable="true" deprecated="true"/> |
535 |
</appinfo> |
541 |
</appInfo> |
536 |
</annotation> |
542 |
</annotation> |
537 |
</attribute> |
543 |
</attribute> |
538 |
<attribute name="id" type="string" use="required"> |
544 |
<attribute name="id" type="string" use="required"> |
Lines 540-548
The class that can be loaded to store the state of this command. This element i
Link Here
|
540 |
<documentation> |
546 |
<documentation> |
541 |
The unique identifier of this context. |
547 |
The unique identifier of this context. |
542 |
</documentation> |
548 |
</documentation> |
543 |
<appinfo> |
549 |
<appInfo> |
544 |
<meta.attribute deprecated="true"/> |
550 |
<meta.attribute deprecated="true"/> |
545 |
</appinfo> |
551 |
</appInfo> |
546 |
</annotation> |
552 |
</annotation> |
547 |
</attribute> |
553 |
</attribute> |
548 |
<attribute name="name" type="string" use="required"> |
554 |
<attribute name="name" type="string" use="required"> |
Lines 550-558
The class that can be loaded to store the state of this command. This element i
Link Here
|
550 |
<documentation> |
556 |
<documentation> |
551 |
The translatable name of this context for display in the UI. If this context has a parent, it is not necessary to add "(extends parent)" to the name. This will be automatically added by the UI where necessary. |
557 |
The translatable name of this context for display in the UI. If this context has a parent, it is not necessary to add "(extends parent)" to the name. This will be automatically added by the UI where necessary. |
552 |
</documentation> |
558 |
</documentation> |
553 |
<appinfo> |
559 |
<appInfo> |
554 |
<meta.attribute translatable="true" deprecated="true"/> |
560 |
<meta.attribute translatable="true" deprecated="true"/> |
555 |
</appinfo> |
561 |
</appInfo> |
556 |
</annotation> |
562 |
</annotation> |
557 |
</attribute> |
563 |
</attribute> |
558 |
<attribute name="parent" type="string"> |
564 |
<attribute name="parent" type="string"> |
Lines 561-569
The class that can be loaded to store the state of this command. This element i
Link Here
|
561 |
The unique id of the parent context. If this context has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own context. |
567 |
The unique id of the parent context. If this context has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own context. |
562 |
@deprecated Please use "parentId" instead. |
568 |
@deprecated Please use "parentId" instead. |
563 |
</documentation> |
569 |
</documentation> |
564 |
<appinfo> |
570 |
<appInfo> |
565 |
<meta.attribute deprecated="true"/> |
571 |
<meta.attribute deprecated="true"/> |
566 |
</appinfo> |
572 |
</appInfo> |
567 |
</annotation> |
573 |
</annotation> |
568 |
</attribute> |
574 |
</attribute> |
569 |
<attribute name="parentId" type="string"> |
575 |
<attribute name="parentId" type="string"> |
Lines 571-579
The class that can be loaded to store the state of this command. This element i
Link Here
|
571 |
<documentation> |
577 |
<documentation> |
572 |
The unique id of the parent context. If this context has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own context. |
578 |
The unique id of the parent context. If this context has a parent, it will borrow all key bindings from its parent, in addition to the key bindings defined in its own context. |
573 |
</documentation> |
579 |
</documentation> |
574 |
<appinfo> |
580 |
<appInfo> |
575 |
<meta.attribute deprecated="true"/> |
581 |
<meta.attribute deprecated="true"/> |
576 |
</appinfo> |
582 |
</appInfo> |
577 |
</annotation> |
583 |
</annotation> |
578 |
</attribute> |
584 |
</attribute> |
579 |
</complexType> |
585 |
</complexType> |
Lines 581-589
The class that can be loaded to store the state of this command. This element i
Link Here
|
581 |
|
587 |
|
582 |
<element name="scope"> |
588 |
<element name="scope"> |
583 |
<annotation> |
589 |
<annotation> |
584 |
<appinfo> |
590 |
<appInfo> |
585 |
<meta.element labelAttribute="id" deprecated="true"/> |
591 |
<meta.element labelAttribute="id" deprecated="true"/> |
586 |
</appinfo> |
592 |
</appInfo> |
587 |
<documentation> |
593 |
<documentation> |
588 |
This element is used to define scopes. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. |
594 |
This element is used to define scopes. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. |
589 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
595 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
Lines 597-605
The class that can be loaded to store the state of this command. This element i
Link Here
|
597 |
|
603 |
|
598 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
604 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
599 |
</documentation> |
605 |
</documentation> |
600 |
<appinfo> |
606 |
<appInfo> |
601 |
<meta.attribute translatable="true" deprecated="true"/> |
607 |
<meta.attribute translatable="true" deprecated="true"/> |
602 |
</appinfo> |
608 |
</appInfo> |
603 |
</annotation> |
609 |
</annotation> |
604 |
</attribute> |
610 |
</attribute> |
605 |
<attribute name="id" type="string" use="required"> |
611 |
<attribute name="id" type="string" use="required"> |
Lines 609-617
The class that can be loaded to store the state of this command. This element i
Link Here
|
609 |
|
615 |
|
610 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
616 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
611 |
</documentation> |
617 |
</documentation> |
612 |
<appinfo> |
618 |
<appInfo> |
613 |
<meta.attribute deprecated="true"/> |
619 |
<meta.attribute deprecated="true"/> |
614 |
</appinfo> |
620 |
</appInfo> |
615 |
</annotation> |
621 |
</annotation> |
616 |
</attribute> |
622 |
</attribute> |
617 |
<attribute name="name" type="string" use="required"> |
623 |
<attribute name="name" type="string" use="required"> |
Lines 621-629
The class that can be loaded to store the state of this command. This element i
Link Here
|
621 |
|
627 |
|
622 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
628 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
623 |
</documentation> |
629 |
</documentation> |
624 |
<appinfo> |
630 |
<appInfo> |
625 |
<meta.attribute translatable="true" deprecated="true"/> |
631 |
<meta.attribute translatable="true" deprecated="true"/> |
626 |
</appinfo> |
632 |
</appInfo> |
627 |
</annotation> |
633 |
</annotation> |
628 |
</attribute> |
634 |
</attribute> |
629 |
<attribute name="parent" type="string"> |
635 |
<attribute name="parent" type="string"> |
Lines 633-641
The class that can be loaded to store the state of this command. This element i
Link Here
|
633 |
|
639 |
|
634 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
640 |
@deprecated Please use the "org.eclipse.ui.contexts" extension point instead. |
635 |
</documentation> |
641 |
</documentation> |
636 |
<appinfo> |
642 |
<appInfo> |
637 |
<meta.attribute deprecated="true"/> |
643 |
<meta.attribute deprecated="true"/> |
638 |
</appinfo> |
644 |
</appInfo> |
639 |
</annotation> |
645 |
</annotation> |
640 |
</attribute> |
646 |
</attribute> |
641 |
</complexType> |
647 |
</complexType> |
Lines 643-651
The class that can be loaded to store the state of this command. This element i
Link Here
|
643 |
|
649 |
|
644 |
<element name="activeKeyConfiguration"> |
650 |
<element name="activeKeyConfiguration"> |
645 |
<annotation> |
651 |
<annotation> |
646 |
<appinfo> |
652 |
<appInfo> |
647 |
<meta.element deprecated="true"/> |
653 |
<meta.element deprecated="true"/> |
648 |
</appinfo> |
654 |
</appInfo> |
649 |
<documentation> |
655 |
<documentation> |
650 |
<p> |
656 |
<p> |
651 |
This element is used to define the initial active key configuration for Eclipse. If more than one of these elements exist, only the last declared element (in order of reading the plugin registry) is considered valid. |
657 |
This element is used to define the initial active key configuration for Eclipse. If more than one of these elements exist, only the last declared element (in order of reading the plugin registry) is considered valid. |
Lines 661-669
This element has been replaced with a preference. If your application needs to
Link Here
|
661 |
<documentation> |
667 |
<documentation> |
662 |
The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. |
668 |
The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. |
663 |
</documentation> |
669 |
</documentation> |
664 |
<appinfo> |
670 |
<appInfo> |
665 |
<meta.attribute deprecated="true"/> |
671 |
<meta.attribute deprecated="true"/> |
666 |
</appinfo> |
672 |
</appInfo> |
667 |
</annotation> |
673 |
</annotation> |
668 |
</attribute> |
674 |
</attribute> |
669 |
<attribute name="keyConfigurationId" type="string"> |
675 |
<attribute name="keyConfigurationId" type="string"> |
Lines 671-679
This element has been replaced with a preference. If your application needs to
Link Here
|
671 |
<documentation> |
677 |
<documentation> |
672 |
The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. |
678 |
The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. |
673 |
</documentation> |
679 |
</documentation> |
674 |
<appinfo> |
680 |
<appInfo> |
675 |
<meta.attribute deprecated="true"/> |
681 |
<meta.attribute deprecated="true"/> |
676 |
</appinfo> |
682 |
</appInfo> |
677 |
</annotation> |
683 |
</annotation> |
678 |
</attribute> |
684 |
</attribute> |
679 |
</complexType> |
685 |
</complexType> |
Lines 681-689
This element has been replaced with a preference. If your application needs to
Link Here
|
681 |
|
687 |
|
682 |
<element name="keyBinding"> |
688 |
<element name="keyBinding"> |
683 |
<annotation> |
689 |
<annotation> |
684 |
<appinfo> |
690 |
<appInfo> |
685 |
<meta.element deprecated="true"/> |
691 |
<meta.element deprecated="true"/> |
686 |
</appinfo> |
692 |
</appInfo> |
687 |
<documentation> |
693 |
<documentation> |
688 |
This element allows one to assign key sequences to commands. Please use the <code>key</code> element in the "org.eclipse.ui.bindings" extension point instead. |
694 |
This element allows one to assign key sequences to commands. Please use the <code>key</code> element in the "org.eclipse.ui.bindings" extension point instead. |
689 |
</documentation> |
695 |
</documentation> |
Lines 695-703
This element has been replaced with a preference. If your application needs to
Link Here
|
695 |
The unique id of the key configuration of this key binding. |
701 |
The unique id of the key configuration of this key binding. |
696 |
@deprecated Please use keyConfigurationId instead. |
702 |
@deprecated Please use keyConfigurationId instead. |
697 |
</documentation> |
703 |
</documentation> |
698 |
<appinfo> |
704 |
<appInfo> |
699 |
<meta.attribute deprecated="true"/> |
705 |
<meta.attribute deprecated="true"/> |
700 |
</appinfo> |
706 |
</appInfo> |
701 |
</annotation> |
707 |
</annotation> |
702 |
</attribute> |
708 |
</attribute> |
703 |
<attribute name="command" type="string"> |
709 |
<attribute name="command" type="string"> |
Lines 706-714
This element has been replaced with a preference. If your application needs to
Link Here
|
706 |
The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. |
712 |
The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. |
707 |
@deprecated Please use "commandId" instead. |
713 |
@deprecated Please use "commandId" instead. |
708 |
</documentation> |
714 |
</documentation> |
709 |
<appinfo> |
715 |
<appInfo> |
710 |
<meta.attribute deprecated="true"/> |
716 |
<meta.attribute deprecated="true"/> |
711 |
</appinfo> |
717 |
</appInfo> |
712 |
</annotation> |
718 |
</annotation> |
713 |
</attribute> |
719 |
</attribute> |
714 |
<attribute name="locale" type="string"> |
720 |
<attribute name="locale" type="string"> |
Lines 716-724
This element has been replaced with a preference. If your application needs to
Link Here
|
716 |
<documentation> |
722 |
<documentation> |
717 |
An optional attribute indicating that this key binding is only defined for the specified locale. Locales are specified according to the format declared in <code>java.util.Locale</code>. |
723 |
An optional attribute indicating that this key binding is only defined for the specified locale. Locales are specified according to the format declared in <code>java.util.Locale</code>. |
718 |
</documentation> |
724 |
</documentation> |
719 |
<appinfo> |
725 |
<appInfo> |
720 |
<meta.attribute deprecated="true"/> |
726 |
<meta.attribute deprecated="true"/> |
721 |
</appinfo> |
727 |
</appInfo> |
722 |
</annotation> |
728 |
</annotation> |
723 |
</attribute> |
729 |
</attribute> |
724 |
<attribute name="platform" type="string"> |
730 |
<attribute name="platform" type="string"> |
Lines 726-734
This element has been replaced with a preference. If your application needs to
Link Here
|
726 |
<documentation> |
732 |
<documentation> |
727 |
An optional attribute indicating that this key binding is only defined for the specified platform. The possible values of the <code>platform</code> attribute are the set of the possible values returned by <code>org.eclipse.swt.SWT.getPlatform()</code>. |
733 |
An optional attribute indicating that this key binding is only defined for the specified platform. The possible values of the <code>platform</code> attribute are the set of the possible values returned by <code>org.eclipse.swt.SWT.getPlatform()</code>. |
728 |
</documentation> |
734 |
</documentation> |
729 |
<appinfo> |
735 |
<appInfo> |
730 |
<meta.attribute deprecated="true"/> |
736 |
<meta.attribute deprecated="true"/> |
731 |
</appinfo> |
737 |
</appInfo> |
732 |
</annotation> |
738 |
</annotation> |
733 |
</attribute> |
739 |
</attribute> |
734 |
<attribute name="contextId" type="string"> |
740 |
<attribute name="contextId" type="string"> |
Lines 736-744
This element has been replaced with a preference. If your application needs to
Link Here
|
736 |
<documentation> |
742 |
<documentation> |
737 |
The unique id of the context of this key binding. |
743 |
The unique id of the context of this key binding. |
738 |
</documentation> |
744 |
</documentation> |
739 |
<appinfo> |
745 |
<appInfo> |
740 |
<meta.attribute deprecated="true"/> |
746 |
<meta.attribute deprecated="true"/> |
741 |
</appinfo> |
747 |
</appInfo> |
742 |
</annotation> |
748 |
</annotation> |
743 |
</attribute> |
749 |
</attribute> |
744 |
<attribute name="string" type="string"> |
750 |
<attribute name="string" type="string"> |
Lines 747-755
This element has been replaced with a preference. If your application needs to
Link Here
|
747 |
The key sequence to assign to the command. Key sequences consist of one or more key strokes, where a key stroke consists of a key on the keyboard, optionally pressed in combination with one or more of the following modifiers: Ctrl, Alt, Shift, and Command. Key strokes are separated by spaces, and modifiers are separated by '+' characters. |
753 |
The key sequence to assign to the command. Key sequences consist of one or more key strokes, where a key stroke consists of a key on the keyboard, optionally pressed in combination with one or more of the following modifiers: Ctrl, Alt, Shift, and Command. Key strokes are separated by spaces, and modifiers are separated by '+' characters. |
748 |
@deprecated Please use "keySequence" instead. |
754 |
@deprecated Please use "keySequence" instead. |
749 |
</documentation> |
755 |
</documentation> |
750 |
<appinfo> |
756 |
<appInfo> |
751 |
<meta.attribute deprecated="true"/> |
757 |
<meta.attribute deprecated="true"/> |
752 |
</appinfo> |
758 |
</appInfo> |
753 |
</annotation> |
759 |
</annotation> |
754 |
</attribute> |
760 |
</attribute> |
755 |
<attribute name="scope" type="string"> |
761 |
<attribute name="scope" type="string"> |
Lines 758-766
This element has been replaced with a preference. If your application needs to
Link Here
|
758 |
The unique id of the context of this key binding. |
764 |
The unique id of the context of this key binding. |
759 |
@deprecated Please use "contextId" instead. The old default scope, "org.eclipse.ui.globalScope", has been changed to "org.eclipse.ui.contexts.window". The old name is still supported, but it is deprecated. |
765 |
@deprecated Please use "contextId" instead. The old default scope, "org.eclipse.ui.globalScope", has been changed to "org.eclipse.ui.contexts.window". The old name is still supported, but it is deprecated. |
760 |
</documentation> |
766 |
</documentation> |
761 |
<appinfo> |
767 |
<appInfo> |
762 |
<meta.attribute deprecated="true"/> |
768 |
<meta.attribute deprecated="true"/> |
763 |
</appinfo> |
769 |
</appInfo> |
764 |
</annotation> |
770 |
</annotation> |
765 |
</attribute> |
771 |
</attribute> |
766 |
<attribute name="keyConfigurationId" type="string"> |
772 |
<attribute name="keyConfigurationId" type="string"> |
Lines 769-777
This element has been replaced with a preference. If your application needs to
Link Here
|
769 |
The unique id of the key configuration of this key binding. |
775 |
The unique id of the key configuration of this key binding. |
770 |
@deprecated Please use the <code>schemeId</code> attribute on the <code>key</code> element in the new "org.eclipse.ui.bindings" extension point. |
776 |
@deprecated Please use the <code>schemeId</code> attribute on the <code>key</code> element in the new "org.eclipse.ui.bindings" extension point. |
771 |
</documentation> |
777 |
</documentation> |
772 |
<appinfo> |
778 |
<appInfo> |
773 |
<meta.attribute deprecated="true"/> |
779 |
<meta.attribute deprecated="true"/> |
774 |
</appinfo> |
780 |
</appInfo> |
775 |
</annotation> |
781 |
</annotation> |
776 |
</attribute> |
782 |
</attribute> |
777 |
<attribute name="commandId" type="string"> |
783 |
<attribute name="commandId" type="string"> |
Lines 779-787
This element has been replaced with a preference. If your application needs to
Link Here
|
779 |
<documentation> |
785 |
<documentation> |
780 |
The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. |
786 |
The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. |
781 |
</documentation> |
787 |
</documentation> |
782 |
<appinfo> |
788 |
<appInfo> |
783 |
<meta.attribute deprecated="true"/> |
789 |
<meta.attribute deprecated="true"/> |
784 |
</appinfo> |
790 |
</appInfo> |
785 |
</annotation> |
791 |
</annotation> |
786 |
</attribute> |
792 |
</attribute> |
787 |
<attribute name="keySequence" type="string"> |
793 |
<attribute name="keySequence" type="string"> |
Lines 791-817
This element has been replaced with a preference. If your application needs to
Link Here
|
791 |
<p>The modifier keys can also be expressed in a platform-independent way. On MacOS X, for example, "Command" is almost always used in place of "Ctrl". So, we provide "M1" which will map to either "Ctrl" or "Command", as appropriate. Similarly, "M2" is "Shift"; "M3" is "Alt"; and "M4" is "Ctrl" (MacOS X). If more platforms are added, then you can count on these aliases being mapped to good platform defaults.</p> |
797 |
<p>The modifier keys can also be expressed in a platform-independent way. On MacOS X, for example, "Command" is almost always used in place of "Ctrl". So, we provide "M1" which will map to either "Ctrl" or "Command", as appropriate. Similarly, "M2" is "Shift"; "M3" is "Alt"; and "M4" is "Ctrl" (MacOS X). If more platforms are added, then you can count on these aliases being mapped to good platform defaults.</p> |
792 |
<p>The syntax for this string is defined in <code>org.eclipse.ui.internal.keys</code>. Briefly, the string is case insensitive -- though all capitals is preferred stylistically. If the key is a letter, then simply append the letter. If the key is a special key (i.e., non-ASCII), then use one of the following: ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BREAK, CAPS_LOCK, END, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, HOME, INSERT, NUM_LOCK, NUMPAD_0, NUMPAD_1, NUMPAD_2, NUMPAD_3, NUMPAD_4, NUMPAD_5, NUMPAD_6, NUMPAD_7, NUMPAD_8, NUMPAD_9, NUMPAD_ADD, NUMPAD_DECIMAL, NUMPAD_DIVIDE, NUMPAD_ENTER, NUMPAD_EQUAL, NUMPAD_MULTIPLY, NUMPAD_SUBTRACT, PAGE_UP, PAGE_DOWN, PAUSE, PRINT_SCREEN, or SCROLL_LOCK. If the key is a non-printable ASCII key, then use one of the following: BS, CR, DEL, ESC, FF, LF, NUL, SPACE, TAB, or VT. Note that the main keyboard enter/return key is CR.</p> |
798 |
<p>The syntax for this string is defined in <code>org.eclipse.ui.internal.keys</code>. Briefly, the string is case insensitive -- though all capitals is preferred stylistically. If the key is a letter, then simply append the letter. If the key is a special key (i.e., non-ASCII), then use one of the following: ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BREAK, CAPS_LOCK, END, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, HOME, INSERT, NUM_LOCK, NUMPAD_0, NUMPAD_1, NUMPAD_2, NUMPAD_3, NUMPAD_4, NUMPAD_5, NUMPAD_6, NUMPAD_7, NUMPAD_8, NUMPAD_9, NUMPAD_ADD, NUMPAD_DECIMAL, NUMPAD_DIVIDE, NUMPAD_ENTER, NUMPAD_EQUAL, NUMPAD_MULTIPLY, NUMPAD_SUBTRACT, PAGE_UP, PAGE_DOWN, PAUSE, PRINT_SCREEN, or SCROLL_LOCK. If the key is a non-printable ASCII key, then use one of the following: BS, CR, DEL, ESC, FF, LF, NUL, SPACE, TAB, or VT. Note that the main keyboard enter/return key is CR.</p> |
793 |
</documentation> |
799 |
</documentation> |
794 |
<appinfo> |
800 |
<appInfo> |
795 |
<meta.attribute deprecated="true"/> |
801 |
<meta.attribute deprecated="true"/> |
796 |
</appinfo> |
802 |
</appInfo> |
|
|
803 |
</annotation> |
804 |
</attribute> |
805 |
</complexType> |
806 |
</element> |
807 |
|
808 |
<element name="aliasFor"> |
809 |
<annotation> |
810 |
<documentation> |
811 |
Adding an "aliasFor" element to a command makes the command an alias for another command specified by the "commandId" attribute of the "aliasFor" element. This allows to refactor commands and change their ids in a backward-compatible fashion by defining a new command and making the old one an alias for the new one. All attributes of the alias command except the id will be ignored. The command itself will not be defined, wherever the command id is used, the alias command is used instead. |
812 |
</documentation> |
813 |
</annotation> |
814 |
<complexType> |
815 |
<attribute name="commandId" type="string" use="required"> |
816 |
<annotation> |
817 |
<documentation> |
818 |
This is the id of the Command that this command is an alias for. |
819 |
</documentation> |
820 |
<appInfo> |
821 |
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/> |
822 |
</appInfo> |
797 |
</annotation> |
823 |
</annotation> |
798 |
</attribute> |
824 |
</attribute> |
799 |
</complexType> |
825 |
</complexType> |
800 |
</element> |
826 |
</element> |
801 |
|
827 |
|
802 |
<annotation> |
828 |
<annotation> |
803 |
<appinfo> |
829 |
<appInfo> |
804 |
<meta.section type="since"/> |
830 |
<meta.section type="since"/> |
805 |
</appinfo> |
831 |
</appInfo> |
806 |
<documentation> |
832 |
<documentation> |
807 |
2.1 |
833 |
2.1 |
808 |
</documentation> |
834 |
</documentation> |
809 |
</annotation> |
835 |
</annotation> |
810 |
|
836 |
|
811 |
<annotation> |
837 |
<annotation> |
812 |
<appinfo> |
838 |
<appInfo> |
813 |
<meta.section type="examples"/> |
839 |
<meta.section type="examples"/> |
814 |
</appinfo> |
840 |
</appInfo> |
815 |
<documentation> |
841 |
<documentation> |
816 |
<p> |
842 |
<p> |
817 |
The <code>plugin.xml</code> file in the <code>org.eclipse.ui</code> plugin makes extensive use of the <code>org.eclipse.ui.commands</code> extension point. |
843 |
The <code>plugin.xml</code> file in the <code>org.eclipse.ui</code> plugin makes extensive use of the <code>org.eclipse.ui.commands</code> extension point. |
Lines 820-828
The <code>plugin.xml</code> file in the <code>org.eclipse.ui&l
Link Here
|
820 |
</annotation> |
846 |
</annotation> |
821 |
|
847 |
|
822 |
<annotation> |
848 |
<annotation> |
823 |
<appinfo> |
849 |
<appInfo> |
824 |
<meta.section type="apiInfo"/> |
850 |
<meta.section type="apiInfo"/> |
825 |
</appinfo> |
851 |
</appInfo> |
826 |
<documentation> |
852 |
<documentation> |
827 |
<p> |
853 |
<p> |
828 |
Handlers can be registered with commands using the <code>org.eclipse.ui.handlers.IHandlerService</code>. This can be retrieved from various workbench components (e.g., workbench, workbench window, part site, etc.) by calling <code>getService(IHandlerService.class)</code>. |
854 |
Handlers can be registered with commands using the <code>org.eclipse.ui.handlers.IHandlerService</code>. This can be retrieved from various workbench components (e.g., workbench, workbench window, part site, etc.) by calling <code>getService(IHandlerService.class)</code>. |
Lines 845-855
There are a few default implementations of handler states that may be useful to
Link Here
|
845 |
</annotation> |
871 |
</annotation> |
846 |
|
872 |
|
847 |
|
873 |
|
848 |
|
|
|
849 |
<annotation> |
874 |
<annotation> |
850 |
<appinfo> |
875 |
<appInfo> |
851 |
<meta.section type="copyright"/> |
876 |
<meta.section type="copyright"/> |
852 |
</appinfo> |
877 |
</appInfo> |
853 |
<documentation> |
878 |
<documentation> |
854 |
Copyright (c) 2000, 2007 IBM Corporation and others.<br> |
879 |
Copyright (c) 2000, 2007 IBM Corporation and others.<br> |
855 |
All rights reserved. This program and the accompanying materials are made |
880 |
All rights reserved. This program and the accompanying materials are made |