1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- Schema file written by PDE -->
3 <schema targetNamespace="org.eclipse.linuxtools.tmf.core" xmlns="http://www.w3.org/2001/XMLSchema">
6 <meta.schema plugin="org.eclipse.linuxtools.tmf.core" id="tracetype" name="TMF Trace Type"/>
9 This extension point is used to contribute new trace types or experiment types to the generic components of the TMF framework.
13 <element name="extension">
20 <choice minOccurs="0" maxOccurs="unbounded">
21 <element ref="category"/>
23 <element ref="experiment"/>
25 <attribute name="point" type="string" use="required">
28 a fully qualified identifier of the target extension point
32 <attribute name="id" type="string">
35 an optional identifier of the extension instance
39 <attribute name="name" type="string">
42 an optional name of the extension instance
45 <meta.attribute translatable="true"/>
52 <element name="category">
54 <attribute name="id" type="string" use="required">
57 a unique name that will be used to identify this category
61 <attribute name="name" type="string" use="required">
64 a translatable name that will be used in the UI for this category
73 <attribute name="id" type="string" use="required">
76 The unique ID that identifies this trace type.
80 <attribute name="name" type="string" use="required">
83 The type name as it is displayed to the end user.
87 <attribute name="category" type="string">
90 An optional attribute that is composed of the category ID. The referenced category must be declared in a corresponding category element.
93 <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/category/@id"/>
97 <attribute name="trace_type" type="string" use="required">
100 The fully qualified name of a class that implements the <samp>ITmfTrace</samp> interface.
103 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.trace.ITmfTrace"/>
107 <attribute name="event_type" type="string" use="required">
110 The fully qualified name of a class that implements the <samp>ITmfEvent</samp> interface
113 <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.event.ITmfEvent"/>
117 <attribute name="isDirectory" type="boolean" use="default" value="false">
120 Indicates whether the trace type is for traces that are directories (true) or files (false)
127 <element name="experiment">
129 <attribute name="id" type="string" use="required">
132 The unique ID that identifies this experiment type.
136 <attribute name="name" type="string" use="required">
139 The type name as it is displayed to the end user.
143 <attribute name="category" type="string">
146 An optional attribute that is composed of the category ID. The referenced category must be declared in a corresponding category element.
149 <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/category/@id"/>
153 <attribute name="experiment_type" type="string" use="required">
156 The fully qualified name of a class that extends the <samp>TmfExperiment</samp> class
159 <meta.attribute kind="java" basedOn="org.eclipse.tracecompass.tmf.core.trace.experiment.TmfExperiment:"/>
168 <meta.section type="since"/>
177 <meta.section type="examples"/>
180 Example use of the tmftracetype extension point for generic CTF traces (CtfTmfTrace) and a category-less generic experiment type:
183 point="org.eclipse.linuxtools.tmf.core.tracetype">
185 id="org.eclipse.linuxtools.tmf.core.category.ctf"
186 name="Common Trace Format">
189 category="org.eclipse.linuxtools.tmf.core.category.ctf"
190 event_type="org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfEvent"
191 id="org.eclipse.linuxtools.tmf.core.type.ctf"
192 name="Generic CTF Trace"
193 trace_type="org.eclipse.linuxtools.tmf.core.ctfadaptor.CtfTmfTrace">
196 id="org.eclipse.linuxtools.tmf.core.experiment.generic"
197 name="Generic experiment"
198 experiment_type="org.eclipse.linuxtools.tmf.core.trace.TmfExperiment">
206 <meta.section type="apiinfo"/>
209 Trace types using this extension point have to specify the two following classes:
211 * trace_type: Has to implement ITmfTrace. It's *highly* recommend to extend 'TmfTrace' to get default implementations.
212 * event_type: Has to implement ITmfEvent. Once again, TmfEvent provides a reference implementation that should work in most cases.
214 Experiment types using this extension point have to specify the following class:
216 * experiment_type: Has to extend TmfExperiment. This class is the default experiment class, to be used to analyse sets of traces, where each trace is treated equally.
223 <meta.section type="copyright"/>
226 Copyright (c) 2014 Ericsson
228 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>