| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.wst.sse.ui"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.wst.sse.ui" id="sourcevalidation" name="sourcevalidation"/> |
| </appInfo> |
| <documentation> |
| This extension point is provided to allow clients to contribute a content/partition dependent as-you-type validator for the SSE Editor via extension point. |
| |
| Required plugins are: |
| org.eclipse.wst.sse.ui |
| org.eclipse.wst.validation |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="validator"/> |
| </sequence> |
| <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> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="validator"> |
| <complexType> |
| <sequence> |
| <element ref="contentTypeIdentifier" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="scope" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="partitionType"> |
| <complexType> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="contentTypeIdentifier"> |
| <complexType> |
| <sequence> |
| <element ref="partitionType" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| WTP 1.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| Example demonstrating how HTMLValidator contributes to as-you-type validation in the source editor. |
| |
| <extension |
| point="org.eclipse.wst.sse.ui.extensions.sourcevalidation"> |
| <validator |
| scope="total" |
| class="org.eclipse.wst.validation.html.HTMLValidator" |
| id="org.eclipse.wst.validation.htmlsourcevalidator"> |
| <contentTypeIdentifier |
| id="org.eclipse.wst.html.core.htmlsource"> |
| <partitionType |
| id="org.eclipse.wst.html.HTML_DEFAULT"> |
| </partitionType> |
| </contentTypeIdentifier> |
| <contentTypeIdentifier |
| id="org.eclipse.jst.jsp.core.jspsource"> |
| <partitionType |
| id="org.eclipse.wst.html.HTML_DEFAULT"> |
| </partitionType> |
| </contentTypeIdentifier> |
| </validator> |
| </extension> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| Example demonstrating how HTMLValidator contributes to as-you-type validation in the source editor. |
| |
| <pre> |
| <extension |
| point="org.eclipse.wst.sse.ui.extensions.sourcevalidation"> |
| <validator |
| scope="total" |
| class="org.eclipse.wst.validation.html.HTMLValidator" |
| id="org.eclipse.wst.validation.htmlsourcevalidator"> |
| <contentTypeIdentifier |
| id="org.eclipse.wst.html.core.htmlsource"> |
| <partitionType |
| id="org.eclipse.wst.html.HTML_DEFAULT"> |
| </partitionType> |
| </contentTypeIdentifier> |
| <contentTypeIdentifier |
| id="org.eclipse.jst.jsp.core.jspsource"> |
| <partitionType |
| id="org.eclipse.wst.html.HTML_DEFAULT"> |
| </partitionType> |
| </contentTypeIdentifier> |
| </validator> |
| </extension> |
| </pre> |
| |
| <ul> |
| <li> |
| <b>extension</b> |
| <ul> |
| <li> |
| <b>point</b> |
| - org.eclipse.wst.sse.ui.extensions.sourcevalidation |
| </li> |
| </ul> |
| </li> |
| |
| <li> |
| <b>validator</b> |
| <ul> |
| <li> |
| <b>scope</b> - [total | partial] describes what |
| area of the document is validated each |
| time validate is called on the IValidator |
| (for performance purposes) |
| </li> |
| <li><b>class</b> - the implementation class of IValidator</li> |
| <li><b>id</b> - the unique id for the validator being contributed</li> |
| </ul> |
| </li> |
| |
| <li> |
| <b>contentTypeIdentifier</b> |
| <ul> |
| <li> |
| <b>id</b> - the id of an IContentType on which this |
| IValidator can operate. |
| This string is contributed via the |
| <code>org.eclipse.core.runtime.ContentTypes</code> |
| extension point. |
| </li> |
| </ul> |
| </li> |
| <li> |
| <b>partition</b> |
| <ul> |
| <li><b>id</b> - the id of a PartitionType |
| <code>org.eclipse.jface.text.ITypedRegion#getType()</code> |
| on which this as-you-type IValidator can operate. |
| These partition type definitions may be found in: |
| |
| <code>org.eclipse.wst.sse.core.text.IStructuredPartitionTypes</code> |
| <code>org.eclipse.wst.xml.core.text.IXMLPartitionTypes</code> |
| <code>org.eclipse.wst.html.core.text.IHTMLPartitionTypes</code> |
| <code>org.eclipse.jst.jsp.core.text.IJSPPartitionTypes</code> |
| <code>org.eclipse.wst.dtd.core.text.IDTDPartitionTypes</code> |
| <code>org.eclipse.wst.css.core.text.ICSSPartitionTypes</code> |
| </li> |
| </ul> |
| </li> |
| |
| </ul> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| Currently there is no supplied implementation for IValidator. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| </schema> |