| <?xml version='1.0' encoding='UTF-8'?>
|
| <!-- Schema file written by PDE -->
|
| <schema targetNamespace="org.eclipse.ui.editors">
|
| <annotation>
|
| <appInfo>
|
| <meta.schema plugin="org.eclipse.ui.editors" id="templates" name="Editor Template"/>
|
| </appInfo>
|
| <documentation>
|
| Templates are snippets of text or code which help the user enter reoccurring patterns into a text editor. Templates may contain variables which are resolved in the context where the template is inserted.
|
| </documentation>
|
| </annotation>
|
|
|
| <element name="extension">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name"/>
|
| </appInfo>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="template" minOccurs="0" maxOccurs="unbounded"/>
|
| <element ref="resolver" minOccurs="0" maxOccurs="unbounded"/>
|
| <element ref="contextType" minOccurs="0" maxOccurs="unbounded"/>
|
| <element ref="include" minOccurs="0" maxOccurs="unbounded"/>
|
| </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>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="contextType">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name"/>
|
| </appInfo>
|
| <documentation>
|
| A context type defines a context within which templates are evaluated. A context type uses its resolvers to resolve a template.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Unambiguously identifies this context type. Use of a qualified name is recommended.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="class" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| A subclass of <code>org.eclipse.jface.text.templates.TemplateContextType</code>.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="java"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string">
|
| <annotation>
|
| <documentation>
|
| The display name of this context.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="resolver">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name" icon="icon"/>
|
| </appInfo>
|
| <documentation>
|
| A template variable resolver can resolve a template variable in a certain context.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="contextTypeId" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| References the context type that this resolver is contributed to.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="type" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| The type of this variable resolver. This property will be set on the resolver once it gets created.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="class" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| A subclass of <code>org.eclipse.jface.text.templates.TemplateVariableResolver</code>.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="java"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="description" type="string">
|
| <annotation>
|
| <documentation>
|
| The description of this variable resolver. This property will be set on the resolver once it gets created.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string">
|
| <annotation>
|
| <documentation>
|
| The display name of this resolver.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="icon" type="string">
|
| <annotation>
|
| <documentation>
|
| An icon that may be displayed in the user interface.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="resource"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="template">
|
| <annotation>
|
| <appInfo>
|
| <meta.element labelAttribute="name" icon="icon"/>
|
| </appInfo>
|
| <documentation>
|
| A template is a snippet of code or text that will be evaluated in a given context. Variables which will be resolved in that context can be specified using the <tt>${variable_type}</tt> notation.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="pattern"/>
|
| </sequence>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Unambiguously identifies this template. Use of a qualified name is recommended.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="contextTypeId" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| References the context type that this template is contributed to.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| The internationalizable name of the template which will show up in the UI, such as in template proposals.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="description" type="string">
|
| <annotation>
|
| <documentation>
|
| The description of this template.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute translatable="true"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="icon" type="string">
|
| <annotation>
|
| <documentation>
|
| An icon that may be displayed in the UI for this template, for example in content assist proposals.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="resource"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="pattern" type="string">
|
| <annotation>
|
| <documentation>
|
| The template pattern.
|
| </documentation>
|
| </annotation>
|
| </element>
|
|
|
| <element name="include">
|
| <annotation>
|
| <documentation>
|
| A collection of templates encoded as XML can be included as a whole via this element.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="file" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| The XML file to import templates from.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="resource"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="translations" type="string">
|
| <annotation>
|
| <documentation>
|
| An optional properties file with resources for the templates specified in <tt>file</tt>.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="resource"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="since"/>
|
| </appInfo>
|
| <documentation>
|
| 3.0
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="examples"/>
|
| </appInfo>
|
| <documentation>
|
| <pre> |
| <extension |
| point="org.eclipse.ui.examples.templateeditor.template"> |
| <template |
| name="javac" |
| context="ant" |
| editorId="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor" |
| description="%ant.tasks.javac.description"> |
| <pattern> |
| <javac srcdir="${src}" |
| destdir="${dst}" |
| classpath="${classpath}" |
| debug="${debug}"/> |
| </pattern> |
| </template> |
| |
| <resolver |
| context="ant" |
| type="src" |
| editorId="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor" |
| class="org.eclipse.ui.examples.templateeditor.editors.AntVariableResolver"> |
| </resolver> |
| |
| <resolver |
| context="ant" |
| type="dst" |
| editorId="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor" |
| class="org.eclipse.ui.examples.templateeditor.editors.AntVariableResolver"> |
| </resolver> |
| </extension> |
| </pre>
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="apiInfo"/>
|
| </appInfo>
|
| <documentation>
|
| See the <code>org.eclipse.jface.text.templates</code> package in the <tt>org.eclipse.text</tt> plug-in for the relevant API.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="implementation"/>
|
| </appInfo>
|
| <documentation>
|
| See the <code>org.eclipse.jface.text.templates</code> package in the <tt>org.eclipse.text</tt> plug-in for the relevant classes.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="copyright"/>
|
| </appInfo>
|
| <documentation>
|
| Copyright (c) 2001, 2004 IBM Corporation and others.<br> |
| All rights reserved. This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>
|
| </documentation>
|
| </annotation>
|
|
|
| </schema>
|