| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.wst.sse.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.wst.sse.ui" id="completionProposalCategoriesConfiguration" name="Completion Proposal Categories Configuration"/> |
| </appInfo> |
| <documentation> |
| This extension point allows the contribution of completion proposal category configuration readers. These are used to determine which completion categories contributed by <tt>org.eclipse.wst.sse.ui.completionProposal</tt> extensions are turned on by preference (either programatic or user). If a completion proposal category configuration reader exists for a given content type the reader will be consulted to determine which completion categories to use when generating completion proposals. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="name" /> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="categoriesConfiguration" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a fully qualified identifier of the target extension point |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| an optional identifier of the extension instance |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| an optional name of the extension instance |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="categoriesConfiguration"> |
| <complexType> |
| <attribute name="contentTypeID" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The ID of the content type |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string"> |
| <annotation> |
| <documentation> |
| The class that impliments the contributed completion proposal categories configuration. The class must be public and impliment either <code>org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationReader</code> or <code>org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationWriter</code>. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn=":org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationReader"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <p>The following are examples of a SSE completion proposal computer contribution:</p> |
| <pre><extension |
| point="org.eclipse.wst.sse.ui.completionProposalCategoriesConfiguration"> |
| <categoriesConfiguration |
| class="org.eclipse.wst.xml.ui.internal.preferences.XMLCompletionProposalCategoriesConfiguration" |
| contentTypeID="org.eclipse.core.runtime.xml"> |
| </categoriesConfiguration> |
| </extension> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiinfo"/> |
| </appInfo> |
| <documentation> |
| <p>The contributed class must impliment either <code>org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationReader</code> or <code>org.eclipse.wst.sse.ui.preferences.ICompletionProposalCategoriesConfigurationWriter</code>.</p> |
| |
| <p>A reader implimentation should be used if the preferences can not be set by the user, if the preferences will be modified by the user then a writer implimentation should be used.</p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| <p>See <code>org.eclipse.wst.sse.ui.preferences.AbstractCompletionProposalCategoriesConfiguration</code> which if implimented by an adopter provides a usefull framework for reading and writing completion proposal categories configuration information to a preference store.</p> |
| |
| <p>For a useful user interface for modifing completion proposal categories configurations see <code>org.eclipse.wst.sse.ui.preferences.CodeAssistCyclingConfigurationBlock</code> which can easly be included on a preference page.</p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2010 IBM Corporation and others. |
| All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |