blob: 98e5e1556f94bffcf8e8db40676b8dd78da92560 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<schema targetNamespace="org.eclipse.statet.ltk" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.statet.ltk.ui"
id="AdvancedContentAssist"
name="Point to register categories and computers for advanced content assists"/>
</appInfo>
<documentation>
This extension-point allows to extend the content assistant of the editors.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appInfo>
<meta.element />
</appInfo>
</annotation>
<complexType>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="category"/>
<element ref="computer"/>
</choice>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
The id of the extension.
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="category">
<annotation>
<documentation>
Defines a new category for content assistant proposals.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The id of this category.
</documentation>
<appInfo>
<meta.attribute kind="identifier"/>
</appInfo>
</annotation>
</attribute>
<attribute name="icon" type="string">
<annotation>
<documentation>
The icon of this category.
</documentation>
<appInfo>
<meta.attribute kind="resource"/>
</appInfo>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
The name of this category.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="computer">
<annotation>
<documentation>
Adds a computer for content assistant proposals.
</documentation>
</annotation>
<complexType>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="partition"/>
</choice>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The id of this computer.
</documentation>
</annotation>
</attribute>
<attribute name="contentTypeId" type="string" use="required">
<annotation>
<documentation>
The id of the content type this computer will be loaded for.
</documentation>
<appInfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.core.contenttype.contentTypes/content-type/@id"/>
</appInfo>
</annotation>
</attribute>
<attribute name="categoryId" type="string" use="required">
<annotation>
<documentation>
The id of the content assist category this computer belongs to.
</documentation>
<appInfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.statet.ltk.AdvancedContentAssist/category/@id"/>
</appInfo>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The implementation of the computer.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn=":org.eclipse.statet.ltk.ui.sourceediting.assist.ContentAssistComputer"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="partition">
<annotation>
<documentation>
Activates the computer for an partition type
</documentation>
</annotation>
<complexType>
<attribute name="partitionType" type="string" use="required">
<annotation>
<documentation>
The id/key of the partition type.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
0.9
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2008, 2021 Stephan Wahlbrink and others.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
which is available at https://www.apache.org/licenses/LICENSE-2.0.
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
Contributors:
Stephan Wahlbrink &lt;sw@wahlbrink.eu&gt; - initial API and implementation
</documentation>
</annotation>
</schema>