Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 89948 Details for
Bug 181515
Provide more structure, safety, and convenience for ID-based references between extension points (id hell)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Schema examples v02
usePDE-v02.txt (text/plain), 56.44 KB, created by
Paul Webster
on 2008-02-17 15:54:32 EST
(
hide
)
Description:
Schema examples v02
Filename:
MIME Type:
Creator:
Paul Webster
Created:
2008-02-17 15:54:32 EST
Size:
56.44 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ui >Index: schema/perspectiveExtensions.exsd >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui/schema/perspectiveExtensions.exsd,v >retrieving revision 1.12 >diff -u -r1.12 perspectiveExtensions.exsd >--- schema/perspectiveExtensions.exsd 16 Mar 2007 18:00:06 -0000 1.12 >+++ schema/perspectiveExtensions.exsd 17 Feb 2008 20:50:10 -0000 >@@ -1,10 +1,10 @@ > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> >-<schema targetNamespace="org.eclipse.ui"> >+<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.schema plugin="org.eclipse.ui" id="perspectiveExtensions" name="Perspective Extensions"/> >- </appInfo> >+ </appinfo> > <documentation> > This extension point is used to extend perspectives > registered by other plug-ins. A perspective defines >@@ -42,9 +42,9 @@ > <documentation> > an optional name of the extension instance > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -52,9 +52,9 @@ > > <element name="perspectiveExtension"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="targetID"/> >- </appInfo> >+ </appinfo> > </annotation> > <complexType> > <choice minOccurs="0" maxOccurs="unbounded"> >@@ -69,8 +69,10 @@ > <annotation> > <documentation> > the unique identifier of the perspective (as specified in the registry) into which the contribution is made. If the value is set to "*" the extension is applied to all perspectives. >- > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -83,6 +85,9 @@ > <documentation> > the unique identifier of the action set which will be added to the perspective. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.actionSets/actionSet/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -95,6 +100,9 @@ > <documentation> > the unique identifier of the view which will be added to the perspective's "Show View" submenu of the "Window" menu. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -107,6 +115,9 @@ > <documentation> > the unique identifier of the perspective which will be added to the perspective's "Open Perspective" submenu of the "Window" menu. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.perspectives/perspective/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -119,6 +130,9 @@ > <documentation> > the unique identifier of the new wizard which will be added to the perspective's "New" submenu of the "File" menu. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.newWizards/wizard/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -131,6 +145,9 @@ > <documentation> > the unique identifier of the view which will be added to the perspective's "Show In..." prompter in the Navigate menu. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -143,6 +160,9 @@ > <documentation> > the unique identifier of the view which will be added to the perspective layout. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="relative" type="string"> >@@ -150,6 +170,9 @@ > <documentation> > 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 <samp>relationship</samp>. Ignored if relationship is "fast". > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.views/view/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="relationship" use="required"> >@@ -239,9 +262,9 @@ > </element> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="examples"/> >- </appInfo> >+ </appinfo> > <documentation> > The following is an example of a perspective extension (note the subelements and the way attributes are used): > <p> >@@ -277,27 +300,21 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="apiInfo"/> >- </appInfo> >+ </appinfo> > <documentation> > 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. > </documentation> > </annotation> > >- <annotation> >- <appInfo> >- <meta.section type="implementation"/> >- </appInfo> >- <documentation> >- >- </documentation> >- </annotation> >+ >+ > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="copyright"/> >- </appInfo> >+ </appinfo> > <documentation> > Copyright (c) 2002, 2007 IBM Corporation and others.<br> > All rights reserved. This program and the accompanying materials are made >Index: schema/bindings.exsd >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui/schema/bindings.exsd,v >retrieving revision 1.11 >diff -u -r1.11 bindings.exsd >--- schema/bindings.exsd 13 Sep 2007 12:27:25 -0000 1.11 >+++ schema/bindings.exsd 17 Feb 2008 20:50:08 -0000 >@@ -1,10 +1,10 @@ > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> >-<schema targetNamespace="org.eclipse.ui"> >+<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.schema plugin="org.eclipse.ui" id="bindings" name="Bindings"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The <code>org.eclipse.ui.bindings</code> 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. >@@ -49,9 +49,9 @@ > <documentation> > > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -59,9 +59,9 @@ > > <element name="scheme"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="name"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > A scheme is a grouping of bindings that an end user can chose to use. >@@ -84,9 +84,9 @@ > <documentation> > The name for this scheme, as it should be displayed to an end-user. This value should be translated. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="description" type="string"> >@@ -94,9 +94,9 @@ > <documentation> > The description for this scheme, as it would be displayed to an end user. This value should be translated. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parentId" type="string"> >@@ -111,9 +111,9 @@ > > <element name="key"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="commandId"/> >- </appInfo> >+ </appinfo> > <documentation> > <p>A binding between some keyboard input and the triggering of a command.</p> > </documentation> >@@ -149,6 +149,9 @@ > <documentation> > The identifier of the scheme in which this key binding is active. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.bindings/scheme/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="contextId" type="string" use="default" value="org.eclipse.ui.contexts.window"> >@@ -156,6 +159,9 @@ > <documentation> > The identifier of the context in which this key binding is active. Please see the <code>org.eclipse.ui.contexts</code> extension point. If this is not specified, then it defaults to <code>org.eclipse.ui.contexts.window</code>. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="commandId" type="string"> >@@ -168,6 +174,9 @@ > 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. > </p> > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="platform" type="string"> >@@ -189,9 +198,9 @@ > > <element name="parameter"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="id"/> >- </appInfo> >+ </appinfo> > <documentation> > 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 "Show View" command might accept the view id as a parameter. > </documentation> >@@ -215,18 +224,18 @@ > </element> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="since"/> >- </appInfo> >+ </appinfo> > <documentation> > 3.1 > </documentation> > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="examples"/> >- </appInfo> >+ </appinfo> > <documentation> > <pre> > <extension >@@ -251,9 +260,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="apiInfo"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > 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 <code>WorkbenchAdvisor</code>. >@@ -265,10 +274,11 @@ > </annotation> > > >+ > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="copyright"/> >- </appInfo> >+ </appinfo> > <documentation> > Copyright (c) 2005,2007 IBM Corporation and others.<br> > All rights reserved. This program and the accompanying materials are made >Index: schema/commands.exsd >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui/schema/commands.exsd,v >retrieving revision 1.64 >diff -u -r1.64 commands.exsd >--- schema/commands.exsd 8 Jun 2007 02:29:30 -0000 1.64 >+++ schema/commands.exsd 17 Feb 2008 20:50:09 -0000 >@@ -1,10 +1,10 @@ > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> >-<schema targetNamespace="org.eclipse.ui"> >+<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.schema plugin="org.eclipse.ui" id="commands" name="Commands"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The <code>org.eclipse.ui.commands</code> extension point is used to declare commands and command categories, using the <code>command</code> and <code>category</code> elements. A command is an abstract representation of some semantic behaviour, but not it's actual implementation. This allows different developers to contribute specific behaviour for their individual parts. For example, there might be a "paste" command with one implementation in an editor and a different implementation in an explorer widget. These implementations are called handlers. Commands can also be viewed as declarative function pointers, or signal handlers. >@@ -36,9 +36,9 @@ > <documentation> > An optional name of the extension instance. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="point" type="string" use="required"> >@@ -70,9 +70,9 @@ > <documentation> > Please use <code>categoryId</code> instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="description" type="string"> >@@ -80,9 +80,9 @@ > <documentation> > A translatable short description of this command for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -97,9 +97,9 @@ > <documentation> > The translatable name of this command for display in the UI. Commands are typically named in the form of an imperative verb. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="categoryId" type="string"> >@@ -110,6 +110,9 @@ > </p> > <p><em>Since: 3.0</em></p> > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/category/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="defaultHandler" type="string"> >@@ -120,9 +123,9 @@ > </p> > <p><em>Since: 3.1</em></p> > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="returnTypeId" type="string"> >@@ -162,9 +165,9 @@ > <documentation> > A translatable short description of this category for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -179,9 +182,9 @@ > <documentation> > The translatable name of this category for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -189,9 +192,9 @@ > > <element name="commandParameter"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="id"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > Defines a parameter that a command should understand. A parameter is a way to provide more information to a handler at execution time. For example, a "show view" command might take a view as a parameter. Handlers should be able to understand these parameters, so they should be treated like API. >@@ -215,9 +218,9 @@ > <documentation> > 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. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="values" type="string"> >@@ -225,9 +228,9 @@ > <documentation> > The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="typeId" type="string"> >@@ -235,6 +238,9 @@ > <documentation> > 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. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/commandParameterType/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="optional" type="boolean" use="default" value="true"> >@@ -269,9 +275,9 @@ > <documentation> > The fully qualified name of a Java class or interface to use as the type of this command parameter. This attribute is optional, however if omitted, <code>java.lang.Object</code> will be used as the parameter type. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="converter" type="string"> >@@ -279,9 +285,9 @@ > <documentation> > The class for converting between objects and string representations of objects for command parameter values. This class should extend <code>org.eclipse.core.commands.AbstractParameterValueConverter</code>. The converter should produce and consume objects of the type indicated in the <code>type</code> attribute. If this class is not specified, this facility to convert between string and object values for this parameter type will not be available (the <code>getValueConverter()</code> on class <code>ParameterType</code> will return <code>null</code>). > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.AbstractParameterValueConverter"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -289,9 +295,9 @@ > > <element name="values"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="class"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The more verbose version of the <code>values</code> attribute on the <code>commandParameter</code>. >@@ -308,9 +314,9 @@ > <documentation> > The class providing a list of parameter values for the user to select. This class should implement <code>org.eclipse.core.commands.IParameterValues</code>. If this class is not specified, you must specify the more verbose <code>values</code> element. Please see <code>org.eclipse.core.runtime.IExecutableExtension</code>. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IParameterValues"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -318,9 +324,9 @@ > > <element name="parameter"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="name"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > A possible value for a parameter. >@@ -348,9 +354,9 @@ > > <element name="defaultHandler"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="class"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The default handler for this command. If no other handler is active, this handler will be active. This handler will conflict with other handler definitions that specify no <code>activeWhen</code> conditions. If you are not creating an <code>IExecutableExtension</code>, you can use the <code>defaultHandler</code> attribute instead. >@@ -367,9 +373,9 @@ > <documentation> > The class which implements <code>org.eclipse.core.commands.IHandler</code>. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -377,9 +383,9 @@ > > <element name="state"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="class"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > 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. >@@ -396,9 +402,9 @@ > <documentation> > The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must implement <code>org.eclipse.core.commands.State</code>. Please see API Information. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -415,9 +421,9 @@ > > <element name="class"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="class"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The class that can be loaded to store the state of this command. This element is used if you wish to pass multiple parameters to an <code>org.eclipse.core.runtime.IExecutableExtension</code>. >@@ -434,9 +440,9 @@ > <documentation> > The class that can be loaded to store the state of this command. State is shared amongst handlers, and can be persisted between sessions. This class must implement <code>org.eclipse.core.commands.State</code>. Please see API Information. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -444,9 +450,9 @@ > > <element name="keyConfiguration"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element deprecated="true"/> >- </appInfo> >+ </appinfo> > <documentation> > This element is used to define key configurations. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the "org.eclipse.ui.bindings" extension point instead. > </documentation> >@@ -457,9 +463,9 @@ > <documentation> > A translatable short description of this key configuration for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -467,9 +473,9 @@ > <documentation> > The unique identifier of this key configuration. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="name" type="string" use="required"> >@@ -477,9 +483,9 @@ > <documentation> > The translatable name of this key configuration for display in the UI. If this key configuration has a parent, it is not necessary to add "(extends ...)" to the name. This will be automatically added by the UI where necessary. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parent" type="string"> >@@ -488,9 +494,9 @@ > 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. > @deprecated Please use parentId instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parentId" type="string"> >@@ -498,9 +504,9 @@ > <documentation> > 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. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -508,9 +514,9 @@ > > <element name="context"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element deprecated="true"/> >- </appInfo> >+ </appinfo> > <documentation> > This element is used to define contexts. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. Please use the <a href="org_eclipse_ui_contexts.html">org.eclipse.ui.contexts</a> extension point instead. > </documentation> >@@ -521,9 +527,9 @@ > <documentation> > A translatable short description of this context for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -531,9 +537,9 @@ > <documentation> > The unique identifier of this context. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="name" type="string" use="required"> >@@ -541,9 +547,9 @@ > <documentation> > The translatable name of this context for display in the UI. If this context has a parent, it is not necessary to add "(extends parent)" to the name. This will be automatically added by the UI where necessary. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parent" type="string"> >@@ -552,9 +558,9 @@ > 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. > @deprecated Please use "parentId" instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parentId" type="string"> >@@ -562,9 +568,9 @@ > <documentation> > 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. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -572,9 +578,9 @@ > > <element name="scope"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element labelAttribute="id" deprecated="true"/> >- </appInfo> >+ </appinfo> > <documentation> > This element is used to define scopes. If more than one of these elements exist with the same <code>id</code> attribute, only the last declared element (in order of reading the plugin registry) is considered valid. > @deprecated Please use the "org.eclipse.ui.contexts" extension point instead. >@@ -588,9 +594,9 @@ > > @deprecated Please use the "org.eclipse.ui.contexts" extension point instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -600,9 +606,9 @@ > > @deprecated Please use the "org.eclipse.ui.contexts" extension point instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="name" type="string" use="required"> >@@ -612,9 +618,9 @@ > > @deprecated Please use the "org.eclipse.ui.contexts" extension point instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true" deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parent" type="string"> >@@ -624,9 +630,9 @@ > > @deprecated Please use the "org.eclipse.ui.contexts" extension point instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -634,9 +640,9 @@ > > <element name="activeKeyConfiguration"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element deprecated="true"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > 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. >@@ -652,9 +658,9 @@ > <documentation> > The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="keyConfigurationId" type="string"> >@@ -662,9 +668,9 @@ > <documentation> > The unique id (<code>id</code> attribute) of the keyConfiguration element one wishes to be initially active. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -672,9 +678,9 @@ > > <element name="keyBinding"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.element deprecated="true"/> >- </appInfo> >+ </appinfo> > <documentation> > This element allows one to assign key sequences to commands. Please use the <code>key</code> element in the "org.eclipse.ui.bindings" extension point instead. > </documentation> >@@ -686,9 +692,9 @@ > The unique id of the key configuration of this key binding. > @deprecated Please use keyConfigurationId instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="command" type="string"> >@@ -697,9 +703,9 @@ > The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. > @deprecated Please use "commandId" instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="locale" type="string"> >@@ -707,9 +713,9 @@ > <documentation> > An optional attribute indicating that this key binding is only defined for the specified locale. Locales are specified according to the format declared in <code>java.util.Locale</code>. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="platform" type="string"> >@@ -717,9 +723,9 @@ > <documentation> > An optional attribute indicating that this key binding is only defined for the specified platform. The possible values of the <code>platform</code> attribute are the set of the possible values returned by <code>org.eclipse.swt.SWT.getPlatform()</code>. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="contextId" type="string"> >@@ -727,9 +733,9 @@ > <documentation> > The unique id of the context of this key binding. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="string" type="string"> >@@ -738,9 +744,9 @@ > The key sequence to assign to the command. Key sequences consist of one or more key strokes, where a key stroke consists of a key on the keyboard, optionally pressed in combination with one or more of the following modifiers: Ctrl, Alt, Shift, and Command. Key strokes are separated by spaces, and modifiers are separated by '+' characters. > @deprecated Please use "keySequence" instead. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="scope" type="string"> >@@ -749,9 +755,9 @@ > The unique id of the context of this key binding. > @deprecated Please use "contextId" instead. The old default scope, "org.eclipse.ui.globalScope", has been changed to "org.eclipse.ui.contexts.window". The old name is still supported, but it is deprecated. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="keyConfigurationId" type="string"> >@@ -760,9 +766,9 @@ > The unique id of the key configuration of this key binding. > @deprecated Please use the <code>schemeId</code> attribute on the <code>key</code> element in the new "org.eclipse.ui.bindings" extension point. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="commandId" type="string"> >@@ -770,9 +776,9 @@ > <documentation> > The unique identifier of the command to which the key sequence specified by this key binding is assigned. If the value of this attribute is an empty string, the key sequence is assigned to an internal 'no operation' command. This is useful for 'undefining' key bindings in specific key configurations and contexts which may have been borrowed from their parents. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="keySequence" type="string"> >@@ -782,18 +788,18 @@ > <p>The modifier keys can also be expressed in a platform-independent way. On MacOS X, for example, "Command" is almost always used in place of "Ctrl". So, we provide "M1" which will map to either "Ctrl" or "Command", as appropriate. Similarly, "M2" is "Shift"; "M3" is "Alt"; and "M4" is "Ctrl" (MacOS X). If more platforms are added, then you can count on these aliases being mapped to good platform defaults.</p> > <p>The syntax for this string is defined in <code>org.eclipse.ui.internal.keys</code>. Briefly, the string is case insensitive -- though all capitals is preferred stylistically. If the key is a letter, then simply append the letter. If the key is a special key (i.e., non-ASCII), then use one of the following: ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, BREAK, CAPS_LOCK, END, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, HOME, INSERT, NUM_LOCK, NUMPAD_0, NUMPAD_1, NUMPAD_2, NUMPAD_3, NUMPAD_4, NUMPAD_5, NUMPAD_6, NUMPAD_7, NUMPAD_8, NUMPAD_9, NUMPAD_ADD, NUMPAD_DECIMAL, NUMPAD_DIVIDE, NUMPAD_ENTER, NUMPAD_EQUAL, NUMPAD_MULTIPLY, NUMPAD_SUBTRACT, PAGE_UP, PAGE_DOWN, PAUSE, PRINT_SCREEN, or SCROLL_LOCK. If the key is a non-printable ASCII key, then use one of the following: BS, CR, DEL, ESC, FF, LF, NUL, SPACE, TAB, or VT. Note that the main keyboard enter/return key is CR.</p> > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute deprecated="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> > </element> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="since"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > 2.1 >@@ -802,9 +808,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="examples"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The <code>plugin.xml</code> file in the <code>org.eclipse.ui</code> plugin makes extensive use of the <code>org.eclipse.ui.commands</code> extension point. >@@ -813,9 +819,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="apiInfo"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > Handlers can be registered with commands using the <code>org.eclipse.ui.handlers.IHandlerService</code>. This can be retrieved from various workbench components (e.g., workbench, workbench window, part site, etc.) by calling <code>getService(IHandlerService.class)</code>. >@@ -837,19 +843,12 @@ > </documentation> > </annotation> > >- <annotation> >- <appInfo> >- <meta.section type="implementation"/> >- </appInfo> >- <documentation> >- >- </documentation> >- </annotation> >+ > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="copyright"/> >- </appInfo> >+ </appinfo> > <documentation> > Copyright (c) 2000, 2007 IBM Corporation and others.<br> > All rights reserved. This program and the accompanying materials are made >Index: schema/contexts.exsd >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui/schema/contexts.exsd,v >retrieving revision 1.10 >diff -u -r1.10 contexts.exsd >--- schema/contexts.exsd 8 Jun 2007 02:29:30 -0000 1.10 >+++ schema/contexts.exsd 17 Feb 2008 20:50:09 -0000 >@@ -1,10 +1,10 @@ > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> >-<schema targetNamespace="org.eclipse.ui"> >+<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.schema plugin="org.eclipse.ui" id="contexts" name="Contexts"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The <code>org.eclipse.ui.contexts</code> extension point is used to declare contexts and associated elements. >@@ -29,9 +29,9 @@ > <documentation> > An optional name of the extension instance. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="point" type="string" use="required"> >@@ -56,9 +56,9 @@ > <documentation> > A translatable short description of this context for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="id" type="string" use="required"> >@@ -73,9 +73,9 @@ > <documentation> > The translatable name of this context for display in the UI. > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute translatable="true"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="parentId" type="string"> >@@ -83,15 +83,18 @@ > <documentation> > The unique identifier of the parent of this context. > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/> >+ </appinfo> > </annotation> > </attribute> > </complexType> > </element> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="since"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > 3.0 >@@ -100,9 +103,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="examples"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The <code>plugin.xml</code> file in the <code>org.eclipse.ui</code> plugin makes use of the <code>org.eclipse.ui.contexts</code> extension point. >@@ -111,9 +114,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="apiInfo"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > In general, it is preferrably to declare all contexts statically (in <code>plugin.xml</code>). 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 <code>org.eclipse.ui.commands.IContextService</code> from a workbench component, call <code>getContext(contextId)</code> and then call <code>Context#define(...)</code>. >@@ -122,19 +125,12 @@ > </documentation> > </annotation> > >- <annotation> >- <appInfo> >- <meta.section type="implementation"/> >- </appInfo> >- <documentation> >- >- </documentation> >- </annotation> >+ > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="copyright"/> >- </appInfo> >+ </appinfo> > <documentation> > Copyright (c) 2000, 2007 IBM Corporation and others.<br> > All rights reserved. This program and the accompanying materials are made >Index: schema/handlers.exsd >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui/schema/handlers.exsd,v >retrieving revision 1.12 >diff -u -r1.12 handlers.exsd >--- schema/handlers.exsd 8 Jun 2007 02:29:30 -0000 1.12 >+++ schema/handlers.exsd 17 Feb 2008 20:50:09 -0000 >@@ -1,10 +1,10 @@ > <?xml version='1.0' encoding='UTF-8'?> > <!-- Schema file written by PDE --> >-<schema targetNamespace="org.eclipse.ui"> >+<schema targetNamespace="org.eclipse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> > <annotation> >- <appInfo> >+ <appinfo> > <meta.schema plugin="org.eclipse.ui" id="handlers" name="Handlers"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > The handlers extension point is an elaboration of the experimental <code>handlerSubmission</code> 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. >@@ -75,6 +75,9 @@ > <documentation> > <p>The id of the command to associate with this handler implementation.</p> > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="class" type="string"> >@@ -82,9 +85,9 @@ > <documentation> > <p>The handler class that imlements <code>org.eclipse.core.commands.IHandler</code> or extends <code>org.eclipse.core.commands.AbstractHandler</code>.</p> > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > <attribute name="helpContextId" type="string"> >@@ -165,9 +168,9 @@ > <documentation> > <p>The handler class that imlements <code>org.eclipse.core.commands.IHandler</code> or extends <code>org.eclipse.core.commands.AbstractHandler</code>.</p> > </documentation> >- <appInfo> >+ <appinfo> > <meta.attribute kind="java" basedOn="org.eclipse.core.commands.IHandler"/> >- </appInfo> >+ </appinfo> > </annotation> > </attribute> > </complexType> >@@ -185,6 +188,9 @@ > <documentation> > <p>The parameter name.</p> > </documentation> >+ <appinfo> >+ <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/commandParameter/@id"/> >+ </appinfo> > </annotation> > </attribute> > <attribute name="value" type="string" use="required"> >@@ -198,18 +204,18 @@ > </element> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="since"/> >- </appInfo> >+ </appinfo> > <documentation> > 3.1 > </documentation> > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="examples"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > Variables that are valid in activeWhen and enabledWhen expressions can be found in <code>org.eclipse.ui.ISources</code>. The types of the variables are determined by the <code>org.eclipse.ui.ISourceProvider</code> that provides them. >@@ -263,9 +269,9 @@ > </annotation> > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="apiInfo"/> >- </appInfo> >+ </appinfo> > <documentation> > <p> > All handlers implement <code>org.eclipse.core.commands.IHandler</code>, and can use <code>org.eclipse.core.commands.AbstractHandler</code> as a base class. Within the workbench, it is possible to activate and deactivate handlers using the <code>org.eclipse.ui.handlers.IHandlerService</code> interface. This interface can be retrieved from supporting workbench objects, such as <code>IWorkbench</code> itself, a workbench window, or a part site. To retrieve the service, you would make a call like <code>IWorkbench.getService(IHandlerService.class)</code>. >@@ -284,19 +290,12 @@ > </documentation> > </annotation> > >- <annotation> >- <appInfo> >- <meta.section type="implementation"/> >- </appInfo> >- <documentation> >- >- </documentation> >- </annotation> >+ > > <annotation> >- <appInfo> >+ <appinfo> > <meta.section type="copyright"/> >- </appInfo> >+ </appinfo> > <documentation> > Copyright (c) 2005, 2007 IBM Corporation and others.<br> > All rights reserved. This program and the accompanying materials are made
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 181515
:
63844
|
64350
|
89585
|
89861
|
89892
|
89945
|
89946
|
89948
|
89999
|
90000
|
90001
|
90002
|
90010
|
90011
|
90013