Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 181515 | Differences between
and this patch

Collapse All | Expand All

(-)schema/perspectiveExtensions.exsd (-22 / +39 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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="perspectiveExtensions" name="Perspective Extensions"/>
6
         <meta.schema plugin="org.eclipse.ui" id="perspectiveExtensions" name="Perspective Extensions"/>
7
      </appInfo>
7
      </appinfo>
8
      <documentation>
8
      <documentation>
9
         This extension point is used to extend perspectives 
9
         This extension point is used to extend perspectives 
10
registered by other plug-ins. A perspective defines 
10
registered by other plug-ins. A perspective defines 
Lines 42-50 Link Here
42
               <documentation>
42
               <documentation>
43
                  an optional name of the extension instance
43
                  an optional name of the extension instance
44
               </documentation>
44
               </documentation>
45
               <appInfo>
45
               <appinfo>
46
                  <meta.attribute translatable="true"/>
46
                  <meta.attribute translatable="true"/>
47
               </appInfo>
47
               </appinfo>
48
            </annotation>
48
            </annotation>
49
         </attribute>
49
         </attribute>
50
      </complexType>
50
      </complexType>
Lines 52-60 Link Here
52
52
53
   <element name="perspectiveExtension">
53
   <element name="perspectiveExtension">
54
      <annotation>
54
      <annotation>
55
         <appInfo>
55
         <appinfo>
56
            <meta.element labelAttribute="targetID"/>
56
            <meta.element labelAttribute="targetID"/>
57
         </appInfo>
57
         </appinfo>
58
      </annotation>
58
      </annotation>
59
      <complexType>
59
      <complexType>
60
         <choice minOccurs="0" maxOccurs="unbounded">
60
         <choice minOccurs="0" maxOccurs="unbounded">
Lines 69-76 Link Here
69
            <annotation>
69
            <annotation>
70
               <documentation>
70
               <documentation>
71
                  the unique identifier of the perspective (as specified in the registry) into which the contribution is made. If the value is set to &quot;*&quot; the extension is applied to all perspectives.
71
                  the unique identifier of the perspective (as specified in the registry) into which the contribution is made. If the value is set to &quot;*&quot; the extension is applied to all perspectives.
72
73
               </documentation>
72
               </documentation>
73
               <appinfo>
74
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/>
75
               </appinfo>
74
            </annotation>
76
            </annotation>
75
         </attribute>
77
         </attribute>
76
      </complexType>
78
      </complexType>
Lines 83-88 Link Here
83
               <documentation>
85
               <documentation>
84
                  the unique identifier of the action set which will be added to the perspective.
86
                  the unique identifier of the action set which will be added to the perspective.
85
               </documentation>
87
               </documentation>
88
               <appinfo>
89
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.actionSets/actionSet/@id"/>
90
               </appinfo>
86
            </annotation>
91
            </annotation>
87
         </attribute>
92
         </attribute>
88
      </complexType>
93
      </complexType>
Lines 95-100 Link Here
95
               <documentation>
100
               <documentation>
96
                  the unique identifier of the view which will be added to the perspective&apos;s &quot;Show View&quot; submenu of the &quot;Window&quot; menu.
101
                  the unique identifier of the view which will be added to the perspective&apos;s &quot;Show View&quot; submenu of the &quot;Window&quot; menu.
97
               </documentation>
102
               </documentation>
103
               <appinfo>
104
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
105
               </appinfo>
98
            </annotation>
106
            </annotation>
99
         </attribute>
107
         </attribute>
100
      </complexType>
108
      </complexType>
Lines 107-112 Link Here
107
               <documentation>
115
               <documentation>
108
                  the unique identifier of the perspective which will be added to the perspective&apos;s &quot;Open Perspective&quot; submenu of the &quot;Window&quot; menu.
116
                  the unique identifier of the perspective which will be added to the perspective&apos;s &quot;Open Perspective&quot; submenu of the &quot;Window&quot; menu.
109
               </documentation>
117
               </documentation>
118
               <appinfo>
119
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/>
120
               </appinfo>
110
            </annotation>
121
            </annotation>
111
         </attribute>
122
         </attribute>
112
      </complexType>
123
      </complexType>
Lines 119-124 Link Here
119
               <documentation>
130
               <documentation>
120
                  the unique identifier of the new wizard which will be added to the perspective&apos;s &quot;New&quot; submenu of the &quot;File&quot; menu.
131
                  the unique identifier of the new wizard which will be added to the perspective&apos;s &quot;New&quot; submenu of the &quot;File&quot; menu.
121
               </documentation>
132
               </documentation>
133
               <appinfo>
134
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.newWizards/wizard/@id"/>
135
               </appinfo>
122
            </annotation>
136
            </annotation>
123
         </attribute>
137
         </attribute>
124
      </complexType>
138
      </complexType>
Lines 131-136 Link Here
131
               <documentation>
145
               <documentation>
132
                  the unique identifier of the view which will be added to the perspective&apos;s &quot;Show In...&quot; prompter in the Navigate menu.
146
                  the unique identifier of the view which will be added to the perspective&apos;s &quot;Show In...&quot; prompter in the Navigate menu.
133
               </documentation>
147
               </documentation>
148
               <appinfo>
149
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
150
               </appinfo>
134
            </annotation>
151
            </annotation>
135
         </attribute>
152
         </attribute>
136
      </complexType>
153
      </complexType>
Lines 143-148 Link Here
143
               <documentation>
160
               <documentation>
144
                  the unique identifier of the view which will be added to the perspective layout.
161
                  the unique identifier of the view which will be added to the perspective layout.
145
               </documentation>
162
               </documentation>
163
               <appinfo>
164
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
165
               </appinfo>
146
            </annotation>
166
            </annotation>
147
         </attribute>
167
         </attribute>
148
         <attribute name="relative" type="string">
168
         <attribute name="relative" type="string">
Lines 150-155 Link Here
150
               <documentation>
170
               <documentation>
151
                  the unique identifier of a view which already exists in the perspective.  This will be used as a reference point for placement of the view.  The relationship between these two views is defined by &lt;samp&gt;relationship&lt;/samp&gt;.  Ignored if relationship is &quot;fast&quot;.
171
                  the unique identifier of a view which already exists in the perspective.  This will be used as a reference point for placement of the view.  The relationship between these two views is defined by &lt;samp&gt;relationship&lt;/samp&gt;.  Ignored if relationship is &quot;fast&quot;.
152
               </documentation>
172
               </documentation>
173
               <appinfo>
174
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/>
175
               </appinfo>
153
            </annotation>
176
            </annotation>
154
         </attribute>
177
         </attribute>
155
         <attribute name="relationship" use="required">
178
         <attribute name="relationship" use="required">
Lines 239-247 Link Here
239
   </element>
262
   </element>
240
263
241
   <annotation>
264
   <annotation>
242
      <appInfo>
265
      <appinfo>
243
         <meta.section type="examples"/>
266
         <meta.section type="examples"/>
244
      </appInfo>
267
      </appinfo>
245
      <documentation>
268
      <documentation>
246
         The following is an example of a perspective extension (note the subelements and the way attributes are used):
269
         The following is an example of a perspective extension (note the subelements and the way attributes are used):
247
&lt;p&gt;
270
&lt;p&gt;
Lines 277-303 Link Here
277
   </annotation>
300
   </annotation>
278
301
279
   <annotation>
302
   <annotation>
280
      <appInfo>
303
      <appinfo>
281
         <meta.section type="apiInfo"/>
304
         <meta.section type="apiInfo"/>
282
      </appInfo>
305
      </appinfo>
283
      <documentation>
306
      <documentation>
284
         The items defined within the perspective extension are contributed to the initial contents of the target perspective.  Following this, the user may remove any contribution or add others to a perspective from within the workbench user interface.
307
         The items defined within the perspective extension are contributed to the initial contents of the target perspective.  Following this, the user may remove any contribution or add others to a perspective from within the workbench user interface.
285
      </documentation>
308
      </documentation>
286
   </annotation>
309
   </annotation>
287
310
288
   <annotation>
311
289
      <appInfo>
312
290
         <meta.section type="implementation"/>
291
      </appInfo>
292
      <documentation>
293
         
294
      </documentation>
295
   </annotation>
296
313
297
   <annotation>
314
   <annotation>
298
      <appInfo>
315
      <appinfo>
299
         <meta.section type="copyright"/>
316
         <meta.section type="copyright"/>
300
      </appInfo>
317
      </appinfo>
301
      <documentation>
318
      <documentation>
302
         Copyright (c) 2002, 2007 IBM Corporation and others.&lt;br&gt;
319
         Copyright (c) 2002, 2007 IBM Corporation and others.&lt;br&gt;
303
All rights reserved. This program and the accompanying materials are made
320
All rights reserved. This program and the accompanying materials are made
(-)schema/commands.exsd (-123 / +125 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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
         &lt;p&gt;
9
         &lt;p&gt;
10
The &lt;code&gt;org.eclipse.ui.commands&lt;/code&gt; extension point is used to declare commands and command categories, using the &lt;code&gt;command&lt;/code&gt; and &lt;code&gt;category&lt;/code&gt; elements. A command is an abstract representation of some semantic behaviour, but not it&apos;s actual implementation.  This allows different developers to contribute specific behaviour for their individual parts.  For example, there might be a &quot;paste&quot; 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 &lt;code&gt;org.eclipse.ui.commands&lt;/code&gt; extension point is used to declare commands and command categories, using the &lt;code&gt;command&lt;/code&gt; and &lt;code&gt;category&lt;/code&gt; elements. A command is an abstract representation of some semantic behaviour, but not it&apos;s actual implementation.  This allows different developers to contribute specific behaviour for their individual parts.  For example, there might be a &quot;paste&quot; 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 36-44 Link Here
36
               <documentation>
36
               <documentation>
37
                  An optional name of the extension instance.
37
                  An optional name of the extension instance.
38
               </documentation>
38
               </documentation>
39
               <appInfo>
39
               <appinfo>
40
                  <meta.attribute translatable="true"/>
40
                  <meta.attribute translatable="true"/>
41
               </appInfo>
41
               </appinfo>
42
            </annotation>
42
            </annotation>
43
         </attribute>
43
         </attribute>
44
         <attribute name="point" type="string" use="required">
44
         <attribute name="point" type="string" use="required">
Lines 70-78 Link Here
70
               <documentation>
70
               <documentation>
71
                  Please use &lt;code&gt;categoryId&lt;/code&gt; instead.
71
                  Please use &lt;code&gt;categoryId&lt;/code&gt; instead.
72
               </documentation>
72
               </documentation>
73
               <appInfo>
73
               <appinfo>
74
                  <meta.attribute deprecated="true"/>
74
                  <meta.attribute deprecated="true"/>
75
               </appInfo>
75
               </appinfo>
76
            </annotation>
76
            </annotation>
77
         </attribute>
77
         </attribute>
78
         <attribute name="description" type="string">
78
         <attribute name="description" type="string">
Lines 80-88 Link Here
80
               <documentation>
80
               <documentation>
81
                  A translatable short description of this command for display in the UI.
81
                  A translatable short description of this command for display in the UI.
82
               </documentation>
82
               </documentation>
83
               <appInfo>
83
               <appinfo>
84
                  <meta.attribute translatable="true"/>
84
                  <meta.attribute translatable="true"/>
85
               </appInfo>
85
               </appinfo>
86
            </annotation>
86
            </annotation>
87
         </attribute>
87
         </attribute>
88
         <attribute name="id" type="string" use="required">
88
         <attribute name="id" type="string" use="required">
Lines 97-105 Link Here
97
               <documentation>
97
               <documentation>
98
                  The translatable name of this command for display in the UI. Commands are typically named in the form of an imperative verb.
98
                  The translatable name of this command for display in the UI. Commands are typically named in the form of an imperative verb.
99
               </documentation>
99
               </documentation>
100
               <appInfo>
100
               <appinfo>
101
                  <meta.attribute translatable="true"/>
101
                  <meta.attribute translatable="true"/>
102
               </appInfo>
102
               </appinfo>
103
            </annotation>
103
            </annotation>
104
         </attribute>
104
         </attribute>
105
         <attribute name="categoryId" type="string">
105
         <attribute name="categoryId" type="string">
Lines 110-115 Link Here
110
&lt;/p&gt;
110
&lt;/p&gt;
111
&lt;p&gt;&lt;em&gt;Since: 3.0&lt;/em&gt;&lt;/p&gt;
111
&lt;p&gt;&lt;em&gt;Since: 3.0&lt;/em&gt;&lt;/p&gt;
112
               </documentation>
112
               </documentation>
113
               <appinfo>
114
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/>
115
               </appinfo>
113
            </annotation>
116
            </annotation>
114
         </attribute>
117
         </attribute>
115
         <attribute name="defaultHandler" type="string">
118
         <attribute name="defaultHandler" type="string">
Lines 120-128 Link Here
120
&lt;/p&gt;
123
&lt;/p&gt;
121
&lt;p&gt;&lt;em&gt;Since: 3.1&lt;/em&gt;&lt;/p&gt;
124
&lt;p&gt;&lt;em&gt;Since: 3.1&lt;/em&gt;&lt;/p&gt;
122
               </documentation>
125
               </documentation>
123
               <appInfo>
126
               <appinfo>
124
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
127
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
125
               </appInfo>
128
               </appinfo>
126
            </annotation>
129
            </annotation>
127
         </attribute>
130
         </attribute>
128
         <attribute name="returnTypeId" type="string">
131
         <attribute name="returnTypeId" type="string">
Lines 133-138 Link Here
133
&lt;/p&gt;
136
&lt;/p&gt;
134
&lt;p&gt;&lt;em&gt;Since: 3.2&lt;/em&gt;&lt;/p&gt;
137
&lt;p&gt;&lt;em&gt;Since: 3.2&lt;/em&gt;&lt;/p&gt;
135
               </documentation>
138
               </documentation>
139
               <appinfo>
140
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/>
141
               </appinfo>
136
            </annotation>
142
            </annotation>
137
         </attribute>
143
         </attribute>
138
         <attribute name="helpContextId" type="string">
144
         <attribute name="helpContextId" type="string">
Lines 162-170 Link Here
162
               <documentation>
168
               <documentation>
163
                  A translatable short description of this category for display in the UI.
169
                  A translatable short description of this category for display in the UI.
164
               </documentation>
170
               </documentation>
165
               <appInfo>
171
               <appinfo>
166
                  <meta.attribute translatable="true"/>
172
                  <meta.attribute translatable="true"/>
167
               </appInfo>
173
               </appinfo>
168
            </annotation>
174
            </annotation>
169
         </attribute>
175
         </attribute>
170
         <attribute name="id" type="string" use="required">
176
         <attribute name="id" type="string" use="required">
Lines 179-187 Link Here
179
               <documentation>
185
               <documentation>
180
                  The translatable name of this category for display in the UI.
186
                  The translatable name of this category for display in the UI.
181
               </documentation>
187
               </documentation>
182
               <appInfo>
188
               <appinfo>
183
                  <meta.attribute translatable="true"/>
189
                  <meta.attribute translatable="true"/>
184
               </appInfo>
190
               </appinfo>
185
            </annotation>
191
            </annotation>
186
         </attribute>
192
         </attribute>
187
      </complexType>
193
      </complexType>
Lines 189-197 Link Here
189
195
190
   <element name="commandParameter">
196
   <element name="commandParameter">
191
      <annotation>
197
      <annotation>
192
         <appInfo>
198
         <appinfo>
193
            <meta.element labelAttribute="id"/>
199
            <meta.element labelAttribute="id"/>
194
         </appInfo>
200
         </appinfo>
195
         <documentation>
201
         <documentation>
196
            &lt;p&gt;
202
            &lt;p&gt;
197
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 &quot;show view&quot; command might take a view as a parameter.  Handlers should be able to understand these parameters, so they should be treated like API.
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 &quot;show view&quot; command might take a view as a parameter.  Handlers should be able to understand these parameters, so they should be treated like API.
Lines 215-223 Link Here
215
               <documentation>
221
               <documentation>
216
                  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.
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.
217
               </documentation>
223
               </documentation>
218
               <appInfo>
224
               <appinfo>
219
                  <meta.attribute translatable="true"/>
225
                  <meta.attribute translatable="true"/>
220
               </appInfo>
226
               </appinfo>
221
            </annotation>
227
            </annotation>
222
         </attribute>
228
         </attribute>
223
         <attribute name="values" type="string">
229
         <attribute name="values" type="string">
Lines 225-233 Link Here
225
               <documentation>
231
               <documentation>
226
                  The class providing a list of parameter values for the user to select.  This class should implement &lt;code&gt;org.eclipse.core.commands.IParameterValues&lt;/code&gt;.  If this class is not specified, you must specify the more verbose &lt;code&gt;values&lt;/code&gt; element.  Please see &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
232
                  The class providing a list of parameter values for the user to select.  This class should implement &lt;code&gt;org.eclipse.core.commands.IParameterValues&lt;/code&gt;.  If this class is not specified, you must specify the more verbose &lt;code&gt;values&lt;/code&gt; element.  Please see &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
227
               </documentation>
233
               </documentation>
228
               <appInfo>
234
               <appinfo>
229
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/>
235
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/>
230
               </appInfo>
236
               </appinfo>
231
            </annotation>
237
            </annotation>
232
         </attribute>
238
         </attribute>
233
         <attribute name="typeId" type="string">
239
         <attribute name="typeId" type="string">
Lines 235-240 Link Here
235
               <documentation>
241
               <documentation>
236
                  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.
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.
237
               </documentation>
243
               </documentation>
244
               <appinfo>
245
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/>
246
               </appinfo>
238
            </annotation>
247
            </annotation>
239
         </attribute>
248
         </attribute>
240
         <attribute name="optional" type="boolean" use="default" value="true">
249
         <attribute name="optional" type="boolean" use="default" value="true">
Lines 269-277 Link Here
269
               <documentation>
278
               <documentation>
270
                  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, &lt;code&gt;java.lang.Object&lt;/code&gt; will be used as the parameter type.
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, &lt;code&gt;java.lang.Object&lt;/code&gt; will be used as the parameter type.
271
               </documentation>
280
               </documentation>
272
               <appInfo>
281
               <appinfo>
273
                  <meta.attribute kind="java"/>
282
                  <meta.attribute kind="java"/>
274
               </appInfo>
283
               </appinfo>
275
            </annotation>
284
            </annotation>
276
         </attribute>
285
         </attribute>
277
         <attribute name="converter" type="string">
286
         <attribute name="converter" type="string">
Lines 279-287 Link Here
279
               <documentation>
288
               <documentation>
280
                  The class for converting between objects and string representations of objects for command parameter values.  This class should extend &lt;code&gt;org.eclipse.core.commands.AbstractParameterValueConverter&lt;/code&gt;. The converter should produce and consume objects of the type indicated in the &lt;code&gt;type&lt;/code&gt; 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 &lt;code&gt;getValueConverter()&lt;/code&gt; on class &lt;code&gt;ParameterType&lt;/code&gt; will return &lt;code&gt;null&lt;/code&gt;).
289
                  The class for converting between objects and string representations of objects for command parameter values.  This class should extend &lt;code&gt;org.eclipse.core.commands.AbstractParameterValueConverter&lt;/code&gt;. The converter should produce and consume objects of the type indicated in the &lt;code&gt;type&lt;/code&gt; 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 &lt;code&gt;getValueConverter()&lt;/code&gt; on class &lt;code&gt;ParameterType&lt;/code&gt; will return &lt;code&gt;null&lt;/code&gt;).
281
               </documentation>
290
               </documentation>
282
               <appInfo>
291
               <appinfo>
283
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.AbstractParameterValueConverter"/>
292
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.AbstractParameterValueConverter"/>
284
               </appInfo>
293
               </appinfo>
285
            </annotation>
294
            </annotation>
286
         </attribute>
295
         </attribute>
287
      </complexType>
296
      </complexType>
Lines 289-297 Link Here
289
298
290
   <element name="values">
299
   <element name="values">
291
      <annotation>
300
      <annotation>
292
         <appInfo>
301
         <appinfo>
293
            <meta.element labelAttribute="class"/>
302
            <meta.element labelAttribute="class"/>
294
         </appInfo>
303
         </appinfo>
295
         <documentation>
304
         <documentation>
296
            &lt;p&gt;
305
            &lt;p&gt;
297
The more verbose version of the &lt;code&gt;values&lt;/code&gt; attribute on the &lt;code&gt;commandParameter&lt;/code&gt;.
306
The more verbose version of the &lt;code&gt;values&lt;/code&gt; attribute on the &lt;code&gt;commandParameter&lt;/code&gt;.
Lines 308-316 Link Here
308
               <documentation>
317
               <documentation>
309
                  The class providing a list of parameter values for the user to select.  This class should implement &lt;code&gt;org.eclipse.core.commands.IParameterValues&lt;/code&gt;.  If this class is not specified, you must specify the more verbose &lt;code&gt;values&lt;/code&gt; element.  Please see &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
318
                  The class providing a list of parameter values for the user to select.  This class should implement &lt;code&gt;org.eclipse.core.commands.IParameterValues&lt;/code&gt;.  If this class is not specified, you must specify the more verbose &lt;code&gt;values&lt;/code&gt; element.  Please see &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
310
               </documentation>
319
               </documentation>
311
               <appInfo>
320
               <appinfo>
312
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/>
321
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/>
313
               </appInfo>
322
               </appinfo>
314
            </annotation>
323
            </annotation>
315
         </attribute>
324
         </attribute>
316
      </complexType>
325
      </complexType>
Lines 318-326 Link Here
318
327
319
   <element name="parameter">
328
   <element name="parameter">
320
      <annotation>
329
      <annotation>
321
         <appInfo>
330
         <appinfo>
322
            <meta.element labelAttribute="name"/>
331
            <meta.element labelAttribute="name"/>
323
         </appInfo>
332
         </appinfo>
324
         <documentation>
333
         <documentation>
325
            &lt;p&gt;
334
            &lt;p&gt;
326
A possible value for a parameter.
335
A possible value for a parameter.
Lines 348-356 Link Here
348
357
349
   <element name="defaultHandler">
358
   <element name="defaultHandler">
350
      <annotation>
359
      <annotation>
351
         <appInfo>
360
         <appinfo>
352
            <meta.element labelAttribute="class"/>
361
            <meta.element labelAttribute="class"/>
353
         </appInfo>
362
         </appinfo>
354
         <documentation>
363
         <documentation>
355
            &lt;p&gt;
364
            &lt;p&gt;
356
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 &lt;code&gt;activeWhen&lt;/code&gt; conditions.  If you are not creating an &lt;code&gt;IExecutableExtension&lt;/code&gt;, you can use the &lt;code&gt;defaultHandler&lt;/code&gt; attribute instead.
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 &lt;code&gt;activeWhen&lt;/code&gt; conditions.  If you are not creating an &lt;code&gt;IExecutableExtension&lt;/code&gt;, you can use the &lt;code&gt;defaultHandler&lt;/code&gt; attribute instead.
Lines 367-375 Link Here
367
               <documentation>
376
               <documentation>
368
                  The class which implements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt;.
377
                  The class which implements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt;.
369
               </documentation>
378
               </documentation>
370
               <appInfo>
379
               <appinfo>
371
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
380
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
372
               </appInfo>
381
               </appinfo>
373
            </annotation>
382
            </annotation>
374
         </attribute>
383
         </attribute>
375
      </complexType>
384
      </complexType>
Lines 377-385 Link Here
377
386
378
   <element name="state">
387
   <element name="state">
379
      <annotation>
388
      <annotation>
380
         <appInfo>
389
         <appinfo>
381
            <meta.element labelAttribute="class"/>
390
            <meta.element labelAttribute="class"/>
382
         </appInfo>
391
         </appinfo>
383
         <documentation>
392
         <documentation>
384
            &lt;p&gt;
393
            &lt;p&gt;
385
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.
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.
Lines 396-404 Link Here
396
               <documentation>
405
               <documentation>
397
                  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 &lt;code&gt;org.eclipse.core.commands.State&lt;/code&gt;.  Please see API Information.
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 implement &lt;code&gt;org.eclipse.core.commands.State&lt;/code&gt;.  Please see API Information.
398
               </documentation>
407
               </documentation>
399
               <appInfo>
408
               <appinfo>
400
                  <meta.attribute kind="java"/>
409
                  <meta.attribute kind="java"/>
401
               </appInfo>
410
               </appinfo>
402
            </annotation>
411
            </annotation>
403
         </attribute>
412
         </attribute>
404
         <attribute name="id" type="string" use="required">
413
         <attribute name="id" type="string" use="required">
Lines 415-423 Link Here
415
424
416
   <element name="class">
425
   <element name="class">
417
      <annotation>
426
      <annotation>
418
         <appInfo>
427
         <appinfo>
419
            <meta.element labelAttribute="class"/>
428
            <meta.element labelAttribute="class"/>
420
         </appInfo>
429
         </appinfo>
421
         <documentation>
430
         <documentation>
422
            &lt;p&gt;
431
            &lt;p&gt;
423
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 &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
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 &lt;code&gt;org.eclipse.core.runtime.IExecutableExtension&lt;/code&gt;.
Lines 434-442 Link Here
434
               <documentation>
443
               <documentation>
435
                  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 &lt;code&gt;org.eclipse.core.commands.State&lt;/code&gt;.  Please see API Information.
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 &lt;code&gt;org.eclipse.core.commands.State&lt;/code&gt;.  Please see API Information.
436
               </documentation>
445
               </documentation>
437
               <appInfo>
446
               <appinfo>
438
                  <meta.attribute kind="java"/>
447
                  <meta.attribute kind="java"/>
439
               </appInfo>
448
               </appinfo>
440
            </annotation>
449
            </annotation>
441
         </attribute>
450
         </attribute>
442
      </complexType>
451
      </complexType>
Lines 444-452 Link Here
444
453
445
   <element name="keyConfiguration">
454
   <element name="keyConfiguration">
446
      <annotation>
455
      <annotation>
447
         <appInfo>
456
         <appinfo>
448
            <meta.element deprecated="true"/>
457
            <meta.element deprecated="true"/>
449
         </appInfo>
458
         </appinfo>
450
         <documentation>
459
         <documentation>
451
            This element is used to define key configurations. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.  Please use the &quot;org.eclipse.ui.bindings&quot; extension point instead.
460
            This element is used to define key configurations. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.  Please use the &quot;org.eclipse.ui.bindings&quot; extension point instead.
452
         </documentation>
461
         </documentation>
Lines 457-465 Link Here
457
               <documentation>
466
               <documentation>
458
                  A translatable short description of this key configuration for display in the UI.
467
                  A translatable short description of this key configuration for display in the UI.
459
               </documentation>
468
               </documentation>
460
               <appInfo>
469
               <appinfo>
461
                  <meta.attribute translatable="true" deprecated="true"/>
470
                  <meta.attribute translatable="true" deprecated="true"/>
462
               </appInfo>
471
               </appinfo>
463
            </annotation>
472
            </annotation>
464
         </attribute>
473
         </attribute>
465
         <attribute name="id" type="string" use="required">
474
         <attribute name="id" type="string" use="required">
Lines 467-475 Link Here
467
               <documentation>
476
               <documentation>
468
                  The unique identifier of this key configuration.
477
                  The unique identifier of this key configuration.
469
               </documentation>
478
               </documentation>
470
               <appInfo>
479
               <appinfo>
471
                  <meta.attribute deprecated="true"/>
480
                  <meta.attribute deprecated="true"/>
472
               </appInfo>
481
               </appinfo>
473
            </annotation>
482
            </annotation>
474
         </attribute>
483
         </attribute>
475
         <attribute name="name" type="string" use="required">
484
         <attribute name="name" type="string" use="required">
Lines 477-485 Link Here
477
               <documentation>
486
               <documentation>
478
                  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 &quot;(extends ...)&quot; to the name. This will be automatically added by the UI where necessary.
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 &quot;(extends ...)&quot; to the name. This will be automatically added by the UI where necessary.
479
               </documentation>
488
               </documentation>
480
               <appInfo>
489
               <appinfo>
481
                  <meta.attribute translatable="true" deprecated="true"/>
490
                  <meta.attribute translatable="true" deprecated="true"/>
482
               </appInfo>
491
               </appinfo>
483
            </annotation>
492
            </annotation>
484
         </attribute>
493
         </attribute>
485
         <attribute name="parent" type="string">
494
         <attribute name="parent" type="string">
Lines 488-496 Link Here
488
                  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.
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.
489
@deprecated Please use parentId instead.
498
@deprecated Please use parentId instead.
490
               </documentation>
499
               </documentation>
491
               <appInfo>
500
               <appinfo>
492
                  <meta.attribute deprecated="true"/>
501
                  <meta.attribute deprecated="true"/>
493
               </appInfo>
502
               </appinfo>
494
            </annotation>
503
            </annotation>
495
         </attribute>
504
         </attribute>
496
         <attribute name="parentId" type="string">
505
         <attribute name="parentId" type="string">
Lines 498-506 Link Here
498
               <documentation>
507
               <documentation>
499
                  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.
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.
500
               </documentation>
509
               </documentation>
501
               <appInfo>
510
               <appinfo>
502
                  <meta.attribute deprecated="true"/>
511
                  <meta.attribute deprecated="true"/>
503
               </appInfo>
512
               </appinfo>
504
            </annotation>
513
            </annotation>
505
         </attribute>
514
         </attribute>
506
      </complexType>
515
      </complexType>
Lines 508-516 Link Here
508
517
509
   <element name="context">
518
   <element name="context">
510
      <annotation>
519
      <annotation>
511
         <appInfo>
520
         <appinfo>
512
            <meta.element deprecated="true"/>
521
            <meta.element deprecated="true"/>
513
         </appInfo>
522
         </appinfo>
514
         <documentation>
523
         <documentation>
515
            This element is used to define contexts. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.  Please use the &lt;a href=&quot;org_eclipse_ui_contexts.html&quot;&gt;org.eclipse.ui.contexts&lt;/a&gt; extension point instead.
524
            This element is used to define contexts. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.  Please use the &lt;a href=&quot;org_eclipse_ui_contexts.html&quot;&gt;org.eclipse.ui.contexts&lt;/a&gt; extension point instead.
516
         </documentation>
525
         </documentation>
Lines 521-529 Link Here
521
               <documentation>
530
               <documentation>
522
                  A translatable short description of this context for display in the UI.
531
                  A translatable short description of this context for display in the UI.
523
               </documentation>
532
               </documentation>
524
               <appInfo>
533
               <appinfo>
525
                  <meta.attribute translatable="true" deprecated="true"/>
534
                  <meta.attribute translatable="true" deprecated="true"/>
526
               </appInfo>
535
               </appinfo>
527
            </annotation>
536
            </annotation>
528
         </attribute>
537
         </attribute>
529
         <attribute name="id" type="string" use="required">
538
         <attribute name="id" type="string" use="required">
Lines 531-539 Link Here
531
               <documentation>
540
               <documentation>
532
                  The unique identifier of this context.
541
                  The unique identifier of this context.
533
               </documentation>
542
               </documentation>
534
               <appInfo>
543
               <appinfo>
535
                  <meta.attribute deprecated="true"/>
544
                  <meta.attribute deprecated="true"/>
536
               </appInfo>
545
               </appinfo>
537
            </annotation>
546
            </annotation>
538
         </attribute>
547
         </attribute>
539
         <attribute name="name" type="string" use="required">
548
         <attribute name="name" type="string" use="required">
Lines 541-549 Link Here
541
               <documentation>
550
               <documentation>
542
                  The translatable name of this context for display in the UI. If this context has a parent, it is not necessary to add &quot;(extends parent)&quot; to the name. This will be automatically added by the UI where necessary.
551
                  The translatable name of this context for display in the UI. If this context has a parent, it is not necessary to add &quot;(extends parent)&quot; to the name. This will be automatically added by the UI where necessary.
543
               </documentation>
552
               </documentation>
544
               <appInfo>
553
               <appinfo>
545
                  <meta.attribute translatable="true" deprecated="true"/>
554
                  <meta.attribute translatable="true" deprecated="true"/>
546
               </appInfo>
555
               </appinfo>
547
            </annotation>
556
            </annotation>
548
         </attribute>
557
         </attribute>
549
         <attribute name="parent" type="string">
558
         <attribute name="parent" type="string">
Lines 552-560 Link Here
552
                  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.
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.
553
@deprecated Please use &quot;parentId&quot; instead.
562
@deprecated Please use &quot;parentId&quot; instead.
554
               </documentation>
563
               </documentation>
555
               <appInfo>
564
               <appinfo>
556
                  <meta.attribute deprecated="true"/>
565
                  <meta.attribute deprecated="true"/>
557
               </appInfo>
566
               </appinfo>
558
            </annotation>
567
            </annotation>
559
         </attribute>
568
         </attribute>
560
         <attribute name="parentId" type="string">
569
         <attribute name="parentId" type="string">
Lines 562-570 Link Here
562
               <documentation>
571
               <documentation>
563
                  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.
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.
564
               </documentation>
573
               </documentation>
565
               <appInfo>
574
               <appinfo>
566
                  <meta.attribute deprecated="true"/>
575
                  <meta.attribute deprecated="true"/>
567
               </appInfo>
576
               </appinfo>
568
            </annotation>
577
            </annotation>
569
         </attribute>
578
         </attribute>
570
      </complexType>
579
      </complexType>
Lines 572-580 Link Here
572
581
573
   <element name="scope">
582
   <element name="scope">
574
      <annotation>
583
      <annotation>
575
         <appInfo>
584
         <appinfo>
576
            <meta.element labelAttribute="id" deprecated="true"/>
585
            <meta.element labelAttribute="id" deprecated="true"/>
577
         </appInfo>
586
         </appinfo>
578
         <documentation>
587
         <documentation>
579
            This element is used to define scopes. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.
588
            This element is used to define scopes. If more than one of these elements exist with the same &lt;code&gt;id&lt;/code&gt; attribute, only the last declared element (in order of reading the plugin registry) is considered valid.
580
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
589
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
Lines 588-596 Link Here
588
597
589
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
598
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
590
               </documentation>
599
               </documentation>
591
               <appInfo>
600
               <appinfo>
592
                  <meta.attribute translatable="true" deprecated="true"/>
601
                  <meta.attribute translatable="true" deprecated="true"/>
593
               </appInfo>
602
               </appinfo>
594
            </annotation>
603
            </annotation>
595
         </attribute>
604
         </attribute>
596
         <attribute name="id" type="string" use="required">
605
         <attribute name="id" type="string" use="required">
Lines 600-608 Link Here
600
609
601
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
610
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
602
               </documentation>
611
               </documentation>
603
               <appInfo>
612
               <appinfo>
604
                  <meta.attribute deprecated="true"/>
613
                  <meta.attribute deprecated="true"/>
605
               </appInfo>
614
               </appinfo>
606
            </annotation>
615
            </annotation>
607
         </attribute>
616
         </attribute>
608
         <attribute name="name" type="string" use="required">
617
         <attribute name="name" type="string" use="required">
Lines 612-620 Link Here
612
621
613
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
622
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
614
               </documentation>
623
               </documentation>
615
               <appInfo>
624
               <appinfo>
616
                  <meta.attribute translatable="true" deprecated="true"/>
625
                  <meta.attribute translatable="true" deprecated="true"/>
617
               </appInfo>
626
               </appinfo>
618
            </annotation>
627
            </annotation>
619
         </attribute>
628
         </attribute>
620
         <attribute name="parent" type="string">
629
         <attribute name="parent" type="string">
Lines 624-632 Link Here
624
633
625
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
634
@deprecated Please use the &quot;org.eclipse.ui.contexts&quot; extension point instead.
626
               </documentation>
635
               </documentation>
627
               <appInfo>
636
               <appinfo>
628
                  <meta.attribute deprecated="true"/>
637
                  <meta.attribute deprecated="true"/>
629
               </appInfo>
638
               </appinfo>
630
            </annotation>
639
            </annotation>
631
         </attribute>
640
         </attribute>
632
      </complexType>
641
      </complexType>
Lines 634-642 Link Here
634
643
635
   <element name="activeKeyConfiguration">
644
   <element name="activeKeyConfiguration">
636
      <annotation>
645
      <annotation>
637
         <appInfo>
646
         <appinfo>
638
            <meta.element deprecated="true"/>
647
            <meta.element deprecated="true"/>
639
         </appInfo>
648
         </appinfo>
640
         <documentation>
649
         <documentation>
641
            &lt;p&gt;
650
            &lt;p&gt;
642
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.
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.
Lines 652-660 Link Here
652
               <documentation>
661
               <documentation>
653
                  The unique id (&lt;code&gt;id&lt;/code&gt; attribute) of the keyConfiguration element one wishes to be initially active.
662
                  The unique id (&lt;code&gt;id&lt;/code&gt; attribute) of the keyConfiguration element one wishes to be initially active.
654
               </documentation>
663
               </documentation>
655
               <appInfo>
664
               <appinfo>
656
                  <meta.attribute deprecated="true"/>
665
                  <meta.attribute deprecated="true"/>
657
               </appInfo>
666
               </appinfo>
658
            </annotation>
667
            </annotation>
659
         </attribute>
668
         </attribute>
660
         <attribute name="keyConfigurationId" type="string">
669
         <attribute name="keyConfigurationId" type="string">
Lines 662-670 Link Here
662
               <documentation>
671
               <documentation>
663
                  The unique id (&lt;code&gt;id&lt;/code&gt; attribute) of the keyConfiguration element one wishes to be initially active.
672
                  The unique id (&lt;code&gt;id&lt;/code&gt; attribute) of the keyConfiguration element one wishes to be initially active.
664
               </documentation>
673
               </documentation>
665
               <appInfo>
674
               <appinfo>
666
                  <meta.attribute deprecated="true"/>
675
                  <meta.attribute deprecated="true"/>
667
               </appInfo>
676
               </appinfo>
668
            </annotation>
677
            </annotation>
669
         </attribute>
678
         </attribute>
670
      </complexType>
679
      </complexType>
Lines 672-680 Link Here
672
681
673
   <element name="keyBinding">
682
   <element name="keyBinding">
674
      <annotation>
683
      <annotation>
675
         <appInfo>
684
         <appinfo>
676
            <meta.element deprecated="true"/>
685
            <meta.element deprecated="true"/>
677
         </appInfo>
686
         </appinfo>
678
         <documentation>
687
         <documentation>
679
            This element allows one to assign key sequences to commands.  Please use the &lt;code&gt;key&lt;/code&gt; element in the &quot;org.eclipse.ui.bindings&quot; extension point instead.
688
            This element allows one to assign key sequences to commands.  Please use the &lt;code&gt;key&lt;/code&gt; element in the &quot;org.eclipse.ui.bindings&quot; extension point instead.
680
         </documentation>
689
         </documentation>
Lines 686-694 Link Here
686
                  The unique id of the key configuration of this key binding.
695
                  The unique id of the key configuration of this key binding.
687
@deprecated Please use keyConfigurationId instead.
696
@deprecated Please use keyConfigurationId instead.
688
               </documentation>
697
               </documentation>
689
               <appInfo>
698
               <appinfo>
690
                  <meta.attribute deprecated="true"/>
699
                  <meta.attribute deprecated="true"/>
691
               </appInfo>
700
               </appinfo>
692
            </annotation>
701
            </annotation>
693
         </attribute>
702
         </attribute>
694
         <attribute name="command" type="string">
703
         <attribute name="command" type="string">
Lines 697-705 Link Here
697
                  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 &apos;no operation&apos; command. This is useful for &apos;undefining&apos; key bindings in specific key configurations and contexts which may have been borrowed from their parents.
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 &apos;no operation&apos; command. This is useful for &apos;undefining&apos; key bindings in specific key configurations and contexts which may have been borrowed from their parents.
698
@deprecated Please use &quot;commandId&quot; instead.
707
@deprecated Please use &quot;commandId&quot; instead.
699
               </documentation>
708
               </documentation>
700
               <appInfo>
709
               <appinfo>
701
                  <meta.attribute deprecated="true"/>
710
                  <meta.attribute deprecated="true"/>
702
               </appInfo>
711
               </appinfo>
703
            </annotation>
712
            </annotation>
704
         </attribute>
713
         </attribute>
705
         <attribute name="locale" type="string">
714
         <attribute name="locale" type="string">
Lines 707-715 Link Here
707
               <documentation>
716
               <documentation>
708
                  An optional attribute indicating that this key binding is only defined for the specified locale. Locales are specified according to the format declared in &lt;code&gt;java.util.Locale&lt;/code&gt;.
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 &lt;code&gt;java.util.Locale&lt;/code&gt;.
709
               </documentation>
718
               </documentation>
710
               <appInfo>
719
               <appinfo>
711
                  <meta.attribute deprecated="true"/>
720
                  <meta.attribute deprecated="true"/>
712
               </appInfo>
721
               </appinfo>
713
            </annotation>
722
            </annotation>
714
         </attribute>
723
         </attribute>
715
         <attribute name="platform" type="string">
724
         <attribute name="platform" type="string">
Lines 717-725 Link Here
717
               <documentation>
726
               <documentation>
718
                  An optional attribute indicating that this key binding is only defined for the specified platform. The possible values of the &lt;code&gt;platform&lt;/code&gt; attribute are the set of the possible values returned by &lt;code&gt;org.eclipse.swt.SWT.getPlatform()&lt;/code&gt;.
727
                  An optional attribute indicating that this key binding is only defined for the specified platform. The possible values of the &lt;code&gt;platform&lt;/code&gt; attribute are the set of the possible values returned by &lt;code&gt;org.eclipse.swt.SWT.getPlatform()&lt;/code&gt;.
719
               </documentation>
728
               </documentation>
720
               <appInfo>
729
               <appinfo>
721
                  <meta.attribute deprecated="true"/>
730
                  <meta.attribute deprecated="true"/>
722
               </appInfo>
731
               </appinfo>
723
            </annotation>
732
            </annotation>
724
         </attribute>
733
         </attribute>
725
         <attribute name="contextId" type="string">
734
         <attribute name="contextId" type="string">
Lines 727-735 Link Here
727
               <documentation>
736
               <documentation>
728
                  The unique id of the context of this key binding.
737
                  The unique id of the context of this key binding.
729
               </documentation>
738
               </documentation>
730
               <appInfo>
739
               <appinfo>
731
                  <meta.attribute deprecated="true"/>
740
                  <meta.attribute deprecated="true"/>
732
               </appInfo>
741
               </appinfo>
733
            </annotation>
742
            </annotation>
734
         </attribute>
743
         </attribute>
735
         <attribute name="string" type="string">
744
         <attribute name="string" type="string">
Lines 738-746 Link Here
738
                  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 &apos;+&apos; characters.
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 &apos;+&apos; characters.
739
@deprecated Please use &quot;keySequence&quot; instead.
748
@deprecated Please use &quot;keySequence&quot; instead.
740
               </documentation>
749
               </documentation>
741
               <appInfo>
750
               <appinfo>
742
                  <meta.attribute deprecated="true"/>
751
                  <meta.attribute deprecated="true"/>
743
               </appInfo>
752
               </appinfo>
744
            </annotation>
753
            </annotation>
745
         </attribute>
754
         </attribute>
746
         <attribute name="scope" type="string">
755
         <attribute name="scope" type="string">
Lines 749-757 Link Here
749
                  The unique id of the context of this key binding.
758
                  The unique id of the context of this key binding.
750
@deprecated Please use &quot;contextId&quot; instead.  The old default scope, &quot;org.eclipse.ui.globalScope&quot;, has been changed to &quot;org.eclipse.ui.contexts.window&quot;.  The old name is still supported, but it is deprecated.
759
@deprecated Please use &quot;contextId&quot; instead.  The old default scope, &quot;org.eclipse.ui.globalScope&quot;, has been changed to &quot;org.eclipse.ui.contexts.window&quot;.  The old name is still supported, but it is deprecated.
751
               </documentation>
760
               </documentation>
752
               <appInfo>
761
               <appinfo>
753
                  <meta.attribute deprecated="true"/>
762
                  <meta.attribute deprecated="true"/>
754
               </appInfo>
763
               </appinfo>
755
            </annotation>
764
            </annotation>
756
         </attribute>
765
         </attribute>
757
         <attribute name="keyConfigurationId" type="string">
766
         <attribute name="keyConfigurationId" type="string">
Lines 760-768 Link Here
760
                  The unique id of the key configuration of this key binding.
769
                  The unique id of the key configuration of this key binding.
761
@deprecated Please use the &lt;code&gt;schemeId&lt;/code&gt; attribute on the &lt;code&gt;key&lt;/code&gt; element in the new &quot;org.eclipse.ui.bindings&quot; extension point.
770
@deprecated Please use the &lt;code&gt;schemeId&lt;/code&gt; attribute on the &lt;code&gt;key&lt;/code&gt; element in the new &quot;org.eclipse.ui.bindings&quot; extension point.
762
               </documentation>
771
               </documentation>
763
               <appInfo>
772
               <appinfo>
764
                  <meta.attribute deprecated="true"/>
773
                  <meta.attribute deprecated="true"/>
765
               </appInfo>
774
               </appinfo>
766
            </annotation>
775
            </annotation>
767
         </attribute>
776
         </attribute>
768
         <attribute name="commandId" type="string">
777
         <attribute name="commandId" type="string">
Lines 770-778 Link Here
770
               <documentation>
779
               <documentation>
771
                  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 &apos;no operation&apos; command. This is useful for &apos;undefining&apos; key bindings in specific key configurations and contexts which may have been borrowed from their parents.
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 &apos;no operation&apos; command. This is useful for &apos;undefining&apos; key bindings in specific key configurations and contexts which may have been borrowed from their parents.
772
               </documentation>
781
               </documentation>
773
               <appInfo>
782
               <appinfo>
774
                  <meta.attribute deprecated="true"/>
783
                  <meta.attribute deprecated="true"/>
775
               </appInfo>
784
               </appinfo>
776
            </annotation>
785
            </annotation>
777
         </attribute>
786
         </attribute>
778
         <attribute name="keySequence" type="string">
787
         <attribute name="keySequence" type="string">
Lines 782-799 Link Here
782
&lt;p&gt;The modifier keys can also be expressed in a platform-independent way.  On MacOS X, for example, &quot;Command&quot; is almost always used in place of &quot;Ctrl&quot;.  So, we provide &quot;M1&quot; which will map to either &quot;Ctrl&quot; or &quot;Command&quot;, as appropriate.  Similarly, &quot;M2&quot; is &quot;Shift&quot;; &quot;M3&quot; is &quot;Alt&quot;; and &quot;M4&quot; is &quot;Ctrl&quot; (MacOS X).  If more platforms are added, then you can count on these aliases being mapped to good platform defaults.&lt;/p&gt;
791
&lt;p&gt;The modifier keys can also be expressed in a platform-independent way.  On MacOS X, for example, &quot;Command&quot; is almost always used in place of &quot;Ctrl&quot;.  So, we provide &quot;M1&quot; which will map to either &quot;Ctrl&quot; or &quot;Command&quot;, as appropriate.  Similarly, &quot;M2&quot; is &quot;Shift&quot;; &quot;M3&quot; is &quot;Alt&quot;; and &quot;M4&quot; is &quot;Ctrl&quot; (MacOS X).  If more platforms are added, then you can count on these aliases being mapped to good platform defaults.&lt;/p&gt;
783
&lt;p&gt;The syntax for this string is defined in &lt;code&gt;org.eclipse.ui.internal.keys&lt;/code&gt;.  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.&lt;/p&gt;
792
&lt;p&gt;The syntax for this string is defined in &lt;code&gt;org.eclipse.ui.internal.keys&lt;/code&gt;.  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.&lt;/p&gt;
784
               </documentation>
793
               </documentation>
785
               <appInfo>
794
               <appinfo>
786
                  <meta.attribute deprecated="true"/>
795
                  <meta.attribute deprecated="true"/>
787
               </appInfo>
796
               </appinfo>
788
            </annotation>
797
            </annotation>
789
         </attribute>
798
         </attribute>
790
      </complexType>
799
      </complexType>
791
   </element>
800
   </element>
792
801
793
   <annotation>
802
   <annotation>
794
      <appInfo>
803
      <appinfo>
795
         <meta.section type="since"/>
804
         <meta.section type="since"/>
796
      </appInfo>
805
      </appinfo>
797
      <documentation>
806
      <documentation>
798
         &lt;p&gt;
807
         &lt;p&gt;
799
2.1
808
2.1
Lines 802-810 Link Here
802
   </annotation>
811
   </annotation>
803
812
804
   <annotation>
813
   <annotation>
805
      <appInfo>
814
      <appinfo>
806
         <meta.section type="examples"/>
815
         <meta.section type="examples"/>
807
      </appInfo>
816
      </appinfo>
808
      <documentation>
817
      <documentation>
809
         &lt;p&gt;
818
         &lt;p&gt;
810
The &lt;code&gt;plugin.xml&lt;/code&gt; file in the &lt;code&gt;org.eclipse.ui&lt;/code&gt; plugin makes extensive use of the &lt;code&gt;org.eclipse.ui.commands&lt;/code&gt; extension point.
819
The &lt;code&gt;plugin.xml&lt;/code&gt; file in the &lt;code&gt;org.eclipse.ui&lt;/code&gt; plugin makes extensive use of the &lt;code&gt;org.eclipse.ui.commands&lt;/code&gt; extension point.
Lines 813-821 Link Here
813
   </annotation>
822
   </annotation>
814
823
815
   <annotation>
824
   <annotation>
816
      <appInfo>
825
      <appinfo>
817
         <meta.section type="apiInfo"/>
826
         <meta.section type="apiInfo"/>
818
      </appInfo>
827
      </appinfo>
819
      <documentation>
828
      <documentation>
820
         &lt;p&gt;
829
         &lt;p&gt;
821
Handlers can be registered with commands using the &lt;code&gt;org.eclipse.ui.handlers.IHandlerService&lt;/code&gt;.  This can be retrieved from various workbench components (e.g., workbench, workbench window, part site, etc.) by calling &lt;code&gt;getService(IHandlerService.class)&lt;/code&gt;.
830
Handlers can be registered with commands using the &lt;code&gt;org.eclipse.ui.handlers.IHandlerService&lt;/code&gt;.  This can be retrieved from various workbench components (e.g., workbench, workbench window, part site, etc.) by calling &lt;code&gt;getService(IHandlerService.class)&lt;/code&gt;.
Lines 837-855 Link Here
837
      </documentation>
846
      </documentation>
838
   </annotation>
847
   </annotation>
839
848
840
   <annotation>
849
841
      <appInfo>
842
         <meta.section type="implementation"/>
843
      </appInfo>
844
      <documentation>
845
         
846
      </documentation>
847
   </annotation>
848
850
849
   <annotation>
851
   <annotation>
850
      <appInfo>
852
      <appinfo>
851
         <meta.section type="copyright"/>
853
         <meta.section type="copyright"/>
852
      </appInfo>
854
      </appinfo>
853
      <documentation>
855
      <documentation>
854
         Copyright (c) 2000, 2007 IBM Corporation and others.&lt;br&gt;
856
         Copyright (c) 2000, 2007 IBM Corporation and others.&lt;br&gt;
855
All rights reserved. This program and the accompanying materials are made
857
All rights reserved. This program and the accompanying materials are made
(-)schema/bindings.exsd (-23 / +39 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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="bindings" name="Bindings"/>
6
         <meta.schema plugin="org.eclipse.ui" id="bindings" name="Bindings"/>
7
      </appInfo>
7
      </appinfo>
8
      <documentation>
8
      <documentation>
9
         &lt;p&gt;
9
         &lt;p&gt;
10
The &lt;code&gt;org.eclipse.ui.bindings&lt;/code&gt; extension point is used to declare bindings and schemes.  Schemes are sets of one or more bindings.  A binding is a mapping between a certain group of conditions, some user input and a triggered command.
10
The &lt;code&gt;org.eclipse.ui.bindings&lt;/code&gt; extension point is used to declare bindings and schemes.  Schemes are sets of one or more bindings.  A binding is a mapping between a certain group of conditions, some user input and a triggered command.
Lines 49-57 Link Here
49
               <documentation>
49
               <documentation>
50
                  
50
                  
51
               </documentation>
51
               </documentation>
52
               <appInfo>
52
               <appinfo>
53
                  <meta.attribute translatable="true"/>
53
                  <meta.attribute translatable="true"/>
54
               </appInfo>
54
               </appinfo>
55
            </annotation>
55
            </annotation>
56
         </attribute>
56
         </attribute>
57
      </complexType>
57
      </complexType>
Lines 59-67 Link Here
59
59
60
   <element name="scheme">
60
   <element name="scheme">
61
      <annotation>
61
      <annotation>
62
         <appInfo>
62
         <appinfo>
63
            <meta.element labelAttribute="name"/>
63
            <meta.element labelAttribute="name"/>
64
         </appInfo>
64
         </appinfo>
65
         <documentation>
65
         <documentation>
66
            &lt;p&gt;
66
            &lt;p&gt;
67
A scheme is a grouping of bindings that an end user can chose to use.
67
A scheme is a grouping of bindings that an end user can chose to use.
Lines 84-92 Link Here
84
               <documentation>
84
               <documentation>
85
                  The name for this scheme, as it should be displayed to an end-user.  This value should be translated.
85
                  The name for this scheme, as it should be displayed to an end-user.  This value should be translated.
86
               </documentation>
86
               </documentation>
87
               <appInfo>
87
               <appinfo>
88
                  <meta.attribute translatable="true"/>
88
                  <meta.attribute translatable="true"/>
89
               </appInfo>
89
               </appinfo>
90
            </annotation>
90
            </annotation>
91
         </attribute>
91
         </attribute>
92
         <attribute name="description" type="string">
92
         <attribute name="description" type="string">
Lines 94-102 Link Here
94
               <documentation>
94
               <documentation>
95
                  The description for this scheme, as it would be displayed to an end user.  This value should be translated.
95
                  The description for this scheme, as it would be displayed to an end user.  This value should be translated.
96
               </documentation>
96
               </documentation>
97
               <appInfo>
97
               <appinfo>
98
                  <meta.attribute translatable="true"/>
98
                  <meta.attribute translatable="true"/>
99
               </appInfo>
99
               </appinfo>
100
            </annotation>
100
            </annotation>
101
         </attribute>
101
         </attribute>
102
         <attribute name="parentId" type="string">
102
         <attribute name="parentId" type="string">
Lines 104-109 Link Here
104
               <documentation>
104
               <documentation>
105
                  The identifier for the parent of this scheme.  If there is no parent, then do not specify this attribute.
105
                  The identifier for the parent of this scheme.  If there is no parent, then do not specify this attribute.
106
               </documentation>
106
               </documentation>
107
               <appinfo>
108
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.bindings/scheme/@id"/>
109
               </appinfo>
107
            </annotation>
110
            </annotation>
108
         </attribute>
111
         </attribute>
109
      </complexType>
112
      </complexType>
Lines 111-119 Link Here
111
114
112
   <element name="key">
115
   <element name="key">
113
      <annotation>
116
      <annotation>
114
         <appInfo>
117
         <appinfo>
115
            <meta.element labelAttribute="commandId"/>
118
            <meta.element labelAttribute="commandId"/>
116
         </appInfo>
119
         </appinfo>
117
         <documentation>
120
         <documentation>
118
            &lt;p&gt;A binding between some keyboard input and the triggering of a command.&lt;/p&gt;
121
            &lt;p&gt;A binding between some keyboard input and the triggering of a command.&lt;/p&gt;
119
         </documentation>
122
         </documentation>
Lines 149-154 Link Here
149
               <documentation>
152
               <documentation>
150
                  The identifier of the scheme in which this key binding is active.
153
                  The identifier of the scheme in which this key binding is active.
151
               </documentation>
154
               </documentation>
155
               <appinfo>
156
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.bindings/scheme/@id"/>
157
               </appinfo>
152
            </annotation>
158
            </annotation>
153
         </attribute>
159
         </attribute>
154
         <attribute name="contextId" type="string" use="default" value="org.eclipse.ui.contexts.window">
160
         <attribute name="contextId" type="string" use="default" value="org.eclipse.ui.contexts.window">
Lines 156-161 Link Here
156
               <documentation>
162
               <documentation>
157
                  The identifier of the context in which this key binding is active.  Please see the &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point.  If this is not specified, then it defaults to &lt;code&gt;org.eclipse.ui.contexts.window&lt;/code&gt;.
163
                  The identifier of the context in which this key binding is active.  Please see the &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point.  If this is not specified, then it defaults to &lt;code&gt;org.eclipse.ui.contexts.window&lt;/code&gt;.
158
               </documentation>
164
               </documentation>
165
               <appinfo>
166
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/>
167
               </appinfo>
159
            </annotation>
168
            </annotation>
160
         </attribute>
169
         </attribute>
161
         <attribute name="commandId" type="string">
170
         <attribute name="commandId" type="string">
Lines 168-173 Link Here
168
If no command identifier is specified, this is a deletion marker.  This means that any binding in the same context with the same sequence, platform and locale will become inactive when this binding becomes active.  If the platform or locale on a deletion is not specified, then it matches any platform or locale.
177
If no command identifier is specified, this is a deletion marker.  This means that any binding in the same context with the same sequence, platform and locale will become inactive when this binding becomes active.  If the platform or locale on a deletion is not specified, then it matches any platform or locale.
169
&lt;/p&gt;
178
&lt;/p&gt;
170
               </documentation>
179
               </documentation>
180
               <appinfo>
181
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
182
               </appinfo>
171
            </annotation>
183
            </annotation>
172
         </attribute>
184
         </attribute>
173
         <attribute name="platform" type="string">
185
         <attribute name="platform" type="string">
Lines 189-197 Link Here
189
201
190
   <element name="parameter">
202
   <element name="parameter">
191
      <annotation>
203
      <annotation>
192
         <appInfo>
204
         <appinfo>
193
            <meta.element labelAttribute="id"/>
205
            <meta.element labelAttribute="id"/>
194
         </appInfo>
206
         </appinfo>
195
         <documentation>
207
         <documentation>
196
            A parameter name and value that should be passed to the command when it is executed.  This allows for the command to be qualified in some way.  For example, a &quot;Show View&quot; command might accept the view id as a parameter.
208
            A parameter name and value that should be passed to the command when it is executed.  This allows for the command to be qualified in some way.  For example, a &quot;Show View&quot; command might accept the view id as a parameter.
197
         </documentation>
209
         </documentation>
Lines 202-207 Link Here
202
               <documentation>
214
               <documentation>
203
                  The parameter name as understood by the command.  This is not a translatable name, but the key to name-value map.
215
                  The parameter name as understood by the command.  This is not a translatable name, but the key to name-value map.
204
               </documentation>
216
               </documentation>
217
               <appinfo>
218
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/commandParameter/@id"/>
219
               </appinfo>
205
            </annotation>
220
            </annotation>
206
         </attribute>
221
         </attribute>
207
         <attribute name="value" type="string">
222
         <attribute name="value" type="string">
Lines 215-232 Link Here
215
   </element>
230
   </element>
216
231
217
   <annotation>
232
   <annotation>
218
      <appInfo>
233
      <appinfo>
219
         <meta.section type="since"/>
234
         <meta.section type="since"/>
220
      </appInfo>
235
      </appinfo>
221
      <documentation>
236
      <documentation>
222
         3.1
237
         3.1
223
      </documentation>
238
      </documentation>
224
   </annotation>
239
   </annotation>
225
240
226
   <annotation>
241
   <annotation>
227
      <appInfo>
242
      <appinfo>
228
         <meta.section type="examples"/>
243
         <meta.section type="examples"/>
229
      </appInfo>
244
      </appinfo>
230
      <documentation>
245
      <documentation>
231
         &lt;pre&gt;
246
         &lt;pre&gt;
232
&lt;extension
247
&lt;extension
Lines 251-259 Link Here
251
   </annotation>
266
   </annotation>
252
267
253
   <annotation>
268
   <annotation>
254
      <appInfo>
269
      <appinfo>
255
         <meta.section type="apiInfo"/>
270
         <meta.section type="apiInfo"/>
256
      </appInfo>
271
      </appinfo>
257
      <documentation>
272
      <documentation>
258
         &lt;p&gt;
273
         &lt;p&gt;
259
There is no public API for defining bindings.  To try to achieve stability for the user, bindings are only defined through the extension points.  If you are an RCP application, you should be able to override this behaviour in the &lt;code&gt;WorkbenchAdvisor&lt;/code&gt;.
274
There is no public API for defining bindings.  To try to achieve stability for the user, bindings are only defined through the extension points.  If you are an RCP application, you should be able to override this behaviour in the &lt;code&gt;WorkbenchAdvisor&lt;/code&gt;.
Lines 265-274 Link Here
265
   </annotation>
280
   </annotation>
266
281
267
282
283
268
   <annotation>
284
   <annotation>
269
      <appInfo>
285
      <appinfo>
270
         <meta.section type="copyright"/>
286
         <meta.section type="copyright"/>
271
      </appInfo>
287
      </appinfo>
272
      <documentation>
288
      <documentation>
273
         Copyright (c) 2005,2007 IBM Corporation and others.&lt;br&gt;
289
         Copyright (c) 2005,2007 IBM Corporation and others.&lt;br&gt;
274
All rights reserved. This program and the accompanying materials are made
290
All rights reserved. This program and the accompanying materials are made
(-)schema/contexts.exsd (-25 / +21 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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="contexts" name="Contexts"/>
6
         <meta.schema plugin="org.eclipse.ui" id="contexts" name="Contexts"/>
7
      </appInfo>
7
      </appinfo>
8
      <documentation>
8
      <documentation>
9
         &lt;p&gt;
9
         &lt;p&gt;
10
The &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point is used to declare contexts and associated elements.
10
The &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point is used to declare contexts and associated elements.
Lines 29-37 Link Here
29
               <documentation>
29
               <documentation>
30
                  An optional name of the extension instance.
30
                  An optional name of the extension instance.
31
               </documentation>
31
               </documentation>
32
               <appInfo>
32
               <appinfo>
33
                  <meta.attribute translatable="true"/>
33
                  <meta.attribute translatable="true"/>
34
               </appInfo>
34
               </appinfo>
35
            </annotation>
35
            </annotation>
36
         </attribute>
36
         </attribute>
37
         <attribute name="point" type="string" use="required">
37
         <attribute name="point" type="string" use="required">
Lines 56-64 Link Here
56
               <documentation>
56
               <documentation>
57
                  A translatable short description of this context for display in the UI.
57
                  A translatable short description of this context for display in the UI.
58
               </documentation>
58
               </documentation>
59
               <appInfo>
59
               <appinfo>
60
                  <meta.attribute translatable="true"/>
60
                  <meta.attribute translatable="true"/>
61
               </appInfo>
61
               </appinfo>
62
            </annotation>
62
            </annotation>
63
         </attribute>
63
         </attribute>
64
         <attribute name="id" type="string" use="required">
64
         <attribute name="id" type="string" use="required">
Lines 73-81 Link Here
73
               <documentation>
73
               <documentation>
74
                  The translatable name of this context for display in the UI.
74
                  The translatable name of this context for display in the UI.
75
               </documentation>
75
               </documentation>
76
               <appInfo>
76
               <appinfo>
77
                  <meta.attribute translatable="true"/>
77
                  <meta.attribute translatable="true"/>
78
               </appInfo>
78
               </appinfo>
79
            </annotation>
79
            </annotation>
80
         </attribute>
80
         </attribute>
81
         <attribute name="parentId" type="string">
81
         <attribute name="parentId" type="string">
Lines 83-97 Link Here
83
               <documentation>
83
               <documentation>
84
                  The unique identifier of the parent of this context.
84
                  The unique identifier of the parent of this context.
85
               </documentation>
85
               </documentation>
86
               <appinfo>
87
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/>
88
               </appinfo>
86
            </annotation>
89
            </annotation>
87
         </attribute>
90
         </attribute>
88
      </complexType>
91
      </complexType>
89
   </element>
92
   </element>
90
93
91
   <annotation>
94
   <annotation>
92
      <appInfo>
95
      <appinfo>
93
         <meta.section type="since"/>
96
         <meta.section type="since"/>
94
      </appInfo>
97
      </appinfo>
95
      <documentation>
98
      <documentation>
96
         &lt;p&gt;
99
         &lt;p&gt;
97
3.0
100
3.0
Lines 100-108 Link Here
100
   </annotation>
103
   </annotation>
101
104
102
   <annotation>
105
   <annotation>
103
      <appInfo>
106
      <appinfo>
104
         <meta.section type="examples"/>
107
         <meta.section type="examples"/>
105
      </appInfo>
108
      </appinfo>
106
      <documentation>
109
      <documentation>
107
         &lt;p&gt;
110
         &lt;p&gt;
108
The &lt;code&gt;plugin.xml&lt;/code&gt; file in the &lt;code&gt;org.eclipse.ui&lt;/code&gt; plugin makes use of the &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point.
111
The &lt;code&gt;plugin.xml&lt;/code&gt; file in the &lt;code&gt;org.eclipse.ui&lt;/code&gt; plugin makes use of the &lt;code&gt;org.eclipse.ui.contexts&lt;/code&gt; extension point.
Lines 111-119 Link Here
111
   </annotation>
114
   </annotation>
112
115
113
   <annotation>
116
   <annotation>
114
      <appInfo>
117
      <appinfo>
115
         <meta.section type="apiInfo"/>
118
         <meta.section type="apiInfo"/>
116
      </appInfo>
119
      </appinfo>
117
      <documentation>
120
      <documentation>
118
         &lt;p&gt;
121
         &lt;p&gt;
119
In general, it is preferrably to declare all contexts statically (in &lt;code&gt;plugin.xml&lt;/code&gt;).  This is so that users can use them in key bindings.  However, it is possible to declare contexts at run-time.  To do this, retrieve the &lt;code&gt;org.eclipse.ui.commands.IContextService&lt;/code&gt; from a workbench component, call &lt;code&gt;getContext(contextId)&lt;/code&gt; and then call &lt;code&gt;Context#define(...)&lt;/code&gt;.
122
In general, it is preferrably to declare all contexts statically (in &lt;code&gt;plugin.xml&lt;/code&gt;).  This is so that users can use them in key bindings.  However, it is possible to declare contexts at run-time.  To do this, retrieve the &lt;code&gt;org.eclipse.ui.commands.IContextService&lt;/code&gt; from a workbench component, call &lt;code&gt;getContext(contextId)&lt;/code&gt; and then call &lt;code&gt;Context#define(...)&lt;/code&gt;.
Lines 122-140 Link Here
122
      </documentation>
125
      </documentation>
123
   </annotation>
126
   </annotation>
124
127
125
   <annotation>
128
126
      <appInfo>
127
         <meta.section type="implementation"/>
128
      </appInfo>
129
      <documentation>
130
         
131
      </documentation>
132
   </annotation>
133
129
134
   <annotation>
130
   <annotation>
135
      <appInfo>
131
      <appinfo>
136
         <meta.section type="copyright"/>
132
         <meta.section type="copyright"/>
137
      </appInfo>
133
      </appinfo>
138
      <documentation>
134
      <documentation>
139
         Copyright (c) 2000, 2007 IBM Corporation and others.&lt;br&gt;
135
         Copyright (c) 2000, 2007 IBM Corporation and others.&lt;br&gt;
140
All rights reserved. This program and the accompanying materials are made
136
All rights reserved. This program and the accompanying materials are made
(-)schema/commandImages.exsd (-21 / +25 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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="commandImages" name="Command Images"/>
6
         <meta.schema plugin="org.eclipse.ui" id="commandImages" name="Command Images"/>
7
      </appInfo>
7
      </appinfo>
8
      <documentation>
8
      <documentation>
9
         &lt;p&gt;
9
         &lt;p&gt;
10
The images extension point provides a way of linking different types of images and icons to a particular command.  These images can be used, as appropriate, wherever the command appears in the user interface.  To accommodate some boundary cases (e.g., tool bar drop-down items), it is possible to group the images for a particular commands into &quot;styles&quot;.  These styles can then be specifically requested when a command is to be displayed.
10
The images extension point provides a way of linking different types of images and icons to a particular command.  These images can be used, as appropriate, wherever the command appears in the user interface.  To accommodate some boundary cases (e.g., tool bar drop-down items), it is possible to group the images for a particular commands into &quot;styles&quot;.  These styles can then be specifically requested when a command is to be displayed.
Lines 39-47 Link Here
39
               <documentation>
39
               <documentation>
40
                  
40
                  
41
               </documentation>
41
               </documentation>
42
               <appInfo>
42
               <appinfo>
43
                  <meta.attribute translatable="true"/>
43
                  <meta.attribute translatable="true"/>
44
               </appInfo>
44
               </appinfo>
45
            </annotation>
45
            </annotation>
46
         </attribute>
46
         </attribute>
47
      </complexType>
47
      </complexType>
Lines 49-57 Link Here
49
49
50
   <element name="image">
50
   <element name="image">
51
      <annotation>
51
      <annotation>
52
         <appInfo>
52
         <appinfo>
53
            <meta.element labelAttribute="commandId"/>
53
            <meta.element labelAttribute="commandId"/>
54
         </appInfo>
54
         </appinfo>
55
         <documentation>
55
         <documentation>
56
            The images to associate with a particular command.
56
            The images to associate with a particular command.
57
         </documentation>
57
         </documentation>
Lines 62-67 Link Here
62
               <documentation>
62
               <documentation>
63
                  The identifier of the command with which the images should be associated.
63
                  The identifier of the command with which the images should be associated.
64
               </documentation>
64
               </documentation>
65
               <appinfo>
66
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
67
               </appinfo>
65
            </annotation>
68
            </annotation>
66
         </attribute>
69
         </attribute>
67
         <attribute name="icon" type="string" use="required">
70
         <attribute name="icon" type="string" use="required">
Lines 69-77 Link Here
69
               <documentation>
72
               <documentation>
70
                  The path to the icon which should be used in the default case.  This will appear when the icon is enabled and mouse is not hovering over it.  It will also be used in any situation where such a more specific icon is not available.
73
                  The path to the icon which should be used in the default case.  This will appear when the icon is enabled and mouse is not hovering over it.  It will also be used in any situation where such a more specific icon is not available.
71
               </documentation>
74
               </documentation>
72
               <appInfo>
75
               <appinfo>
73
                  <meta.attribute kind="resource"/>
76
                  <meta.attribute kind="resource"/>
74
               </appInfo>
77
               </appinfo>
75
            </annotation>
78
            </annotation>
76
         </attribute>
79
         </attribute>
77
         <attribute name="disabledIcon" type="string">
80
         <attribute name="disabledIcon" type="string">
Lines 79-87 Link Here
79
               <documentation>
82
               <documentation>
80
                  The icon to display when the command is disabled.
83
                  The icon to display when the command is disabled.
81
               </documentation>
84
               </documentation>
82
               <appInfo>
85
               <appinfo>
83
                  <meta.attribute kind="resource"/>
86
                  <meta.attribute kind="resource"/>
84
               </appInfo>
87
               </appinfo>
85
            </annotation>
88
            </annotation>
86
         </attribute>
89
         </attribute>
87
         <attribute name="hoverIcon" type="string">
90
         <attribute name="hoverIcon" type="string">
Lines 89-97 Link Here
89
               <documentation>
92
               <documentation>
90
                  The icon to display when the user is hovering over the command.
93
                  The icon to display when the user is hovering over the command.
91
               </documentation>
94
               </documentation>
92
               <appInfo>
95
               <appinfo>
93
                  <meta.attribute kind="resource"/>
96
                  <meta.attribute kind="resource"/>
94
               </appInfo>
97
               </appinfo>
95
            </annotation>
98
            </annotation>
96
         </attribute>
99
         </attribute>
97
         <attribute name="style" type="string">
100
         <attribute name="style" type="string">
Lines 105-122 Link Here
105
   </element>
108
   </element>
106
109
107
   <annotation>
110
   <annotation>
108
      <appInfo>
111
      <appinfo>
109
         <meta.section type="since"/>
112
         <meta.section type="since"/>
110
      </appInfo>
113
      </appinfo>
111
      <documentation>
114
      <documentation>
112
         3.2
115
         3.2
113
      </documentation>
116
      </documentation>
114
   </annotation>
117
   </annotation>
115
118
116
   <annotation>
119
   <annotation>
117
      <appInfo>
120
      <appinfo>
118
         <meta.section type="examples"/>
121
         <meta.section type="examples"/>
119
      </appInfo>
122
      </appinfo>
120
      <documentation>
123
      <documentation>
121
         &lt;pre&gt;
124
         &lt;pre&gt;
122
&lt;extension
125
&lt;extension
Lines 138-146 Link Here
138
   </annotation>
141
   </annotation>
139
142
140
   <annotation>
143
   <annotation>
141
      <appInfo>
144
      <appinfo>
142
         <meta.section type="apiInfo"/>
145
         <meta.section type="apiInfo"/>
143
      </appInfo>
146
      </appinfo>
144
      <documentation>
147
      <documentation>
145
         &lt;p&gt;
148
         &lt;p&gt;
146
Within the workbench, it is possible to get images for commands using the &lt;code&gt;org.eclipse.ui.commands.ICommandImageService&lt;/code&gt; interface.  This interface can be retrieved from supporting workbench objects, such as &lt;code&gt;IWorkbench&lt;/code&gt; itself, the &lt;code&gt;IWorkbenchWindow&lt;/code&gt;, or the &lt;code&gt;IWorkbenchPartSite&lt;/code&gt;.  To retrieve the service, you would make a call like &lt;code&gt;workbench.getService(ICommandImageService.class)&lt;/code&gt;.
149
Within the workbench, it is possible to get images for commands using the &lt;code&gt;org.eclipse.ui.commands.ICommandImageService&lt;/code&gt; interface.  This interface can be retrieved from supporting workbench objects, such as &lt;code&gt;IWorkbench&lt;/code&gt; itself, the &lt;code&gt;IWorkbenchWindow&lt;/code&gt;, or the &lt;code&gt;IWorkbenchPartSite&lt;/code&gt;.  To retrieve the service, you would make a call like &lt;code&gt;workbench.getService(ICommandImageService.class)&lt;/code&gt;.
Lines 149-158 Link Here
149
   </annotation>
152
   </annotation>
150
153
151
154
155
152
   <annotation>
156
   <annotation>
153
      <appInfo>
157
      <appinfo>
154
         <meta.section type="copyright"/>
158
         <meta.section type="copyright"/>
155
      </appInfo>
159
      </appinfo>
156
      <documentation>
160
      <documentation>
157
         Copyright (c) 2005,2007 IBM Corporation and others.&lt;br&gt;
161
         Copyright (c) 2005,2007 IBM Corporation and others.&lt;br&gt;
158
All rights reserved. This program and the accompanying materials are made
162
All rights reserved. This program and the accompanying materials are made
(-)schema/menus.exsd (+6 lines)
Lines 401-406 Link Here
401
               <documentation>
401
               <documentation>
402
                  The name is either the name of the parameter to pass to the executable extension, or the identifier of the parameter for the command.
402
                  The name is either the name of the parameter to pass to the executable extension, or the identifier of the parameter for the command.
403
               </documentation>
403
               </documentation>
404
               <appinfo>
405
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/commandParameter/@id"/>
406
               </appinfo>
404
            </annotation>
407
            </annotation>
405
         </attribute>
408
         </attribute>
406
         <attribute name="value" type="string" use="required">
409
         <attribute name="value" type="string" use="required">
Lines 619-624 Link Here
619
               <documentation>
622
               <documentation>
620
                  This is the id of the Command that is to be bound to this element. This is the hook into the Commands/Handlers/Key binding services that actually do the work should this item be selected. In many cases this command will have been defined in a previous extension declaration.
623
                  This is the id of the Command that is to be bound to this element. This is the hook into the Commands/Handlers/Key binding services that actually do the work should this item be selected. In many cases this command will have been defined in a previous extension declaration.
621
               </documentation>
624
               </documentation>
625
               <appinfo>
626
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
627
               </appinfo>
622
            </annotation>
628
            </annotation>
623
         </attribute>
629
         </attribute>
624
         <attribute name="id" type="string">
630
         <attribute name="id" type="string">
(-)schema/handlers.exsd (-23 / +19 lines)
Lines 1-10 Link Here
1
<?xml version='1.0' encoding='UTF-8'?>
1
<?xml version='1.0' encoding='UTF-8'?>
2
<!-- Schema file written by PDE -->
2
<!-- Schema file written by PDE -->
3
<schema targetNamespace="org.eclipse.ui">
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="handlers" name="Handlers"/>
6
         <meta.schema plugin="org.eclipse.ui" id="handlers" name="Handlers"/>
7
      </appInfo>
7
      </appinfo>
8
      <documentation>
8
      <documentation>
9
         &lt;p&gt;
9
         &lt;p&gt;
10
The handlers extension point is an elaboration of the experimental &lt;code&gt;handlerSubmission&lt;/code&gt; element defined in Eclipse 3.0.  A handler is the behaviour of a command at a particular point in time.  A command can have zero or more handlers associated with it.  At any one point in time, however, a command will either have no active handler or one active handler.  The active handler is the one which is currently responsible for carrying out the behaviour of the command.  This is very similar to the concept of an action handler and a retargettable action.
10
The handlers extension point is an elaboration of the experimental &lt;code&gt;handlerSubmission&lt;/code&gt; element defined in Eclipse 3.0.  A handler is the behaviour of a command at a particular point in time.  A command can have zero or more handlers associated with it.  At any one point in time, however, a command will either have no active handler or one active handler.  The active handler is the one which is currently responsible for carrying out the behaviour of the command.  This is very similar to the concept of an action handler and a retargettable action.
Lines 75-80 Link Here
75
               <documentation>
75
               <documentation>
76
                  &lt;p&gt;The id of the command to associate with this handler implementation.&lt;/p&gt;
76
                  &lt;p&gt;The id of the command to associate with this handler implementation.&lt;/p&gt;
77
               </documentation>
77
               </documentation>
78
               <appinfo>
79
                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
80
               </appinfo>
78
            </annotation>
81
            </annotation>
79
         </attribute>
82
         </attribute>
80
         <attribute name="class" type="string">
83
         <attribute name="class" type="string">
Lines 82-90 Link Here
82
               <documentation>
85
               <documentation>
83
                  &lt;p&gt;The handler class that imlements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt; or extends &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt;.&lt;/p&gt;
86
                  &lt;p&gt;The handler class that imlements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt; or extends &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt;.&lt;/p&gt;
84
               </documentation>
87
               </documentation>
85
               <appInfo>
88
               <appinfo>
86
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
89
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
87
               </appInfo>
90
               </appinfo>
88
            </annotation>
91
            </annotation>
89
         </attribute>
92
         </attribute>
90
         <attribute name="helpContextId" type="string">
93
         <attribute name="helpContextId" type="string">
Lines 165-173 Link Here
165
               <documentation>
168
               <documentation>
166
                  &lt;p&gt;The handler class that imlements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt; or extends &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt;.&lt;/p&gt;
169
                  &lt;p&gt;The handler class that imlements &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt; or extends &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt;.&lt;/p&gt;
167
               </documentation>
170
               </documentation>
168
               <appInfo>
171
               <appinfo>
169
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
172
                  <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/>
170
               </appInfo>
173
               </appinfo>
171
            </annotation>
174
            </annotation>
172
         </attribute>
175
         </attribute>
173
      </complexType>
176
      </complexType>
Lines 198-215 Link Here
198
   </element>
201
   </element>
199
202
200
   <annotation>
203
   <annotation>
201
      <appInfo>
204
      <appinfo>
202
         <meta.section type="since"/>
205
         <meta.section type="since"/>
203
      </appInfo>
206
      </appinfo>
204
      <documentation>
207
      <documentation>
205
         3.1
208
         3.1
206
      </documentation>
209
      </documentation>
207
   </annotation>
210
   </annotation>
208
211
209
   <annotation>
212
   <annotation>
210
      <appInfo>
213
      <appinfo>
211
         <meta.section type="examples"/>
214
         <meta.section type="examples"/>
212
      </appInfo>
215
      </appinfo>
213
      <documentation>
216
      <documentation>
214
         &lt;p&gt;
217
         &lt;p&gt;
215
Variables that are valid in activeWhen and enabledWhen expressions can be found in &lt;code&gt;org.eclipse.ui.ISources&lt;/code&gt;.  The types of the variables are determined by the &lt;code&gt;org.eclipse.ui.ISourceProvider&lt;/code&gt; that provides them.
218
Variables that are valid in activeWhen and enabledWhen expressions can be found in &lt;code&gt;org.eclipse.ui.ISources&lt;/code&gt;.  The types of the variables are determined by the &lt;code&gt;org.eclipse.ui.ISourceProvider&lt;/code&gt; that provides them.
Lines 263-271 Link Here
263
   </annotation>
266
   </annotation>
264
267
265
   <annotation>
268
   <annotation>
266
      <appInfo>
269
      <appinfo>
267
         <meta.section type="apiInfo"/>
270
         <meta.section type="apiInfo"/>
268
      </appInfo>
271
      </appinfo>
269
      <documentation>
272
      <documentation>
270
         &lt;p&gt;
273
         &lt;p&gt;
271
All handlers implement &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt;, and can use &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt; as a base class.  Within the workbench, it is possible to activate and deactivate handlers using the &lt;code&gt;org.eclipse.ui.handlers.IHandlerService&lt;/code&gt; interface.  This interface can be retrieved from supporting workbench objects, such as &lt;code&gt;IWorkbench&lt;/code&gt; itself, a workbench window, or a part site.  To retrieve the service, you would make a call like &lt;code&gt;IWorkbench.getService(IHandlerService.class)&lt;/code&gt;.
274
All handlers implement &lt;code&gt;org.eclipse.core.commands.IHandler&lt;/code&gt;, and can use &lt;code&gt;org.eclipse.core.commands.AbstractHandler&lt;/code&gt; as a base class.  Within the workbench, it is possible to activate and deactivate handlers using the &lt;code&gt;org.eclipse.ui.handlers.IHandlerService&lt;/code&gt; interface.  This interface can be retrieved from supporting workbench objects, such as &lt;code&gt;IWorkbench&lt;/code&gt; itself, a workbench window, or a part site.  To retrieve the service, you would make a call like &lt;code&gt;IWorkbench.getService(IHandlerService.class)&lt;/code&gt;.
Lines 284-302 Link Here
284
      </documentation>
287
      </documentation>
285
   </annotation>
288
   </annotation>
286
289
287
   <annotation>
290
288
      <appInfo>
289
         <meta.section type="implementation"/>
290
      </appInfo>
291
      <documentation>
292
         
293
      </documentation>
294
   </annotation>
295
291
296
   <annotation>
292
   <annotation>
297
      <appInfo>
293
      <appinfo>
298
         <meta.section type="copyright"/>
294
         <meta.section type="copyright"/>
299
      </appInfo>
295
      </appinfo>
300
      <documentation>
296
      <documentation>
301
         Copyright (c) 2005, 2007 IBM Corporation and others.&lt;br&gt;
297
         Copyright (c) 2005, 2007 IBM Corporation and others.&lt;br&gt;
302
All rights reserved. This program and the accompanying materials are made
298
All rights reserved. This program and the accompanying materials are made

Return to bug 181515