Commit | Line | Data |
---|---|---|
cc1b8519 AM |
1 | <?xml version='1.0' encoding='UTF-8'?> |
2 | <!-- Schema file written by PDE --> | |
3 | <schema targetNamespace="org.eclipse.tracecompass.tmf.core" xmlns="http://www.w3.org/2001/XMLSchema"> | |
4 | <annotation> | |
5 | <appinfo> | |
6 | <meta.schema plugin="org.eclipse.tracecompass.tmf.core" id="analysis.ondemand" name="On-demand Analysis"/> | |
7 | </appinfo> | |
8 | <documentation> | |
9 | This extension point is used to provide on-demand analyses. Unlike regular analyses, the on-demand ones are only executed when the user specifies it. | |
10 | </documentation> | |
11 | </annotation> | |
12 | ||
13 | <element name="extension"> | |
14 | <annotation> | |
15 | <appinfo> | |
16 | <meta.element /> | |
17 | </appinfo> | |
18 | </annotation> | |
19 | <complexType> | |
20 | <sequence> | |
21 | <element ref="analysis" minOccurs="1" maxOccurs="unbounded"/> | |
22 | </sequence> | |
23 | <attribute name="point" type="string" use="required"> | |
24 | <annotation> | |
25 | <documentation> | |
26 | A fully qualified identifier of the target extension point | |
27 | </documentation> | |
28 | </annotation> | |
29 | </attribute> | |
30 | <attribute name="id" type="string"> | |
31 | <annotation> | |
32 | <documentation> | |
33 | An optional identifier of the extension instance | |
34 | </documentation> | |
35 | </annotation> | |
36 | </attribute> | |
37 | <attribute name="name" type="string"> | |
38 | <annotation> | |
39 | <documentation> | |
40 | An optional name of the extension instance | |
41 | </documentation> | |
42 | <appinfo> | |
43 | <meta.attribute translatable="true"/> | |
44 | </appinfo> | |
45 | </annotation> | |
46 | </attribute> | |
47 | </complexType> | |
48 | </element> | |
49 | ||
50 | <element name="analysis"> | |
51 | <annotation> | |
52 | <documentation> | |
53 | An on-demand analysis which can run on the traces it specifies | |
54 | </documentation> | |
55 | </annotation> | |
56 | <complexType> | |
57 | <attribute name="id" type="string" use="required"> | |
58 | <annotation> | |
59 | <documentation> | |
60 | The unique ID that identifies this on-demand analysis | |
61 | </documentation> | |
62 | </annotation> | |
63 | </attribute> | |
64 | <attribute name="class" type="string" use="required"> | |
65 | <annotation> | |
66 | <documentation> | |
67 | The class implementing the on-demand analysis | |
68 | </documentation> | |
69 | <appinfo> | |
70 | <meta.attribute kind="java" basedOn=":org.eclipse.tracecompass.tmf.core.analysis.ondemand.IOndemandAnalysis"/> | |
71 | </appinfo> | |
72 | </annotation> | |
73 | </attribute> | |
74 | </complexType> | |
75 | </element> | |
76 | ||
77 | <annotation> | |
78 | <appinfo> | |
79 | <meta.section type="since"/> | |
80 | </appinfo> | |
81 | <documentation> | |
82 | 2.0 | |
83 | </documentation> | |
84 | </annotation> | |
85 | ||
86 | <annotation> | |
87 | <appinfo> | |
88 | <meta.section type="examples"/> | |
89 | </appinfo> | |
90 | <documentation> | |
91 | <p> | |
92 | For an example implementation of an on-demand analysis see: | |
93 | <pre> | |
94 | plug-in: org.eclipse.linuxtools.tmf.core.tests | |
95 | package: org.eclipse.linuxtools.tmf.core.tests.stubs.analysis.ondemand | |
96 | class: OnDemandAnalysisStub | |
97 | </pre> | |
98 | </p> | |
99 | ||
100 | <p> | |
101 | The following is an example of the extension point usage: | |
102 | <pre> | |
103 | <extension | |
104 | point="org.eclipse.tracecompass.tmf.core.analysis.ondemand"> | |
105 | <analysis | |
106 | class="org.eclipse.tracecompass.tmf.tests.stubs.analysis.ondemand.OnDemandAnalysisStub" | |
107 | id="org.eclipse.tracecompass.tmf.core.tests.analysis1"> | |
108 | </analysis> | |
109 | </extension> | |
110 | </pre> | |
111 | </p> | |
112 | </documentation> | |
113 | </annotation> | |
114 | ||
115 | <annotation> | |
116 | <appinfo> | |
117 | <meta.section type="apiinfo"/> | |
118 | </appinfo> | |
119 | <documentation> | |
120 | Since 2.0 | |
121 | </documentation> | |
122 | </annotation> | |
123 | ||
124 | ||
125 | <annotation> | |
126 | <appinfo> | |
127 | <meta.section type="copyright"/> | |
128 | </appinfo> | |
129 | <documentation> | |
130 | Copyright (c) 2016 EfficiOS Inc. and others | |
131 | ||
132 | 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 | |
133 | href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> | |
134 | </documentation> | |
135 | </annotation> | |
136 | ||
137 | </schema> |