Browse Source

Fixed SD2-849: AddIn.xsd schema is not valid

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2136 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
ede45e4e67
  1. 167
      data/schemas/AddIn.xsd
  2. 26
      doc/technotes/ConditionList.html
  3. 76
      doc/technotes/DoozerList.html
  4. 11
      src/Tools/BuildAddinDocumentation/MainClass.cs

167
data/schemas/AddIn.xsd

@ -2,11 +2,6 @@
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Ivo Kovacka (Kovacka) --> <!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Ivo Kovacka (Kovacka) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.icsharpcode.net/2005/addin" xmlns="http://www.icsharpcode.net/2005/addin"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.icsharpcode.net/2005/addin" xmlns="http://www.icsharpcode.net/2005/addin">
<xs:complexType name="AddIn"> <xs:complexType name="AddIn">
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="author" type="xs:string" use="required" />
<xs:attribute name="copyright" type="xs:string" use="optional" />
<xs:attribute name="url" type="xs:anyURI" use="optional" />
<xs:attribute name="description" type="xs:string" use="optional" />
<xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="BitmapResources"> <xs:element name="BitmapResources">
<xs:complexType> <xs:complexType>
@ -58,6 +53,11 @@
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
</xs:choice> </xs:choice>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="author" type="xs:string" use="required" />
<xs:attribute name="copyright" type="xs:string" use="optional" />
<xs:attribute name="url" type="xs:anyURI" use="optional" />
<xs:attribute name="description" type="xs:string" use="optional" />
</xs:complexType> </xs:complexType>
<xs:element name="AddIn" type="AddIn" /> <xs:element name="AddIn" type="AddIn" />
<xs:complexType name="AddInReference"> <xs:complexType name="AddInReference">
@ -65,11 +65,11 @@
<xs:attribute name="version" type="xs:string" use="optional" /> <xs:attribute name="version" type="xs:string" use="optional" />
</xs:complexType> </xs:complexType>
<xs:complexType name="Import"> <xs:complexType name="Import">
<xs:attribute name="assembly" type="xs:string" use="required" />
<xs:choice maxOccurs="unbounded"> <xs:choice maxOccurs="unbounded">
<xs:element name="Doozer" type="CustomDoozerOrCondition" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="Doozer" type="CustomDoozerOrCondition" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="ConditionEvaluator" type="CustomDoozerOrCondition" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="ConditionEvaluator" type="CustomDoozerOrCondition" minOccurs="0" maxOccurs="unbounded" />
</xs:choice> </xs:choice>
<xs:attribute name="assembly" type="xs:string" use="required" />
</xs:complexType> </xs:complexType>
<xs:complexType name="CustomDoozerOrCondition"> <xs:complexType name="CustomDoozerOrCondition">
<xs:attribute name="name" type="xs:string" use="required" /> <xs:attribute name="name" type="xs:string" use="required" />
@ -82,6 +82,7 @@
<!-- !!! INSERT DOOZER LIST !!! --> <!-- !!! INSERT DOOZER LIST !!! -->
<xs:element ref="Class" /> <xs:element ref="Class" />
<xs:element ref="CodeCompletionBinding" /> <xs:element ref="CodeCompletionBinding" />
<xs:element ref="CustomTool" />
<xs:element ref="Debugger" /> <xs:element ref="Debugger" />
<xs:element ref="DialogPanel" /> <xs:element ref="DialogPanel" />
<xs:element ref="Directory" /> <xs:element ref="Directory" />
@ -94,7 +95,7 @@
<xs:element ref="MenuItem" /> <xs:element ref="MenuItem" />
<xs:element ref="Pad" /> <xs:element ref="Pad" />
<xs:element ref="Parser" /> <xs:element ref="Parser" />
<xs:element ref="Registry" /> <xs:element ref="ProjectContentRegistry" />
<xs:element ref="SchemeExtension" /> <xs:element ref="SchemeExtension" />
<xs:element ref="String" /> <xs:element ref="String" />
<xs:element ref="SyntaxMode" /> <xs:element ref="SyntaxMode" />
@ -105,31 +106,33 @@
</xs:complexType> </xs:complexType>
<xs:element name="Path" type="Path" /> <xs:element name="Path" type="Path" />
<xs:complexType name="Condition"> <xs:complexType name="Condition">
<xs:extension base="Path"> <xs:complexContent>
<xs:attribute name="action" use="optional"> <xs:extension base="Path">
<xs:simpleType> <xs:attribute name="action" use="optional">
<xs:restriction base="xs:string"> <xs:simpleType>
<xs:enumeration value="Exclude" /> <xs:restriction base="xs:string">
<xs:enumeration value="Disable" /> <xs:enumeration value="Exclude" />
<xs:enumeration value="Nothing" /> <xs:enumeration value="Disable" />
</xs:restriction> <xs:enumeration value="Nothing" />
</xs:simpleType> </xs:restriction>
</xs:attribute> </xs:simpleType>
<!-- !!! INSERT CONDITION ATTRIBUTES !!! --> </xs:attribute>
<xs:attribute name="activeextension" type="xs:string" use="optional" /> <!-- !!! INSERT CONDITION ATTRIBUTES !!! -->
<xs:attribute name="activeproject" type="xs:string" use="optional" /> <xs:attribute name="activeextension" type="xs:string" use="optional" />
<xs:attribute name="activewindow" type="xs:string" use="optional" /> <xs:attribute name="activeproject" type="xs:string" use="optional" />
<xs:attribute name="comparisonType" type="xs:string" use="optional" /> <xs:attribute name="activewindow" type="xs:string" use="optional" />
<xs:attribute name="debuggersupports" type="xs:string" use="optional" /> <xs:attribute name="comparisonType" type="xs:string" use="optional" />
<xs:attribute name="equals" type="xs:string" use="optional" /> <xs:attribute name="debuggersupports" type="xs:string" use="optional" />
<xs:attribute name="openwindow" type="xs:string" use="optional" /> <xs:attribute name="equals" type="xs:string" use="optional" />
<xs:attribute name="options" type="xs:string" use="optional" /> <xs:attribute name="openwindow" type="xs:string" use="optional" />
<xs:attribute name="property" type="xs:string" use="optional" /> <xs:attribute name="options" type="xs:string" use="optional" />
<xs:attribute name="string" type="xs:string" use="optional" /> <xs:attribute name="property" type="xs:string" use="optional" />
<xs:attribute name="supports" type="xs:string" use="optional" /> <xs:attribute name="string" type="xs:string" use="optional" />
<xs:attribute name="textcontent" type="xs:string" use="optional" /> <xs:attribute name="supports" type="xs:string" use="optional" />
<xs:attribute name="urlRegex" type="xs:string" use="optional" /> <xs:attribute name="textcontent" type="xs:string" use="optional" />
</xs:extension> <xs:attribute name="urlRegex" type="xs:string" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType> </xs:complexType>
<xs:element name="Condition" type="Condition"> <xs:element name="Condition" type="Condition">
<xs:annotation> <xs:annotation>
@ -139,15 +142,6 @@
</xs:annotation> </xs:annotation>
</xs:element> </xs:element>
<xs:complexType name="ComplexCondition"> <xs:complexType name="ComplexCondition">
<xs:attribute name="action" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Exclude" />
<xs:enumeration value="Disable" />
<xs:enumeration value="Nothing" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:choice maxOccurs="unbounded"> <xs:choice maxOccurs="unbounded">
<xs:element ref="And" /> <xs:element ref="And" />
<xs:element ref="Or" /> <xs:element ref="Or" />
@ -155,6 +149,7 @@
<!-- !!! INSERT DOOZER LIST !!! --> <!-- !!! INSERT DOOZER LIST !!! -->
<xs:element ref="Class" /> <xs:element ref="Class" />
<xs:element ref="CodeCompletionBinding" /> <xs:element ref="CodeCompletionBinding" />
<xs:element ref="CustomTool" />
<xs:element ref="Debugger" /> <xs:element ref="Debugger" />
<xs:element ref="DialogPanel" /> <xs:element ref="DialogPanel" />
<xs:element ref="Directory" /> <xs:element ref="Directory" />
@ -167,13 +162,22 @@
<xs:element ref="MenuItem" /> <xs:element ref="MenuItem" />
<xs:element ref="Pad" /> <xs:element ref="Pad" />
<xs:element ref="Parser" /> <xs:element ref="Parser" />
<xs:element ref="Registry" /> <xs:element ref="ProjectContentRegistry" />
<xs:element ref="SchemeExtension" /> <xs:element ref="SchemeExtension" />
<xs:element ref="String" /> <xs:element ref="String" />
<xs:element ref="SyntaxMode" /> <xs:element ref="SyntaxMode" />
<xs:element ref="TaskBoundAdditionalLogger" /> <xs:element ref="TaskBoundAdditionalLogger" />
<xs:element ref="ToolbarItem" /> <xs:element ref="ToolbarItem" />
</xs:choice> </xs:choice>
<xs:attribute name="action" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Exclude" />
<xs:enumeration value="Disable" />
<xs:enumeration value="Nothing" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType> </xs:complexType>
<xs:element name="ComplexCondition" type="ComplexCondition"> <xs:element name="ComplexCondition" type="ComplexCondition">
<xs:annotation> <xs:annotation>
@ -267,6 +271,41 @@
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:element> </xs:element>
<xs:complexType name="CustomTool">
<xs:complexContent>
<xs:extension base="AbstractCodon">
<xs:attribute name="id" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>
ID used to identify the custom tool.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="class" use="required" type="xs:string">
<xs:annotation>
<xs:documentation>
Name of the ICustomTool class.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="fileNamePattern" use="optional" type="xs:string">
<xs:annotation>
<xs:documentation>
Regular expression that specifies the file names for which the custom tool
can be used. Example: "\.res(x|ources)$"
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CustomTool" type="CustomTool">
<xs:annotation>
<xs:documentation>
Creates CustomToolDescriptor objects.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="Debugger"> <xs:complexType name="Debugger">
<xs:complexContent> <xs:complexContent>
<xs:extension base="AbstractCodon"> <xs:extension base="AbstractCodon">
@ -386,17 +425,17 @@
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="type" use="optional"> <xs:attribute name="type" use="optional">
<xs:annotation>
<xs:documentation>
Type of the display binding (either "Primary" or "Secondary"). Default: "Primary".
</xs:documentation>
</xs:annotation>
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:enumeration value="Primary" /> <xs:enumeration value="Primary" />
<xs:enumeration value="Secondary" /> <xs:enumeration value="Secondary" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:annotation>
<xs:documentation>
Type of the display binding (either "Primary" or "Secondary"). Default: "Primary".
</xs:documentation>
</xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="fileNamePattern" use="optional" type="xs:string"> <xs:attribute name="fileNamePattern" use="optional" type="xs:string">
<xs:annotation> <xs:annotation>
@ -609,6 +648,14 @@
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="type" use="optional"> <xs:attribute name="type" use="optional">
<xs:annotation>
<xs:documentation>
This attribute must be one of these values:
Separator, CheckBox, Item=Command, Menu (=with subitems),
Builder (=class implementing ISubmenuBuilder).
Default: Command.
</xs:documentation>
</xs:annotation>
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:enumeration value="Separator" /> <xs:enumeration value="Separator" />
@ -619,14 +666,6 @@
<xs:enumeration value="Builder" /> <xs:enumeration value="Builder" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:annotation>
<xs:documentation>
This attribute must be one of these values:
Separator, CheckBox, Item=Command, Menu (=with subitems),
Builder (=class implementing ISubmenuBuilder).
Default: Command.
</xs:documentation>
</xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="loadclasslazy" use="optional" type="xs:string"> <xs:attribute name="loadclasslazy" use="optional" type="xs:string">
<xs:annotation> <xs:annotation>
@ -765,7 +804,7 @@
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:element> </xs:element>
<xs:complexType name="Registry"> <xs:complexType name="ProjectContentRegistry">
<xs:complexContent> <xs:complexContent>
<xs:extension base="AbstractCodon"> <xs:extension base="AbstractCodon">
<xs:attribute name="class" use="optional" type="xs:string"> <xs:attribute name="class" use="optional" type="xs:string">
@ -778,10 +817,10 @@
</xs:extension> </xs:extension>
</xs:complexContent> </xs:complexContent>
</xs:complexType> </xs:complexType>
<xs:element name="Registry" type="Registry"> <xs:element name="ProjectContentRegistry" type="ProjectContentRegistry">
<xs:annotation> <xs:annotation>
<xs:documentation> <xs:documentation>
Creates RegistryDescriptor objects for the parsing service. Creates ProjectContentRegistryDescriptor objects for the parsing service.
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
</xs:element> </xs:element>
@ -920,6 +959,12 @@
</xs:annotation> </xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="type" use="optional"> <xs:attribute name="type" use="optional">
<xs:annotation>
<xs:documentation>
This attribute must be one of these values:
Separator, CheckBox, Item, ComboBox, DropDownButton
</xs:documentation>
</xs:annotation>
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:enumeration value="Separator" /> <xs:enumeration value="Separator" />
@ -929,12 +974,6 @@
<xs:enumeration value="DropDownButton" /> <xs:enumeration value="DropDownButton" />
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:annotation>
<xs:documentation>
This attribute must be one of these values:
Separator, CheckBox, Item, ComboBox, DropDownButton
</xs:documentation>
</xs:annotation>
</xs:attribute> </xs:attribute>
<xs:attribute name="loadclasslazy" use="optional" type="xs:string"> <xs:attribute name="loadclasslazy" use="optional" type="xs:string">
<xs:annotation> <xs:annotation>

26
doc/technotes/ConditionList.html

@ -5,7 +5,7 @@
</head><body> </head><body>
<h1>Condition List</h1> <h1>Condition List</h1>
<p class="notice">This file was generated by the tool 'BuildAddinDocumentation'. <p class="notice">This file was generated by the tool 'BuildAddinDocumentation'.
It is based on SharpDevelop 2.1.0.1750.</p> It is based on SharpDevelop 2.1.0.2133.</p>
<ul> <ul>
<li><a href="#ActiveContentExtension">ActiveContentExtension</a> <li><a href="#ActiveContentExtension">ActiveContentExtension</a>
<li><a href="#ActiveViewContentUntitled">ActiveViewContentUntitled</a> <li><a href="#ActiveViewContentUntitled">ActiveViewContentUntitled</a>
@ -34,7 +34,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.ActiveContentExtensionConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.ActiveContentExtensionConditionEvaluator</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -56,7 +56,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.ActiveViewContentUntitledConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.ActiveViewContentUntitledConditionEvaluator</td>
</tr> </tr>
<tr> <tr>
<th colspan=2>Attributes:</td> <th colspan=2>Attributes:</td>
@ -80,7 +80,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.ActiveWindowStateConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.ActiveWindowStateConditionEvaluator</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -121,7 +121,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.CanNavigateBackConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.CanNavigateBackConditionEvaluator</td>
</tr> </tr>
</table> </table>
<p><span class="exampleTitle">Example: Test if the NavigationService can jump back.</span> <p><span class="exampleTitle">Example: Test if the NavigationService can jump back.</span>
@ -137,7 +137,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.CanNavigateForwardConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.CanNavigateForwardConditionEvaluator</td>
</tr> </tr>
</table> </table>
<p><span class="exampleTitle">Example: Test if the NavigationService can jump forward.</span> <p><span class="exampleTitle">Example: Test if the NavigationService can jump forward.</span>
@ -228,7 +228,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.DebuggerSupportsConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.Debugging.DebuggerSupportsConditionEvaluator</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -256,7 +256,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.IsProcessRunningConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.Debugging.IsProcessRunningConditionEvaluator</td>
</tr> </tr>
<tr> <tr>
<th colspan=2>Attributes:</td> <th colspan=2>Attributes:</td>
@ -292,7 +292,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.OpenWindowStateConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.OpenWindowStateConditionEvaluator</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -320,7 +320,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.ProjectActiveConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.ProjectActiveConditionEvaluator</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -373,7 +373,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.SolutionOpenConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.SolutionOpenConditionEvaluator</td>
</tr> </tr>
</table> </table>
<p><span class="exampleTitle">Example: Test if a solution is opened</span> <p><span class="exampleTitle">Example: Test if a solution is opened</span>
@ -410,7 +410,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.WindowActiveConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.WindowActiveConditionEvaluator</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -438,7 +438,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Condition name:</td> <th colspan=2>Condition name:</td>
<td>ICSharpCode.Core.WindowOpenConditionEvaluator</td> <td>ICSharpCode.SharpDevelop.WindowOpenConditionEvaluator</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>

76
doc/technotes/DoozerList.html

@ -5,10 +5,11 @@
</head><body> </head><body>
<h1>Doozer List</h1> <h1>Doozer List</h1>
<p class="notice">This file was generated by the tool 'BuildAddinDocumentation'. <p class="notice">This file was generated by the tool 'BuildAddinDocumentation'.
It is based on SharpDevelop 2.1.0.1750.</p> It is based on SharpDevelop 2.1.0.2133.</p>
<ul> <ul>
<li><a href="#Class">Class</a> <li><a href="#Class">Class</a>
<li><a href="#CodeCompletionBinding">CodeCompletionBinding</a> <li><a href="#CodeCompletionBinding">CodeCompletionBinding</a>
<li><a href="#CustomTool">CustomTool</a>
<li><a href="#Debugger">Debugger</a> <li><a href="#Debugger">Debugger</a>
<li><a href="#DialogPanel">DialogPanel</a> <li><a href="#DialogPanel">DialogPanel</a>
<li><a href="#Directory">Directory</a> <li><a href="#Directory">Directory</a>
@ -21,7 +22,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<li><a href="#MenuItem">MenuItem</a> <li><a href="#MenuItem">MenuItem</a>
<li><a href="#Pad">Pad</a> <li><a href="#Pad">Pad</a>
<li><a href="#Parser">Parser</a> <li><a href="#Parser">Parser</a>
<li><a href="#Registry">Registry</a> <li><a href="#ProjectContentRegistry">ProjectContentRegistry</a>
<li><a href="#SchemeExtension">SchemeExtension</a> <li><a href="#SchemeExtension">SchemeExtension</a>
<li><a href="#String">String</a> <li><a href="#String">String</a>
<li><a href="#SyntaxMode">SyntaxMode</a> <li><a href="#SyntaxMode">SyntaxMode</a>
@ -101,6 +102,59 @@ It is based on SharpDevelop 2.1.0.1750.</p>
</tr> </tr>
</table> </table>
</div> </div>
<div>
<h2><a name="CustomTool">CustomTool</a></h2>
<p>
Creates CustomToolDescriptor objects.
</p>
<table>
<tr>
<th colspan=2>Doozer name:</td>
<td>ICSharpCode.SharpDevelop.Project.CustomToolDoozer</td>
</tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr>
<th>id:</td>
<td class="userequired">required</td>
<td>
ID used to identify the custom tool.
</td>
</tr>
<tr>
<th>class:</td>
<td class="userequired">required</td>
<td>
Name of the ICustomTool class.
</td>
</tr>
<tr>
<th>fileNamePattern:</td>
<td class="userequired">optional</td>
<td>
Regular expression that specifies the file names for which the custom tool
can be used. Example: "\.res(x|ources)$"
</td>
</tr>
<tr><td colspan=3><hr></td></tr>
<tr>
<th colspan=2>Usage:</td>
<td>Only in /SharpDevelop/CustomTools</td>
</tr>
<tr>
<th colspan=2>Returns:</td>
<td>
An CustomToolDescriptor object that wraps a ICustomTool object.
</td>
</tr>
</table>
<p><span class="exampleTitle">Example: Strongly typed resource generator</span>
<br><pre>
&lt;Path name = "/SharpDevelop/CustomTools"&gt;
&lt;CustomTool id = "ResXFileCodeGenerator"
class = "ResourceEditor.ResourceCodeGeneratorTool"
fileNamePattern = "\.res(x|ources)$"/&gt;
&lt;/Path&gt;</pre></p>
</div>
<div> <div>
<h2><a name="Debugger">Debugger</a></h2> <h2><a name="Debugger">Debugger</a></h2>
<p> <p>
@ -109,7 +163,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.DebuggerDoozer</td> <td>ICSharpCode.SharpDevelop.Debugging.DebuggerDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -175,7 +229,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.DialogPanelDoozer</td> <td>ICSharpCode.SharpDevelop.DialogPanelDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -219,7 +273,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.DirectoryDoozer</td> <td>ICSharpCode.SharpDevelop.DirectoryDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -254,7 +308,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.DisplayBindingDoozer</td> <td>ICSharpCode.SharpDevelop.DisplayBindingDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -490,7 +544,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.LanguageBindingDoozer</td> <td>ICSharpCode.SharpDevelop.LanguageBindingDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -631,7 +685,7 @@ It is based on SharpDevelop 2.1.0.1750.</p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.Core.PadDoozer</td> <td>ICSharpCode.SharpDevelop.PadDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>
@ -732,14 +786,14 @@ It is based on SharpDevelop 2.1.0.1750.</p>
</table> </table>
</div> </div>
<div> <div>
<h2><a name="Registry">Registry</a></h2> <h2><a name="ProjectContentRegistry">ProjectContentRegistry</a></h2>
<p> <p>
Creates RegistryDescriptor objects for the parsing service. Creates ProjectContentRegistryDescriptor objects for the parsing service.
</p> </p>
<table> <table>
<tr> <tr>
<th colspan=2>Doozer name:</td> <th colspan=2>Doozer name:</td>
<td>ICSharpCode.SharpDevelop.RegistryDoozer</td> <td>ICSharpCode.SharpDevelop.ProjectContentRegistryDoozer</td>
</tr> </tr>
<tr><td colspan=3><hr><h3>Attributes:</h3></td></tr> <tr><td colspan=3><hr><h3>Attributes:</h3></td></tr>
<tr> <tr>

11
src/Tools/BuildAddinDocumentation/MainClass.cs

@ -164,7 +164,7 @@ namespace BuildAddinDocumentation
foreach (string child in doozer["children"].GetAttribute("childTypes").Split(';')) { foreach (string child in doozer["children"].GetAttribute("childTypes").Split(';')) {
CreateChild(choice, "element").SetAttribute("ref", child); CreateChild(choice, "element").SetAttribute("ref", child);
} }
CreateChild(choice, "element").SetAttribute("ref", "Include"); CreateChild(choice, "element").SetAttribute("ref", "Include");
} }
foreach (XmlElement doozerChild in doozer) { foreach (XmlElement doozerChild in doozer) {
if (doozerChild.Name != "attribute") if (doozerChild.Name != "attribute")
@ -175,7 +175,13 @@ namespace BuildAddinDocumentation
e4.SetAttribute("use", "required"); e4.SetAttribute("use", "required");
else else
e4.SetAttribute("use", "optional"); e4.SetAttribute("use", "optional");
XmlElement e5, e6; XmlElement e5, e6;
e5 = CreateChild(e4, "annotation");
e6 = CreateChild(e5, "documentation");
e6.InnerXml = XmlToHtml(doozerChild.InnerXml).Replace(" ", "\t");
if (!doozerChild.HasAttribute("enum")) { if (!doozerChild.HasAttribute("enum")) {
e4.SetAttribute("type", "xs:string"); e4.SetAttribute("type", "xs:string");
} else { } else {
@ -186,9 +192,6 @@ namespace BuildAddinDocumentation
CreateChild(e6, "enumeration").SetAttribute("value", val); CreateChild(e6, "enumeration").SetAttribute("value", val);
} }
} }
e5 = CreateChild(e4, "annotation");
e6 = CreateChild(e5, "documentation");
e6.InnerXml = XmlToHtml(doozerChild.InnerXml).Replace(" ", "\t");
} }
e = CreateChild(doc.DocumentElement, "element"); e = CreateChild(doc.DocumentElement, "element");
e.SetAttribute("name", doozer.GetAttribute("shortname")); e.SetAttribute("name", doozer.GetAttribute("shortname"));

Loading…
Cancel
Save