blob: be23b08d5e023ae32e944c16a7ec7ba692a1d776 [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 id="ModelAdapters"
plugin="org.eclipse.statet.ltk.core"
name="LTK Model Adapters"/>
</appinfo>
<documentation>
This extension-point allows to plug-in adapters for model types.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="adapterClass"/>
<element ref="adapterFactory"/>
</choice>
<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="adapterClass">
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="adapter"/>
</choice>
<attribute name="modelTypeId" type="string" use="required">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.statet.ltk.ModelTypes/modelType/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The fully qualified name of the class implementing the adapter(s).
</documentation>
<appinfo>
<meta.attribute kind="java"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="adapterFactory">
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="adapter"/>
</choice>
<attribute name="modelTypeId" type="string" use="required">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.statet.ltk.ModelTypes/modelType/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The fully qualified name of the factory class providing the adapter(s).
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn=":org.eclipse.core.runtime.IAdapterFactory"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="adapter">
<complexType>
<attribute name="type" type="string" use="required">
<annotation>
<documentation>
The fully qualified name of a class that the adapter(s) can adapt to.
</documentation>
<appinfo>
<meta.attribute kind="java"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
0.4
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2011, 2020 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>