<?xml version='1.0' encoding='UTF-8'?> | |
<!-- Schema file written by PDE --> | |
<schema targetNamespace="org.eclipse.xwt.pde" xmlns="http://www.w3.org/2001/XMLSchema"> | |
<annotation> | |
<appinfo> | |
<meta.schema plugin="org.eclipse.xwt.pde" id="commands" name="commands"/> | |
</appinfo> | |
<documentation> | |
This extension point is used to register a command with a name | |
</documentation> | |
</annotation> | |
<element name="extension"> | |
<annotation> | |
<appinfo> | |
<meta.element /> | |
</appinfo> | |
</annotation> | |
<complexType> | |
<choice> | |
<element ref="command" minOccurs="0" maxOccurs="unbounded"/> | |
</choice> | |
<attribute name="point" type="string" use="required"> | |
<annotation> | |
<documentation> | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="id" type="string"> | |
<annotation> | |
<documentation> | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="name" type="string"> | |
<annotation> | |
<documentation> | |
</documentation> | |
<appinfo> | |
<meta.attribute translatable="true"/> | |
</appinfo> | |
</annotation> | |
</attribute> | |
</complexType> | |
</element> | |
<element name="command"> | |
<annotation> | |
<documentation> | |
</documentation> | |
</annotation> | |
<complexType> | |
<attribute name="name" type="string" use="required"> | |
<annotation> | |
<documentation> | |
the name | |
</documentation> | |
</annotation> | |
</attribute> | |
<attribute name="class" type="string" use="required"> | |
<annotation> | |
<documentation> | |
The class of command must implement the interface org.eclipse.xwt.ICommand | |
</documentation> | |
<appinfo> | |
<meta.attribute kind="java" basedOn=":org.eclipse.xwt.ICommand"/> | |
</appinfo> | |
</annotation> | |
</attribute> | |
</complexType> | |
</element> | |
<annotation> | |
<appinfo> | |
<meta.section type="since"/> | |
</appinfo> | |
<documentation> | |
[Enter the first release in which this extension point appears.] | |
</documentation> | |
</annotation> | |
<annotation> | |
<appinfo> | |
<meta.section type="examples"/> | |
</appinfo> | |
<documentation> | |
Here is an example to define a commands: | |
<pre> | |
<extension | |
point="org.eclipse.xwt.pde.commands"> | |
<command | |
class="org.eclipse.xwt.demo.MessageCommand" | |
name="Message"> | |
</command> | |
</extension> | |
</pre> | |
</documentation> | |
</annotation> | |
<annotation> | |
<appinfo> | |
<meta.section type="apiinfo"/> | |
</appinfo> | |
<documentation> | |
[Enter API information here.] | |
</documentation> | |
</annotation> | |
<annotation> | |
<appinfo> | |
<meta.section type="implementation"/> | |
</appinfo> | |
<documentation> | |
[Enter information about supplied implementation of this extension point.] | |
</documentation> | |
</annotation> | |
</schema> |