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" | |
f8e7a6be | 17 | commandId="org.eclipse.ui.navigate.openResource"> |
4208b510 AM |
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"> | |
664dac59 PP |
97 | <command |
98 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
99 | description="%command.analysis_remove.description" | |
100 | id="org.eclipse.tracecompass.tmf.ui.command.analysis_remove" | |
101 | name="%command.analysis_remove"> | |
102 | </command> | |
103 | <command | |
104 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
105 | description="%command.analysis_add.description" | |
106 | id="org.eclipse.tracecompass.tmf.ui.command.analysis_add" | |
107 | name="%command.analysis_add"> | |
108 | </command> | |
4208b510 AM |
109 | <command |
110 | categoryId="org.eclipse.linuxtools.tmf.ui.commands.category" | |
111 | description="%command.report_delete.description" | |
112 | id="org.eclipse.tracecompass.tmf.ui.command.report_delete" | |
113 | name="%command.report_delete"> | |
114 | </command> | |
115 | </extension> | |
116 | <extension | |
117 | point="org.eclipse.ui.menus"> | |
118 | <menuContribution | |
f8e7a6be | 119 | locationURI="popup:org.eclipse.ui.popup.any?after=group.open"> |
4208b510 | 120 | <command |
f8e7a6be | 121 | commandId="org.eclipse.ui.navigate.openResource" |
4208b510 AM |
122 | label="%command.analysis_run" |
123 | mnemonic="%command.analysis_run.mnemonic" | |
124 | style="push" | |
125 | tooltip="%command.analysis_run.description"> | |
126 | <visibleWhen | |
127 | checkEnabled="false"> | |
128 | <with | |
129 | variable="selection"> | |
130 | <count | |
131 | value="1"> | |
132 | </count> | |
f8e7a6be AM |
133 | <iterate |
134 | ifEmpty="false" | |
135 | operator="and"> | |
4208b510 AM |
136 | <instanceof |
137 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysisElement"> | |
138 | </instanceof> | |
139 | </iterate> | |
140 | </with> | |
141 | </visibleWhen> | |
142 | </command> | |
143 | </menuContribution> | |
664dac59 PP |
144 | <menuContribution |
145 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
146 | <command | |
147 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_remove" | |
148 | label="%command.analysis_remove" | |
149 | mnemonic="%command.analysis_remove.mnemonic" | |
150 | style="push" | |
151 | tooltip="%command.analysis_remove.description"> | |
152 | <visibleWhen | |
153 | checkEnabled="false"> | |
154 | <with | |
155 | variable="selection"> | |
156 | <iterate | |
157 | ifEmpty="false"> | |
158 | <instanceof | |
159 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfUserDefinedOnDemandAnalysisElement"> | |
160 | </instanceof> | |
161 | </iterate> | |
162 | </with> | |
163 | </visibleWhen> | |
164 | </command> | |
165 | </menuContribution> | |
166 | <menuContribution | |
167 | locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
168 | <command | |
169 | commandId="org.eclipse.tracecompass.tmf.ui.command.analysis_add" | |
170 | label="%command.analysis_add" | |
171 | mnemonic="%command.analysis_add.mnemonic" | |
172 | style="push" | |
173 | tooltip="%command.analysis_add.description"> | |
174 | <visibleWhen | |
175 | checkEnabled="false"> | |
176 | <with | |
177 | variable="selection"> | |
178 | <count | |
179 | value="1"> | |
180 | </count> | |
181 | <iterate> | |
182 | <instanceof | |
183 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfOnDemandAnalysesElement"> | |
184 | </instanceof> | |
185 | </iterate> | |
186 | </with> | |
187 | </visibleWhen> | |
188 | </command> | |
189 | </menuContribution> | |
4208b510 AM |
190 | <menuContribution |
191 | allPopups="false" | |
685a6e67 | 192 | locationURI="popup:org.eclipse.ui.popup.any?after=group.open"> |
4208b510 | 193 | <command |
685a6e67 | 194 | commandId="org.eclipse.ui.navigate.openResource" |
4208b510 AM |
195 | label="%command.report_open" |
196 | mnemonic="%command.report_open.mnemonic" | |
197 | style="push" | |
198 | tooltip="%command.report_open.description"> | |
199 | <visibleWhen | |
200 | checkEnabled="false"> | |
201 | <with | |
202 | variable="selection"> | |
203 | <iterate | |
685a6e67 AM |
204 | ifEmpty="false" |
205 | operator="and"> | |
4208b510 AM |
206 | <instanceof |
207 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
208 | </instanceof> | |
209 | </iterate> | |
210 | </with> | |
211 | </visibleWhen> | |
212 | </command> | |
213 | <command | |
214 | commandId="org.eclipse.tracecompass.tmf.ui.command.report_delete" | |
215 | label="%command.report_delete" | |
216 | mnemonic="%command.report_delete.mnemonic" | |
217 | style="push" | |
218 | tooltip="%command.report_delete.description"> | |
219 | <visibleWhen | |
220 | checkEnabled="false"> | |
221 | <with | |
222 | variable="selection"> | |
223 | <iterate | |
224 | ifEmpty="false"> | |
225 | <instanceof | |
226 | value="org.eclipse.tracecompass.tmf.ui.project.model.TmfReportElement"> | |
227 | </instanceof> | |
228 | </iterate> | |
229 | </with> | |
230 | </visibleWhen> | |
231 | </command> | |
232 | </menuContribution> | |
233 | </extension> | |
234 | <extension | |
235 | point="org.eclipse.ui.views"> | |
236 | <view | |
237 | allowMultiple="true" | |
238 | category="org.eclipse.linuxtools.tmf.ui.views.category" | |
239 | class="org.eclipse.tracecompass.internal.provisional.analysis.lami.ui.views.LamiReportView" | |
240 | id="org.eclipse.tracecompass.analysis.lami.views.reportview" | |
241 | name="%analysis.report.view" | |
242 | restorable="false"> | |
243 | </view> | |
244 | </extension> | |
245 | ||
246 | </plugin> |