| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.linuxtools.tmf.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.linuxtools.tmf.ui" id="tracetypeui" name="TMF Trace Type UI Elements"/> |
| </appinfo> |
| <documentation> |
| This extension point is used to assign UI elements to a trace type defined by org.eclipse.linuxtools.tmf.core.tracetype. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <choice minOccurs="0" maxOccurs="unbounded"> |
| <element ref="type"/> |
| <element ref="experiment"/> |
| </choice> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a fully qualified identifier of the target extension point |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| an optional identifier of the extension instance |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| an optional name of the extension instance |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="type"> |
| <annotation> |
| <appinfo> |
| <meta.element labelAttribute="tracetype"/> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/> |
| <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/> |
| <element ref="perspective" minOccurs="0" maxOccurs="1"/> |
| </sequence> |
| <attribute name="tracetype" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The unique ID that identifies this trace type. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/type/@id"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| The icon associated to the trace type. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="experiment"> |
| <annotation> |
| <appinfo> |
| <meta.element labelAttribute="tracetype"/> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/> |
| <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/> |
| <element ref="perspective" minOccurs="0" maxOccurs="1"/> |
| </sequence> |
| <attribute name="tracetype" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The unique ID that identifies this experiment type. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/experiment/@id"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| The icon associated to the experiment type. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="resource"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="eventsTableType"> |
| <annotation> |
| <documentation> |
| The events table to use for this trace type. |
| If omitted, the default events table will be used. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="class" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable"> |
| <annotation> |
| <documentation> |
| The fully qualified name of a class that extends <samp>TmfEventsTable</samp> . |
| If empty, the default events table will be used. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.tracecompass.tmf.ui.viewers.events.TmfEventsTable:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="useTraceAspects" type="boolean"> |
| <annotation> |
| <documentation> |
| Set this flag to true, if the aspects for the table columns are provided by the <samp>ITmfTrace</samp>. If the aspects is supplied by the events table extension, set this flag to false. Default value is false. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="defaultEditor"> |
| <annotation> |
| <documentation> |
| The default editor to use for this trace type. |
| If omitted, the default events editor will be used. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.editors.events"> |
| <annotation> |
| <documentation> |
| The id of the editor to use for this trace type. |
| If empty, the default events editor will be used. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="perspective"> |
| <annotation> |
| <documentation> |
| The associated perspective to use for this trace type. |
| If omitted, the current perspective will be used. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.perspective"> |
| <annotation> |
| <documentation> |
| The associated perspective to use for this trace type. |
| If empty, the current perspective will be used. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 3.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| <p> |
| 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! |
| </p> |
| <pre> |
| <extension |
| point="org.eclipse.linuxtools.tmf.ui.tracetypeui"> |
| <type |
| icon="icons/obj16/gdb_icon16.png" |
| tracetype="org.eclipse.linuxtools.gdbtrace.core.type.gdb"> |
| <eventsTableType |
| class="org.eclipse.linuxtools.internal.gdbtrace.ui.views.events.GdbEventsTable"> |
| </eventsTableType> |
| </type> |
| <experiment_type |
| tracetype="org.eclipse.linuxtools.tmf.core.experiment.generic" |
| icon="icons/elcl16/experiment.gif"> |
| </experiment_type> |
| </extension> |
| |
| public class GdbEventsTable extends TmfEventsTable { |
| /** |
| * Constructor |
| * |
| * @param parent |
| * the parent |
| * @param cacheSize |
| * the cache size |
| */ |
| public GdbEventsTable(Composite parent, int cacheSize) { |
| super(parent, cacheSize, GdbEventAspects.getAspects()); |
| } |
| } |
| </pre> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| <p> |
| The 'eventsTableType/class' element has to extend TmfEventsTable. It is optional however ; if it is not specified, the default TmfEventsTable will be used. |
| </p> |
| <p> |
| When providing the 'eventsTableType/class' and the flag 'useTraceAspects' is set to true, the following constructor has to be implemented: |
| </p> |
| <pre> |
| public MyTraceEventsTable(Composite parent, int cacheSize, Iterable<ITmfEventAspect<?>> aspects) { |
| super(parent, cacheSize, aspects); |
| } |
| </pre> |
| <p> |
| If the flag 'useTraceAspects' is set to false, the following constructor has to be implemented and the aspects have to provided in the constructor: |
| </p> |
| <pre> |
| public MyTraceEventsTable(Composite parent, int cacheSize) { |
| super(parent, cacheSize, myAspects); |
| } |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| [Enter information about supplied implementation of this extension point.] |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2014, 2017 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 &lt;a href=&quot;https://www.eclipse.org/legal/epl-2.0/&quot;&gt;https://www.eclipse.org/legal/epl-2.0/&lt;/a&gt; |
| |
| SPDX-License-Identifier: EPL-2.0 |
| </documentation> |
| </annotation> |
| |
| </schema> |