blob: 8a6bde844600dd5f4b52de8cdd2a1a5b96dd44f7 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.tracecompass.tmf.core" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.tracecompass.tmf.core" id="org.eclipse.tracecompass.tmf.core.custom.trace" name="Custom Trace"/>
</appinfo>
<documentation>
This extension point is used to contribute custom trace types so that they are available automatically without the need to be imported by the user.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<sequence minOccurs="1" maxOccurs="unbounded">
<element ref="customTrace"/>
</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="customTrace">
<annotation>
<appInfo>
<meta.element labelAttribute="file"/>
</appInfo>
</annotation>
<complexType>
<attribute name="file" type="string" use="required">
<annotation>
<documentation>
The path to the XML file describing the text trace.
</documentation>
<appinfo>
<meta.attribute kind="resource"/>
</appinfo>
</annotation>
</attribute>
<attribute name="traceContentType" use="required">
<annotation>
<documentation>
The type of content that the trace will have (XML or Text)
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="xml">
</enumeration>
<enumeration value="text">
</enumeration>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
Trace Compass 2.2
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
&lt;p&gt;For example, a custom text parser can be exported using the &quot;Manage Custom Parser&quot; dialog, then included in a plug-in so that it is automatically loaded without the user having to import it manually. The path to XML file describing the parser is specified in the extension point.
&lt;/p&gt;
&lt;pre&gt;
&lt;extension
point=&quot;org.eclipse.tracecompass.tmf.core.custom.trace&quot;&gt;
&lt;customtrace
file=&quot;parsers/customTextDefinition.xml&quot;&gt;
&lt;/customtrace&gt;
&lt;/extension&gt;
&lt;/pre&gt;
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2016 Ericsson
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at &amp;lt;a href=&amp;quot;https://www.eclipse.org/legal/epl-2.0/&amp;quot;&amp;gt;https://www.eclipse.org/legal/epl-2.0/&amp;lt;/a&amp;gt;
SPDX-License-Identifier: EPL-2.0
</documentation>
</annotation>
</schema>