| <?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="completionProposal" name="SSE Completion Proposal"/> |
| </appInfo> |
| <documentation> |
| This extension point allows the contribution of SSE completion proposal computers and categories to participate in the content assist process of SSE editors. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="name" /> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <choice minOccurs="0" maxOccurs="unbounded"> |
| <element ref="proposalCategory" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="proposalComputer" minOccurs="0" maxOccurs="unbounded"/> |
| <element ref="proposalComputerExtendedActivation" minOccurs="0" maxOccurs="unbounded"/> |
| </choice> |
| </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="proposalCategory"> |
| <annotation> |
| <documentation> |
| A proposal category contribution defines categories of proposals used to group them in the UI. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The unique ID of the proposal category |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| The name of the proposal category. If a name is not provided the proposal category ID will be used as the name. |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| An optional icon of the category, which can be displayed in the user preferences |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="resource"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="proposalComputer"> |
| <annotation> |
| <documentation> |
| A proposal computer contribution which is associated with at least one content type. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="contentType" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The unique ID of the proposal computer. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| The human readable name of the proposal computer. If none is given the ID of the proposal computer will be used. |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| An optional icon of the computer, which will be used when creating the proposals suggested by this computer. This preference can be programicly overwriten by the implimentation of <code>org.eclipse.wst.sse.ui.internal.provisional.contentassist.ICompletionProposalComputer</code> specified by the <tt>class</tt> attribute. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="resource"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The class that implements the contributed computer. The |
| class must be public and implement |
| <code>org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer</code> |
| and must have a public 0-argument constructor. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn=":org.eclipse.wst.sse.ui.contentassist.ICompletionProposalComputer"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="activate" type="boolean" use="default" value="false"> |
| <annotation> |
| <documentation> |
| If the attribute is set to <code>true</code> it will force this plug-in to be loaded on content assist invocation |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="categoryId" type="string" use="default" value="org.eclipse.wst.sse.ui.defaultProposalCategory"> |
| <annotation> |
| <documentation> |
| The id of a <tt>proposalCategory</tt> that this proposal computer should be a part of |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.wst.sse.ui.completionProposal/proposalCategory/@id"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="contentType"> |
| <annotation> |
| <documentation> |
| A SSE content type. If no partition types are provided then computer will be associated with all partition types in the content type. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="partitionType" minOccurs="0" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" 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> |
| </complexType> |
| </element> |
| |
| <element name="partitionType"> |
| <annotation> |
| <documentation> |
| A SSE partition type. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The ID of the partition type. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="autoActivationDelegate" type="string"> |
| <annotation> |
| <documentation> |
| Identifies a class that is responsible for identifying auto-activation characters for the associated content and partition type. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.wst.sse.ui.contentassist.AutoActivationDelegate:"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="proposalComputerExtendedActivation"> |
| <annotation> |
| <documentation> |
| Used to extended the activation context of an already existing proposal computer. Use this if there is a plugin A that has defined a proposal comptuer that should be activated for a content type defined in plugin B. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="contentType" minOccurs="1" maxOccurs="unbounded"/> |
| </sequence> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The ID of the <tt>proposalComputer</tt> whos activation context should be extended. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.wst.sse.ui.completionProposal/proposalComputer/@id"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <p>The following are examples of SSE completion proposal contributions:</p> |
| |
| <b>Plugin A:</b><pre><extension point="org.eclipse.wst.sse.ui.completionProposal"> |
| <proposalCategory |
| icon="icons/full/obj16/tag-macro.gif" |
| id="org.eclipse.wst.xml.ui.proposalCategory.xmlTemplates" |
| name="XML Templates"> |
| </proposalCategory> |
| <proposalComputer |
| activate="false" |
| categoryId="org.eclipse.wst.xml.ui.proposalCategory.xmlTemplates" |
| class="org.eclipse.wst.xml.ui.internal.contentassist.XMLTemplatesCompletionProposalComputer" |
| id="org.eclipse.wst.xml.ui.proposalComputer.xmlTemplates"> |
| <contentType |
| id="org.eclipse.core.runtime.xml"> |
| </contentType> |
| </proposalComputer> |
| </extension></pre> |
| <b>Plugin B:</b> (extending the activation context of an existing computer)<pre><extension point="org.eclipse.wst.sse.ui.completionProposal"> |
| <proposalComputerExtendedActivation |
| id="org.eclipse.wst.xml.ui.proposalCategory.xmlTemplates"> |
| <contentType |
| id="org.eclipse.jst.jsp.core.jspsource"> |
| <partitionType |
| id="org.eclipse.wst.xml.XML_DEFAULT"> |
| </partitionType> |
| </contentType> |
| </proposalComputerExtendedActivation> |
| </extension></pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiinfo"/> |
| </appInfo> |
| <documentation> |
| The contributed class must impliment <code>org.eclipse.wst.sse.ui.internal.provisional.contentassist.ICompletionProposalComputer</code> |
| </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> |