1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- Schema file written by PDE -->
3 <schema targetNamespace="org.eclipse.linuxtools.tmf.ui" xmlns="http://www.w3.org/2001/XMLSchema">
6 <meta.schema plugin="org.eclipse.linuxtools.tmf.ui" id="tracetypeui" name="TMF Trace Type UI Elements"/>
9 This extension point is used to assign UI elements to a trace type defined by org.eclipse.linuxtools.tmf.core.tracetype.
13 <element name="extension">
20 <choice minOccurs="0" maxOccurs="unbounded">
22 <element ref="experiment"/>
24 <attribute name="point" type="string" use="required">
27 a fully qualified identifier of the target extension point
31 <attribute name="id" type="string">
34 an optional identifier of the extension instance
38 <attribute name="name" type="string">
41 an optional name of the extension instance
44 <meta.attribute translatable="true"/>
54 <meta.element labelAttribute="tracetype"/>
59 <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/>
60 <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/>
61 <element ref="eventTableColumns" minOccurs="0" maxOccurs="1"/>
63 <attribute name="tracetype" type="string" use="required">
66 The unique ID that identifies this trace type.
69 <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/type/@id"/>
73 <attribute name="icon" type="string">
76 The icon associated to the trace type.
79 <meta.attribute kind="resource"/>
86 <element name="experiment">
89 <meta.element labelAttribute="tracetype"/>
94 <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/>
95 <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/>
97 <attribute name="tracetype" type="string" use="required">
100 The unique ID that identifies this experiment type.
103 <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/experiment/@id"/>
107 <attribute name="icon" type="string">
110 The icon associated to the experiment type.
113 <meta.attribute kind="resource"/>
120 <element name="eventsTableType">
123 The events table to use for this trace type.
124 If omitted, the default events table will be used.
128 <attribute name="class" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable">
131 The fully qualified name of a class that extends <samp>TmfEventsTable</samp> .
132 If empty, the default events table will be used.
135 <meta.attribute kind="java" basedOn="org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable:"/>
142 <element name="defaultEditor">
145 The default editor to use for this trace type.
146 If omitted, the default events editor will be used.
150 <attribute name="id" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.editors.events">
153 The id of the editor to use for this trace type.
154 If empty, the default events editor will be used.
161 <element name="eventTableColumns">
164 The event table columns to use with this trace type.
165 If omitted, the default columns will be used.
167 If the "eventsTableType" element is present, we will first try to provide a table of that type (ignoring the contents of "eventTableColumns"). If the requested table type cannot be provided, then we will fall-back to using a default table with the columns defined in "eventTableColumns".
171 <attribute name="class" type="string">
174 The fully qualified name of a class that implements <samp>ITmfEventTableColumns</samp> .
175 If empty, the default columns will be used.
178 <meta.attribute kind="java" basedOn=":org.eclipse.linuxtools.tmf.ui.viewers.events.columns.ITmfEventTableColumns"/>
187 <meta.section type="since"/>
196 <meta.section type="examples"/>
199 Example use of the extension point: the GDB trace type, which specifies a custom icon and a custom editor, also the generic experiment, which specifies a custom icon. The 'type/tracetype' element has to point to an existing tmf.core.tracetype extension!
202 point="org.eclipse.linuxtools.tmf.ui.tracetypeui">
204 icon="icons/obj16/gdb_icon16.png"
205 tracetype="org.eclipse.linuxtools.gdbtrace.core.type.gdb">
207 class="org.eclipse.linuxtools.internal.gdbtrace.ui.views.events.GdbEventsTable">
208 </eventsTableType>
211 tracetype="org.eclipse.linuxtools.tmf.core.experiment.generic"
212 icon="icons/elcl16/experiment.gif">
213 </experiment_type>
220 <meta.section type="apiinfo"/>
223 The 'eventsTableType/class' element has to extend TmfEventsTable. It is optional however ; if it is not specified, the default TmfEventsTable will be used.
229 <meta.section type="implementation"/>
232 [Enter information about supplied implementation of this extension point.]
238 <meta.section type="copyright"/>
241 Copyright (c) 2014 Ericsson
243 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>