Commit | Line | Data |
---|---|---|
12c155f5 FC |
1 | <?xml version='1.0' encoding='UTF-8'?> |
2 | <!-- Schema file written by PDE --> | |
8636b448 | 3 | <schema targetNamespace="org.eclipse.linuxtools.tmf.ui" xmlns="http://www.w3.org/2001/XMLSchema"> |
12c155f5 FC |
4 | <annotation> |
5 | <appinfo> | |
a926c25c | 6 | <meta.schema plugin="org.eclipse.linuxtools.tmf.ui" id="tracetypeui" name="TMF Trace Type UI Elements"/> |
12c155f5 FC |
7 | </appinfo> |
8 | <documentation> | |
a926c25c | 9 | This extension point is used to assign UI elements to a trace type defined by org.eclipse.linuxtools.tmf.core.tracetype. |
12c155f5 FC |
10 | </documentation> |
11 | </annotation> | |
12 | ||
13 | <element name="extension"> | |
14 | <annotation> | |
15 | <appinfo> | |
16 | <meta.element /> | |
17 | </appinfo> | |
18 | </annotation> | |
19 | <complexType> | |
20 | <choice minOccurs="0" maxOccurs="unbounded"> | |
12c155f5 | 21 | <element ref="type"/> |
1ec2ca01 | 22 | <element ref="experiment"/> |
12c155f5 FC |
23 | </choice> |
24 | <attribute name="point" type="string" use="required"> | |
25 | <annotation> | |
26 | <documentation> | |
27 | a fully qualified identifier of the target extension point | |
28 | </documentation> | |
29 | </annotation> | |
30 | </attribute> | |
31 | <attribute name="id" type="string"> | |
32 | <annotation> | |
33 | <documentation> | |
34 | an optional identifier of the extension instance | |
35 | </documentation> | |
36 | </annotation> | |
37 | </attribute> | |
38 | <attribute name="name" type="string"> | |
39 | <annotation> | |
40 | <documentation> | |
41 | an optional name of the extension instance | |
42 | </documentation> | |
43 | <appinfo> | |
44 | <meta.attribute translatable="true"/> | |
45 | </appinfo> | |
46 | </annotation> | |
47 | </attribute> | |
48 | </complexType> | |
49 | </element> | |
50 | ||
12c155f5 | 51 | <element name="type"> |
3d40bd63 | 52 | <annotation> |
99d7adc6 | 53 | <appinfo> |
3d40bd63 | 54 | <meta.element labelAttribute="tracetype"/> |
99d7adc6 | 55 | </appinfo> |
3d40bd63 | 56 | </annotation> |
12c155f5 FC |
57 | <complexType> |
58 | <sequence> | |
12c155f5 | 59 | <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/> |
a926c25c | 60 | <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/> |
12c155f5 | 61 | </sequence> |
a926c25c | 62 | <attribute name="tracetype" type="string" use="required"> |
12c155f5 FC |
63 | <annotation> |
64 | <documentation> | |
65 | The unique ID that identifies this trace type. | |
66 | </documentation> | |
12c155f5 | 67 | <appinfo> |
a926c25c | 68 | <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/type/@id"/> |
12c155f5 FC |
69 | </appinfo> |
70 | </annotation> | |
71 | </attribute> | |
72 | <attribute name="icon" type="string"> | |
73 | <annotation> | |
74 | <documentation> | |
75 | The icon associated to the trace type. | |
76 | </documentation> | |
77 | <appinfo> | |
78 | <meta.attribute kind="resource"/> | |
79 | </appinfo> | |
80 | </annotation> | |
81 | </attribute> | |
12c155f5 FC |
82 | </complexType> |
83 | </element> | |
84 | ||
1ec2ca01 | 85 | <element name="experiment"> |
3d40bd63 | 86 | <annotation> |
99d7adc6 | 87 | <appinfo> |
3d40bd63 | 88 | <meta.element labelAttribute="tracetype"/> |
99d7adc6 | 89 | </appinfo> |
3d40bd63 | 90 | </annotation> |
1ec2ca01 GB |
91 | <complexType> |
92 | <sequence> | |
93 | <element ref="eventsTableType" minOccurs="0" maxOccurs="1"/> | |
94 | <element ref="defaultEditor" minOccurs="0" maxOccurs="1"/> | |
95 | </sequence> | |
96 | <attribute name="tracetype" type="string" use="required"> | |
97 | <annotation> | |
98 | <documentation> | |
99 | The unique ID that identifies this experiment type. | |
100 | </documentation> | |
101 | <appinfo> | |
102 | <meta.attribute kind="identifier" basedOn="org.eclipse.linuxtools.tmf.core.tracetype/experiment/@id"/> | |
103 | </appinfo> | |
104 | </annotation> | |
105 | </attribute> | |
106 | <attribute name="icon" type="string"> | |
107 | <annotation> | |
108 | <documentation> | |
109 | The icon associated to the experiment type. | |
110 | </documentation> | |
111 | <appinfo> | |
112 | <meta.attribute kind="resource"/> | |
113 | </appinfo> | |
114 | </annotation> | |
115 | </attribute> | |
116 | </complexType> | |
117 | </element> | |
118 | ||
12c155f5 FC |
119 | <element name="eventsTableType"> |
120 | <annotation> | |
121 | <documentation> | |
122 | The events table to use for this trace type. | |
123 | If omitted, the default events table will be used. | |
124 | </documentation> | |
125 | </annotation> | |
126 | <complexType> | |
127 | <attribute name="class" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable"> | |
128 | <annotation> | |
129 | <documentation> | |
130 | The fully qualified name of a class that extends <samp>TmfEventsTable</samp> . | |
131 | If empty, the default events table will be used. | |
132 | </documentation> | |
133 | <appinfo> | |
134 | <meta.attribute kind="java" basedOn="org.eclipse.linuxtools.tmf.ui.viewers.events.TmfEventsTable:"/> | |
135 | </appinfo> | |
136 | </annotation> | |
137 | </attribute> | |
138 | </complexType> | |
139 | </element> | |
140 | ||
a926c25c | 141 | <element name="defaultEditor"> |
cfd22ad0 MD |
142 | <annotation> |
143 | <documentation> | |
a926c25c AM |
144 | The default editor to use for this trace type. |
145 | If omitted, the default events editor will be used. | |
cfd22ad0 MD |
146 | </documentation> |
147 | </annotation> | |
148 | <complexType> | |
a926c25c | 149 | <attribute name="id" type="string" use="default" value="org.eclipse.linuxtools.tmf.ui.editors.events"> |
cfd22ad0 MD |
150 | <annotation> |
151 | <documentation> | |
a926c25c AM |
152 | The id of the editor to use for this trace type. |
153 | If empty, the default events editor will be used. | |
cfd22ad0 | 154 | </documentation> |
cfd22ad0 MD |
155 | </annotation> |
156 | </attribute> | |
157 | </complexType> | |
158 | </element> | |
159 | ||
12c155f5 FC |
160 | <annotation> |
161 | <appinfo> | |
162 | <meta.section type="since"/> | |
163 | </appinfo> | |
164 | <documentation> | |
a926c25c | 165 | 3.0 |
12c155f5 FC |
166 | </documentation> |
167 | </annotation> | |
168 | ||
169 | <annotation> | |
170 | <appinfo> | |
171 | <meta.section type="examples"/> | |
172 | </appinfo> | |
173 | <documentation> | |
1ec2ca01 | 174 | 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! |
a926c25c AM |
175 | |
176 | <extension | |
177 | point="org.eclipse.linuxtools.tmf.ui.tracetypeui"> | |
178 | <type | |
179 | icon="icons/obj16/gdb_icon16.png" | |
180 | tracetype="org.eclipse.linuxtools.gdbtrace.core.type.gdb"> | |
181 | <eventsTableType | |
182 | class="org.eclipse.linuxtools.internal.gdbtrace.ui.views.events.GdbEventsTable"> | |
183 | </eventsTableType> | |
184 | </type> | |
1ec2ca01 GB |
185 | <experiment_type |
186 | tracetype="org.eclipse.linuxtools.tmf.core.experiment.generic" | |
187 | icon="icons/elcl16/experiment.gif"> | |
188 | </experiment_type> | |
a926c25c | 189 | </extension> |
12c155f5 FC |
190 | </documentation> |
191 | </annotation> | |
192 | ||
193 | <annotation> | |
194 | <appinfo> | |
195 | <meta.section type="apiinfo"/> | |
196 | </appinfo> | |
197 | <documentation> | |
a926c25c | 198 | The 'eventsTableType/class' element has to extend TmfEventsTable. It is optional however ; if it is not specified, the default TmfEventsTable will be used. |
12c155f5 FC |
199 | </documentation> |
200 | </annotation> | |
201 | ||
202 | <annotation> | |
203 | <appinfo> | |
204 | <meta.section type="implementation"/> | |
205 | </appinfo> | |
206 | <documentation> | |
207 | [Enter information about supplied implementation of this extension point.] | |
208 | </documentation> | |
209 | </annotation> | |
210 | ||
a926c25c AM |
211 | <annotation> |
212 | <appinfo> | |
213 | <meta.section type="copyright"/> | |
214 | </appinfo> | |
215 | <documentation> | |
216 | Copyright (c) 2014 Ericsson | |
217 | ||
218 | 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> | |
219 | </documentation> | |
220 | </annotation> | |
12c155f5 FC |
221 | |
222 | </schema> |