dfe9faebaf348f16461103f7fa19009c935f62bb
[public/netxms.git] / webui / webapp / DataCollection / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.2"?>
3 <plugin>
4 <extension-point id="org.netxms.ui.eclipse.datacollection.dciOpenHandlers" name="DCI Open Handlers" schema="schema/org.netxms.ui.eclipse.datacollection.dciOpenHandlers.exsd"/>
5
6 <extension
7 point="org.eclipse.ui.views">
8 <view
9 allowMultiple="true"
10 class="org.netxms.ui.eclipse.datacollection.views.DataCollectionEditor"
11 icon="icons/dc_editor.png"
12 id="org.netxms.ui.eclipse.datacollection.view.data_collection_editor"
13 name="%view.name.DataCollection"
14 restorable="false">
15 </view>
16 <view
17 name="%view.name.LastValues"
18 allowMultiple="true"
19 icon="icons/last_values.png"
20 class="org.netxms.ui.eclipse.datacollection.views.LastValues"
21 id="org.netxms.ui.eclipse.datacollection.view.last_values">
22 </view>
23 <view
24 allowMultiple="false"
25 category="org.netxms.ui.eclipse.viewcategory.config"
26 class="org.netxms.ui.eclipse.datacollection.views.SummaryTableManager"
27 icon="icons/summary_table.png"
28 id="org.netxms.ui.eclipse.datacollection.views.SummaryTableManager"
29 name="%view.name.DCISummaryTables"
30 restorable="true">
31 </view>
32 <view
33 allowMultiple="true"
34 class="org.netxms.ui.eclipse.datacollection.views.SummaryTable"
35 icon="icons/summary_table.png"
36 id="org.netxms.ui.eclipse.datacollection.views.SummaryTable"
37 name="%view.name.SummaryTable"
38 restorable="true">
39 </view>
40 </extension>
41
42 <extension
43 point="org.eclipse.ui.popupMenus">
44 <objectContribution
45 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.DataCollectionTarget"
46 objectClass="org.netxms.client.objects.DataCollectionTarget">
47 <action
48 class="org.netxms.ui.eclipse.datacollection.actions.OpenEditor"
49 enablesFor="1"
50 id="org.netxms.ui.eclipse.datacollection.popupActions.OpenEditor#DataCollectionTarget"
51 label="%action.label.DataCollection"
52 icon="icons/dc_editor.png"
53 menubarPath="datacollection">
54 </action>
55 <action
56 class="org.netxms.ui.eclipse.datacollection.actions.ShowLastValues"
57 enablesFor="1"
58 icon="icons/last_values.png"
59 id="org.netxms.ui.eclipse.datacollection.popupActions.ShowLastValues#DataCollectionTarget"
60 label="%action.label.LastValues"
61 menubarPath="datacollection">
62 </action>
63 </objectContribution>
64 <objectContribution
65 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.Template"
66 objectClass="org.netxms.client.objects.Template">
67 <action
68 class="org.netxms.ui.eclipse.datacollection.actions.OpenEditor"
69 enablesFor="1"
70 id="org.netxms.ui.eclipse.datacollection.popupActions.OpenEditor#Template"
71 label="%action.label.DataCollection"
72 icon="icons/dc_editor.png"
73 menubarPath="datacollection">
74 </action>
75 <action
76 class="org.netxms.ui.eclipse.datacollection.actions.RemoveTemplate"
77 enablesFor="1"
78 id="org.netxms.ui.eclipse.datacollection.popupActions.RemoveTemplate"
79 label="%action.label.Remove"
80 menubarPath="objectbinding"
81 style="push"
82 tooltip="%action.tooltip.Remove">
83 </action>
84 <action
85 class="org.netxms.ui.eclipse.datacollection.actions.ApplyTemplate"
86 enablesFor="+"
87 id="org.netxms.ui.eclipse.datacollection.popupActions.ApplyTemplate"
88 label="%action.label.Apply"
89 menubarPath="objectbinding"
90 style="push"
91 tooltip="%action.tooltip.Apply">
92 </action>
93 </objectContribution>
94 <objectContribution
95 adaptable="false"
96 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.TemplateRoot"
97 objectClass="org.netxms.client.objects.TemplateRoot">
98 <action
99 class="org.netxms.ui.eclipse.datacollection.actions.CreateTemplateGroup"
100 enablesFor="1"
101 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateTemplateGroup#TemplateRoot"
102 label="%action.label.CreateTemplateGroup"
103 menubarPath="CreateObjectSubmenu/additions">
104 </action>
105 <action
106 class="org.netxms.ui.eclipse.datacollection.actions.CreateTemplate"
107 enablesFor="1"
108 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateTemplate#TemplateRoot"
109 label="%action.label.CreateTemplate"
110 menubarPath="CreateObjectSubmenu/additions">
111 </action>
112 </objectContribution>
113 <objectContribution
114 adaptable="false"
115 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.TemplateGroup"
116 objectClass="org.netxms.client.objects.TemplateGroup">
117 <action
118 class="org.netxms.ui.eclipse.datacollection.actions.CreateTemplateGroup"
119 enablesFor="1"
120 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateTemplateGroup#TemplateGroup"
121 label="%action.label.CreateTemplateGroup"
122 menubarPath="CreateObjectSubmenu/additions">
123 </action>
124 <action
125 class="org.netxms.ui.eclipse.datacollection.actions.CreateTemplate"
126 enablesFor="1"
127 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateTemplate#TemplateGroup"
128 label="%action.label.CreateTemplate"
129 menubarPath="CreateObjectSubmenu/additions">
130 </action>
131 </objectContribution>
132 <objectContribution
133 adaptable="false"
134 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.Interface"
135 objectClass="org.netxms.client.objects.Interface">
136 <action
137 class="org.netxms.ui.eclipse.datacollection.actions.CreateInterfraceDci"
138 enablesFor="+"
139 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateInterfaceDci#Interface"
140 label="%action.label.CreateDCIs"
141 menubarPath="datacollection">
142 </action>
143 </objectContribution>
144 <objectContribution
145 adaptable="false"
146 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.DciValue"
147 objectClass="org.netxms.client.datacollection.DciValue">
148 <action
149 class="org.netxms.ui.eclipse.datacollection.actions.ClearCollectedData"
150 enablesFor="+"
151 icon="icons/clear.gif"
152 id="org.netxms.ui.eclipse.datacollection.popupActions.ClearCollectedData_DciValue"
153 label="%action.label.ClearData"
154 menubarPath="secondary">
155 </action>
156 <action
157 class="org.netxms.ui.eclipse.datacollection.actions.ForceDciPoll"
158 enablesFor="+"
159 id="org.netxms.ui.eclipse.datacollection.popupActions.ForceDCIPoll_DciValue"
160 label="Force DCI Poll"
161 menubarPath="secondary">
162 </action>
163 </objectContribution>
164 <objectContribution
165 adaptable="false"
166 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.DataCollectionObject"
167 objectClass="org.netxms.client.datacollection.DataCollectionObject">
168 <action
169 class="org.netxms.ui.eclipse.datacollection.actions.ClearCollectedData"
170 enablesFor="+"
171 icon="icons/clear.gif"
172 id="org.netxms.ui.eclipse.datacollection.popupActions.ClearCollectedData_DataCollectionObject"
173 label="%action.label.ClearData"
174 menubarPath="secondary">
175 </action>
176 <action
177 class="org.netxms.ui.eclipse.datacollection.actions.ForceDciPoll"
178 enablesFor="+"
179 id="org.netxms.ui.eclipse.datacollection.popupActions.ForceDCIPoll_DataCollectionObject"
180 label="Force DCI Poll"
181 menubarPath="secondary">
182 </action>
183 </objectContribution>
184 <objectContribution
185 adaptable="false"
186 id="org.netxms.ui.eclipse.datacollection.actions.popup.object.SnmpValue"
187 objectClass="org.netxms.client.snmp.SnmpValue">
188 <action
189 class="org.netxms.ui.eclipse.datacollection.actions.CreateSnmpDci"
190 enablesFor="+"
191 id="org.netxms.ui.eclipse.datacollection.popupActions.CreateSnmpDci#SnmpValue"
192 label="%action.label.CreateDCI"
193 menubarPath="additions">
194 </action>
195 </objectContribution>
196 </extension>
197
198 <extension
199 point="org.eclipse.ui.propertyPages">
200 <page
201 id="org.netxms.ui.eclipse.datacollection.propertypages.General#1"
202 name="%page.name.General"
203 class="org.netxms.ui.eclipse.datacollection.propertypages.General">
204 <enabledWhen>
205 <instanceof
206 value="org.netxms.client.datacollection.DataCollectionItem">
207 </instanceof>
208 </enabledWhen>
209 </page>
210 <page
211 class="org.netxms.ui.eclipse.datacollection.propertypages.GeneralTable"
212 id="org.netxms.ui.eclipse.datacollection.propertypages.GeneralTable#1"
213 name="%page.name.General">
214 <enabledWhen>
215 <instanceof
216 value="org.netxms.client.datacollection.DataCollectionTable">
217 </instanceof>
218 </enabledWhen>
219 </page>
220 <page
221 class="org.netxms.ui.eclipse.datacollection.propertypages.Comments"
222 id="org.netxms.ui.eclipse.datacollection.propertypages.Comments"
223 name="%page.name.Comments">
224 <enabledWhen>
225 <instanceof
226 value="org.netxms.client.datacollection.DataCollectionObject">
227 </instanceof>
228 </enabledWhen>
229 </page>
230 <page
231 id="org.netxms.ui.eclipse.datacollection.propertypages.CustomSchedule#10"
232 name="%page.name.CustomSchedule"
233 class="org.netxms.ui.eclipse.datacollection.propertypages.CustomSchedule">
234 <enabledWhen>
235 <instanceof
236 value="org.netxms.client.datacollection.DataCollectionObject">
237 </instanceof>
238 </enabledWhen>
239 </page>
240 <page
241 id="org.netxms.ui.eclipse.datacollection.propertypages.Transformation#20"
242 name="%page.name.Transformation"
243 class="org.netxms.ui.eclipse.datacollection.propertypages.Transformation">
244 <enabledWhen>
245 <instanceof
246 value="org.netxms.client.datacollection.DataCollectionObject">
247 </instanceof>
248 </enabledWhen>
249 </page>
250 <page
251 id="org.netxms.ui.eclipse.datacollection.propertypages.Thresholds#30"
252 name="%page.name.Thresholds"
253 class="org.netxms.ui.eclipse.datacollection.propertypages.Thresholds">
254 <enabledWhen>
255 <instanceof
256 value="org.netxms.client.datacollection.DataCollectionItem">
257 </instanceof>
258 </enabledWhen>
259 </page>
260 <page
261 class="org.netxms.ui.eclipse.datacollection.propertypages.TableColumns"
262 id="org.netxms.ui.eclipse.datacollection.propertypages.TableColumns#20"
263 name="%page.name.Columns">
264 <enabledWhen>
265 <instanceof
266 value="org.netxms.client.datacollection.DataCollectionTable">
267 </instanceof>
268 </enabledWhen>
269 </page>
270 <page
271 class="org.netxms.ui.eclipse.datacollection.propertypages.InstanceDiscovery"
272 id="org.netxms.ui.eclipse.datacollection.propertypages.InstanceDiscovery#50"
273 name="%page.name.InstanceDiscovery">
274 <enabledWhen>
275 <instanceof
276 value="org.netxms.client.datacollection.DataCollectionObject">
277 </instanceof>
278 </enabledWhen>
279 </page>
280 <page
281 class="org.netxms.ui.eclipse.datacollection.propertypages.OtherOptions"
282 id="org.netxms.ui.eclipse.datacollection.propertypages.NetworkMaps#110"
283 name="%page.name.OtherOptions">
284 <enabledWhen>
285 <instanceof
286 value="org.netxms.client.datacollection.DataCollectionItem">
287 </instanceof>
288 </enabledWhen>
289 </page>
290 <page
291 class="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableGeneral"
292 id="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableGeneral#0"
293 name="%page.name.General">
294 <enabledWhen>
295 <instanceof
296 value="org.netxms.client.datacollection.DciSummaryTable">
297 </instanceof>
298 </enabledWhen>
299 </page>
300 <page
301 class="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableFilter"
302 id="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableFilter#20"
303 name="%page.name.Filter">
304 <enabledWhen>
305 <instanceof
306 value="org.netxms.client.datacollection.DciSummaryTable">
307 </instanceof>
308 </enabledWhen>
309 </page>
310 <page
311 class="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableColumns"
312 id="org.netxms.ui.eclipse.datacollection.propertypages.SummaryTableColumns#10"
313 name="%page.name.Columns">
314 <enabledWhen>
315 <and>
316 <instanceof
317 value="org.netxms.client.datacollection.DciSummaryTable">
318 </instanceof>
319 <not>
320 <test
321 forcePluginActivation="true"
322 property="org.netxms.ui.eclipse.datacollection.isTableSource">
323 </test>
324 </not>
325 </and>
326 </enabledWhen>
327 </page>
328 <page
329 class="org.netxms.ui.eclipse.datacollection.propertypages.ClusterOptions"
330 id="org.netxms.ui.eclipse.datacollection.propertypages.ClusterOptions#4"
331 name="%page.name.Cluster">
332 <enabledWhen>
333 <and>
334 <instanceof
335 value="org.netxms.client.datacollection.DataCollectionObject">
336 </instanceof>
337 <or>
338 <test
339 forcePluginActivation="true"
340 property="org.netxms.ui.eclipse.datacollection.isClusterObject">
341 </test>
342 <test
343 forcePluginActivation="true"
344 property="org.netxms.ui.eclipse.datacollection.isTemplateObject">
345 </test>
346 </or>
347 </and>
348 </enabledWhen>
349 </page>
350 <page
351 class="org.netxms.ui.eclipse.datacollection.propertypages.TableThresholds"
352 id="org.netxms.ui.eclipse.datacollection.propertypages.TableThresholds#30"
353 name="%page.name.Thresholds">
354 <enabledWhen>
355 <instanceof
356 value="org.netxms.client.datacollection.DataCollectionTable">
357 </instanceof>
358 </enabledWhen>
359 </page>
360 </extension>
361
362 <extension
363 point="org.eclipse.core.runtime.adapters">
364 <factory
365 class="org.netxms.ui.eclipse.datacollection.DataCollectionAdapterFactory"
366 adaptableType="org.netxms.client.datacollection.DataCollectionObject">
367 <adapter type="org.eclipse.ui.model.IWorkbenchAdapter"/>
368 <adapter
369 type="org.netxms.ui.eclipse.datacollection.api.DataCollectionObjectEditor">
370 </adapter>
371 </factory>
372 </extension>
373
374 <extension
375 point="org.netxms.ui.eclipse.objectview.tabs">
376 <tab
377 class="org.netxms.ui.eclipse.datacollection.objecttabs.LastValues"
378 contextId="org.netxms.ui.eclipse.datacollection.context.LastValues"
379 icon="icons/last_values.png"
380 id="org.netxms.ui.eclipse.datacollection.objecttabs.LastValues"
381 name="%tab.name.LastValues"
382 order="30">
383 </tab>
384 <tab
385 class="org.netxms.ui.eclipse.datacollection.objecttabs.ThresholdSummary"
386 icon="icons/thresholds.gif"
387 id="org.netxms.ui.eclipse.datacollection.objecttabs.ThresholdSummary"
388 name="%tab.name.Thresholds"
389 order="30">
390 </tab>
391 </extension>
392 <extension
393 point="org.eclipse.ui.commands">
394 <command
395 description="%command.description.ToggleFilter"
396 id="org.netxms.ui.eclipse.datacollection.commands.show_dci_filter"
397 name="%command.name.ToggleFilter">
398 <defaultHandler
399 class="org.netxms.ui.eclipse.datacollection.actions.ToggleDCIFilterHandler">
400 <parameter
401 name="default"
402 value="default">
403 </parameter>
404 </defaultHandler>
405 <state
406 class="org.eclipse.jface.commands.ToggleState"
407 id="org.netxms.ui.eclipse.datacollection.commands.show_dci_filter.state">
408 </state>
409 </command>
410 <command
411 categoryId="org.netxms.ui.eclipse.console.category.views"
412 description="%command.description.SummaryTablesConfig"
413 id="org.netxms.ui.eclipse.datacollection.commands.open_dcisumtbl_manager"
414 name="%command.name.SummaryTablesConfig">
415 </command>
416 </extension>
417 <extension
418 point="org.eclipse.ui.bindings">
419 <key
420 commandId="org.netxms.ui.eclipse.datacollection.commands.show_dci_filter"
421 contextId="org.netxms.ui.eclipse.datacollection.context.LastValues"
422 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
423 sequence="M1+F2">
424 </key>
425 </extension>
426 <extension
427 point="org.eclipse.ui.contexts">
428 <context
429 id="org.netxms.ui.eclipse.datacollection.context.LastValues"
430 name="Last Values List"
431 parentId="org.eclipse.ui.contexts.window">
432 </context>
433 </extension>
434 <extension
435 point="org.eclipse.ui.menus">
436 <menuContribution
437 allPopups="false"
438 locationURI="menu:org.netxms.ui.eclipse.objectview.view.tabbed_object_view?after=additions">
439 <command
440 commandId="org.netxms.ui.eclipse.datacollection.commands.show_dci_filter"
441 label="%command.label.ShowDCIFilter"
442 style="toggle"
443 tooltip="%command.tooltip.ShowDCIFilter">
444 <visibleWhen
445 checkEnabled="false">
446 <with
447 variable="org.netxms.ui.eclipse.objectview.ActiveTab">
448 <instanceof
449 value="org.netxms.ui.eclipse.datacollection.objecttabs.LastValues">
450 </instanceof>
451 </with>
452 </visibleWhen>
453 </command>
454 </menuContribution>
455 </extension>
456 <extension
457 point="org.eclipse.ui.actionSets">
458 <actionSet
459 id="org.netxms.ui.eclipse.datacollection.actionSet"
460 label="%actionSet.label.DataCollection"
461 visible="true">
462 <action
463 class="org.netxms.ui.eclipse.datacollection.actions.OpenSummaryTablesManager"
464 definitionId="org.netxms.ui.eclipse.datacollection.commands.open_dcisumtbl_manager"
465 icon="icons/summary_table.png"
466 id="org.netxms.ui.eclipse.datacollection.actions.open_dcisumtbl_manager"
467 label="%action.label.SummaryTablesConfig"
468 menubarPath="config/additions"
469 style="push"
470 tooltip="%action.tooltip.SummaryTablesConfig">
471 </action>
472 </actionSet>
473 </extension>
474 <extension
475 point="org.netxms.ui.eclipse.loginlisteners">
476 <loginlistener
477 class="org.netxms.ui.eclipse.datacollection.LoginListener">
478 </loginlistener>
479 </extension>
480 <extension
481 point="org.eclipse.ui.menus">
482 <menuContribution
483 allPopups="false"
484 locationURI="popup:org.eclipse.ui.popup.any?after=datacollection">
485 <dynamic
486 class="org.netxms.ui.eclipse.datacollection.SummaryTablesDynamicMenu"
487 id="org.netxms.ui.eclipse.datacollection.SummaryTablesDynamicMenu">
488 <visibleWhen
489 checkEnabled="false">
490 <and>
491 <iterate
492 ifEmpty="false"
493 operator="and">
494 <or>
495 <instanceof
496 value="org.netxms.client.objects.Container">
497 </instanceof>
498 <instanceof
499 value="org.netxms.client.objects.ServiceRoot">
500 </instanceof>
501 <instanceof
502 value="org.netxms.client.objects.Subnet">
503 </instanceof>
504 <instanceof
505 value="org.netxms.client.objects.Cluster">
506 </instanceof>
507 <instanceof
508 value="org.netxms.client.objects.Zone">
509 </instanceof>
510 <instanceof
511 value="org.netxms.client.objects.EntireNetwork">
512 </instanceof>
513 </or>
514 </iterate>
515 <with
516 variable="org.netxms.ui.eclipse.datacollection.SummaryTablesExist">
517 <equals
518 value="true">
519 </equals>
520 </with>
521 </and>
522 </visibleWhen>
523 </dynamic>
524 </menuContribution>
525 </extension>
526 <extension
527 point="org.eclipse.core.expressions.propertyTesters">
528 <propertyTester
529 class="org.netxms.ui.eclipse.datacollection.DataCollectionObjectPropertyTester"
530 id="org.netxms.ui.eclipse.datacollection.DataCollectionObjectPropertyTester"
531 namespace="org.netxms.ui.eclipse.datacollection"
532 properties="isClusterObject,isTemplateObject"
533 type="org.netxms.client.datacollection.DataCollectionObject">
534 </propertyTester>
535 <propertyTester
536 class="org.netxms.ui.eclipse.datacollection.DciSummaryTablePropertyTester"
537 id="org.netxms.ui.eclipse.datacollection.SummaryTableDciPropertyTester"
538 namespace="org.netxms.ui.eclipse.datacollection"
539 properties="isTableSource"
540 type="org.netxms.client.datacollection.DciSummaryTable">
541 </propertyTester>
542 </extension>
543 <extension
544 point="org.eclipse.ui.services">
545 <sourceProvider
546 provider="org.netxms.ui.eclipse.datacollection.SourceProvider">
547 <variable
548 name="org.netxms.ui.eclipse.datacollection.SummaryTablesExist"
549 priorityLevel="workbench">
550 </variable>
551 </sourceProvider>
552 </extension>
553
554 </plugin>