<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<HTML> | |
<link href="../../book.css" rel="stylesheet" type="text/css" /> | |
<HEAD><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<title>commands</title> | |
<style type="text/css">@import url("file:/D:/Develop/Java/Eclipse/340/plugins/org.eclipse.sdk_3.4.0.v200806172000/book.css");</style> | |
<style type="text/css">@import url("file:/D:/Develop/Java/Eclipse/340/configuration/org.eclipse.osgi/bundles/203/1/.cp/schema.css");</style> | |
</HEAD> | |
<BODY> | |
<H1>Commands</H1> | |
<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">Identifier: </h6>org.eclipse.xwt.pde.commands<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">Since: </h6>[Enter the first release in which this extension point appears.] | |
<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">Description: </h6>This extension point is used to register a command with a name<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">Configuration Markup:</h6> | |
<p></p> | |
<p class="code SchemaDtd"><!ELEMENT <a name="e.extension">extension</a> (<a href="#e.command">command</a>*)></p> | |
<p class="code SchemaDtd"><!ATTLIST extension</p> | |
<p class="code SchemaDtdAttlist">point CDATA #REQUIRED<p class="code SchemaDtdAttlist">id CDATA #IMPLIED<p class="code SchemaDtdAttlist">name CDATA #IMPLIED></p> | |
<p></p> | |
<ul class="ConfigMarkupAttlistDesc"> | |
</ul> | |
<br><p class="code SchemaDtd"><!ELEMENT <a name="e.command">command</a> EMPTY></p> | |
<p class="code SchemaDtd"><!ATTLIST command</p> | |
<p class="code SchemaDtdAttlist">name CDATA #REQUIRED<p class="code SchemaDtdAttlist">class CDATA #REQUIRED></p> | |
<p></p> | |
<ul class="ConfigMarkupAttlistDesc"> | |
<li><b>name</b> - the name</li> | |
<li><b>class</b> - The class of command must implement the interface org.eclipse.xwt.ICommand</li> | |
</ul> | |
<br><h6 class="CaptionFigColumn SchemaHeader">Examples: </h6>Here is an example to define a commands: | |
<pre class="Example"><span class="code SchemaTag"> | |
<extension | |
point=</span><span class="code SchemaCstring">"org.eclipse.xwt.pde.commands"</span><span class="code SchemaTag">> | |
<command | |
class=</span><span class="code SchemaCstring">"org.eclipse.xwt.demo.MessageCommand"</span><span class="code SchemaTag"> | |
name=</span><span class="code SchemaCstring">"Message"</span><span class="code SchemaTag">> | |
</command> | |
</extension> | |
</span></pre> | |
<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">API Information: </h6>[Enter API information here.] | |
<p></p> | |
<h6 class="CaptionFigColumn SchemaHeader">Supplied Implementation: </h6>[Enter information about supplied implementation of this extension point.] | |
<p></p> | |
<br> | |
<p class="note SchemaCopyright"> | |
</p> | |
</BODY> | |
<p><img src="../../cpy.png" /></p> | |
</HTML> |