Commit | Line | Data |
---|---|---|
4208b510 AM |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <?eclipse version="3.4"?> | |
3 | <!-- | |
4 | Copyright (c) 2016 EfficiOS Inc. and others | |
5 | ||
6 | All rights reserved. This program and the accompanying materials | |
7 | are made available under the terms of the Eclipse Public License v1.0 | |
8 | which accompanies this distribution, and is available at | |
9 | http://www.eclipse.org/legal/epl-v10.html | |
10 | --> | |
11 | ||
12 | <plugin> | |
13 | <extension | |
14 | point="org.eclipse.ui.handlers"> | |
15 | <handler | |
16 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.handler.RunAnalysisHandler" | |
17 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_run"> | |
18 | <activeWhen> | |
19 | <and> | |
20 | <count | |
21 | value="1"> | |
22 | </count> | |
23 | <iterate | |
24 | operator="and"> | |
25 | <instanceof | |
26 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysisElement"> | |
27 | </instanceof> | |
28 | </iterate> | |
29 | </and> | |
30 | </activeWhen> | |
31 | </handler> | |
32 | <handler | |
33 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.handler.OpenReportHandler" | |
685a6e67 | 34 | commandId="org.eclipse.ui.navigate.openResource"> |
4208b510 AM |
35 | <activeWhen> |
36 | <and> | |
37 | <iterate | |
38 | ifEmpty="false" | |
39 | operator="and"> | |
40 | <instanceof | |
41 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
42 | </instanceof> | |
43 | </iterate> | |
44 | </and> | |
45 | </activeWhen> | |
46 | </handler> | |
47 | <handler | |
48 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.handler.DeleteReportHandler" | |
49 | commandId="org.eclipse.tracecompass.tmf.ui.command.report_delete"> | |
50 | <activeWhen> | |
51 | <and> | |
52 | <iterate | |
53 | ifEmpty="false" | |
54 | operator="and"> | |
55 | <instanceof | |
56 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
57 | </instanceof> | |
58 | </iterate> | |
59 | </and> | |
60 | </activeWhen> | |
61 | </handler> | |
664dac59 PP |
62 | <handler |
63 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.handler.RemoveAnalysisHandler" | |
64 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_remove"> | |
65 | <activeWhen> | |
66 | <and> | |
67 | <iterate | |
68 | ifEmpty="false" | |
69 | operator="and"> | |
70 | <instanceof | |
71 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfUserDefinedOnDemandAnalysisElement"> | |
72 | </instanceof> | |
73 | </iterate> | |
74 | </and> | |
75 | </activeWhen> | |
76 | </handler> | |
77 | <handler | |
78 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.handler.AddAnalysisHandler" | |
79 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_add"> | |
80 | <activeWhen> | |
81 | <and> | |
82 | <count | |
83 | value="1"> | |
84 | </count> | |
85 | <iterate | |
86 | operator="and"> | |
87 | <instanceof | |
88 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysesElement"> | |
89 | </instanceof> | |
90 | </iterate> | |
91 | </and> | |
92 | </activeWhen> | |
93 | </handler> | |
4208b510 AM |
94 | </extension> |
95 | <extension | |
96 | point="org.eclipse.ui.commands"> | |
97 | <command | |
98 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
99 | description="%command.analysis_run.description" | |
100 | id="org.eclipse.tracecompass.tmf.ui.command.analysis_run" | |
101 | name="%command.analysis_run"> | |
102 | </command> | |
664dac59 PP |
103 | <command |
104 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
105 | description="%command.analysis_remove.description" | |
106 | id="org.eclipse.tracecompass.tmf.ui.command.analysis_remove" | |
107 | name="%command.analysis_remove"> | |
108 | </command> | |
109 | <command | |
110 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
111 | description="%command.analysis_add.description" | |
112 | id="org.eclipse.tracecompass.tmf.ui.command.analysis_add" | |
113 | name="%command.analysis_add"> | |
114 | </command> | |
4208b510 AM |
115 | <command |
116 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
117 | description="%command.report_delete.description" | |
118 | id="org.eclipse.tracecompass.tmf.ui.command.report_delete" | |
119 | name="%command.report_delete"> | |
120 | </command> | |
121 | </extension> | |
122 | <extension | |
123 | point="org.eclipse.ui.menus"> | |
124 | <menuContribution | |
125 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
126 | <command | |
127 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_run" | |
128 | label="%command.analysis_run" | |
129 | mnemonic="%command.analysis_run.mnemonic" | |
130 | style="push" | |
131 | tooltip="%command.analysis_run.description"> | |
132 | <visibleWhen | |
133 | checkEnabled="false"> | |
134 | <with | |
135 | variable="selection"> | |
136 | <count | |
137 | value="1"> | |
138 | </count> | |
139 | <iterate> | |
140 | <instanceof | |
141 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysisElement"> | |
142 | </instanceof> | |
143 | </iterate> | |
144 | </with> | |
145 | </visibleWhen> | |
146 | </command> | |
147 | </menuContribution> | |
664dac59 PP |
148 | <menuContribution |
149 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
150 | <command | |
151 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_remove" | |
152 | label="%command.analysis_remove" | |
153 | mnemonic="%command.analysis_remove.mnemonic" | |
154 | style="push" | |
155 | tooltip="%command.analysis_remove.description"> | |
156 | <visibleWhen | |
157 | checkEnabled="false"> | |
158 | <with | |
159 | variable="selection"> | |
160 | <iterate | |
161 | ifEmpty="false"> | |
162 | <instanceof | |
163 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfUserDefinedOnDemandAnalysisElement"> | |
164 | </instanceof> | |
165 | </iterate> | |
166 | </with> | |
167 | </visibleWhen> | |
168 | </command> | |
169 | </menuContribution> | |
170 | <menuContribution | |
171 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
172 | <command | |
173 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_add" | |
174 | label="%command.analysis_add" | |
175 | mnemonic="%command.analysis_add.mnemonic" | |
176 | style="push" | |
177 | tooltip="%command.analysis_add.description"> | |
178 | <visibleWhen | |
179 | checkEnabled="false"> | |
180 | <with | |
181 | variable="selection"> | |
182 | <count | |
183 | value="1"> | |
184 | </count> | |
185 | <iterate> | |
186 | <instanceof | |
187 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysesElement"> | |
188 | </instanceof> | |
189 | </iterate> | |
190 | </with> | |
191 | </visibleWhen> | |
192 | </command> | |
193 | </menuContribution> | |
4208b510 AM |
194 | <menuContribution |
195 | allPopups="false" | |
685a6e67 | 196 | locationURI="popup:org.eclipse.ui.popup.any?after=group.open"> |
4208b510 | 197 | <command |
685a6e67 | 198 | commandId="org.eclipse.ui.navigate.openResource" |
4208b510 AM |
199 | label="%command.report_open" |
200 | mnemonic="%command.report_open.mnemonic" | |
201 | style="push" | |
202 | tooltip="%command.report_open.description"> | |
203 | <visibleWhen | |
204 | checkEnabled="false"> | |
205 | <with | |
206 | variable="selection"> | |
207 | <iterate | |
685a6e67 AM |
208 | ifEmpty="false" |
209 | operator="and"> | |
4208b510 AM |
210 | <instanceof |
211 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
212 | </instanceof> | |
213 | </iterate> | |
214 | </with> | |
215 | </visibleWhen> | |
216 | </command> | |
217 | <command | |
218 | commandId="org.eclipse.tracecompass.tmf.ui.command.report_delete" | |
219 | label="%command.report_delete" | |
220 | mnemonic="%command.report_delete.mnemonic" | |
221 | style="push" | |
222 | tooltip="%command.report_delete.description"> | |
223 | <visibleWhen | |
224 | checkEnabled="false"> | |
225 | <with | |
226 | variable="selection"> | |
227 | <iterate | |
228 | ifEmpty="false"> | |
229 | <instanceof | |
230 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
231 | </instanceof> | |
232 | </iterate> | |
233 | </with> | |
234 | </visibleWhen> | |
235 | </command> | |
236 | </menuContribution> | |
237 | </extension> | |
238 | <extension | |
239 | point="org.eclipse.ui.views"> | |
240 | <view | |
241 | allowMultiple="true" | |
242 | category="org.eclipse.linuxtools.tmf.ui.views.category" | |
243 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.views.LamiReportView" | |
244 | id="org.eclipse.tracecompass.analysis.lami.views.reportview" | |
245 | name="%analysis.report.view" | |
246 | restorable="false"> | |
247 | </view> | |
248 | </extension> | |
249 | ||
250 | </plugin> |