fixed context conflict in object view; object tab context now can be defined in plugi...
[public/netxms.git] / webui / webapp / ObjectView / 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.objectview.tabs" name="Object Tabs" schema="schema/org.netxms.ui.eclipse.objectview.tabs.exsd"/>
5 <extension-point id="org.netxms.ui.eclipse.objectview.objectDetailsProvider" name="Object Details Provider" schema="schema/org.netxms.ui.eclipse.objectview.objectDetailsProvider.exsd"/>
6
7 <extension
8 point="org.eclipse.ui.views">
9 <view
10 name="%view.name.ObjectDetails"
11 allowMultiple="false"
12 icon="icons/object_details.png"
13 class="org.netxms.ui.eclipse.objectview.views.TabbedObjectView"
14 id="org.netxms.ui.eclipse.objectview.view.tabbed_object_view">
15 </view>
16 <view
17 allowMultiple="true"
18 class="org.netxms.ui.eclipse.objectview.views.ObjectStatusMapView"
19 id="org.netxms.ui.eclipse.objectview.views.ObjectStatusMapView"
20 name="%view.name.ObjectStatus"
21 restorable="true">
22 </view>
23 <view
24 allowMultiple="true"
25 class="org.netxms.ui.eclipse.objectview.views.SoftwareInventoryView"
26 icon="icons/software.png"
27 id="org.netxms.ui.eclipse.objectview.views.SoftwareInventoryView"
28 name="%view.name.SoftwareInventory"
29 restorable="true">
30 </view>
31 </extension>
32
33 <extension
34 point="org.eclipse.ui.commands">
35 <command
36 name="%command.name.ObjectDetails"
37 description="%command.description.ObjectDetails"
38 categoryId="org.netxms.ui.eclipse.console.category.views"
39 id="org.netxms.ui.eclipse.objectview.commands.open_tabbed_object_view">
40 </command>
41 <command
42 description="Toggle Filter"
43 id="org.netxms.ui.eclipse.objectview.commands.show_filter"
44 name="Toggle Filter">
45 <state
46 class="org.eclipse.jface.commands.ToggleState"
47 id="org.netxms.ui.eclipse.objectview.commands.show_filter.state">
48 </state>
49 <defaultHandler
50 class="org.netxms.ui.eclipse.objectview.actions.ToggleFilterHandler">
51 <parameter
52 name="default"
53 value="default">
54 </parameter>
55 </defaultHandler>
56 </command>
57 </extension>
58
59 <extension point = "org.eclipse.ui.actionSets">
60 <actionSet id="org.netxms.ui.eclipse.action_set.object_details"
61 label="%actionSet.label.ObjectDetails"
62 visible="true">
63 <action id="org.netxms.ui.eclipse.objectview.actions.open_tabbed_object_view"
64 menubarPath="view/primary"
65 label="%action.label.ObjectDetails"
66 tooltip="%action.tooltip.ObjectDetails"
67 icon="icons/object_details.png"
68 class="org.netxms.ui.eclipse.objectview.actions.ShowObjectDetailsView"
69 definitionId="org.netxms.ui.eclipse.objectview.commands.open_tabbed_object_view">
70 </action>
71 </actionSet>
72 </extension>
73
74 <extension
75 point="org.netxms.ui.eclipse.objectview.tabs">
76 <tab
77 class="org.netxms.ui.eclipse.objectview.objecttabs.ObjectOverview"
78 icon="icons/overview_tab.gif"
79 id="org.netxms.ui.eclipse.objectview.objecttabs.ObjectOverview"
80 name="%tab.name.Overview"
81 order="10">
82 </tab>
83 <tab
84 class="org.netxms.ui.eclipse.objectview.objecttabs.ComponentsTab"
85 icon="icons/components.png"
86 id="org.netxms.ui.eclipse.objectview.objecttabs.ComponentsTab"
87 name="%tab.name.Components"
88 order="50">
89 </tab>
90 <tab
91 class="org.netxms.ui.eclipse.objectview.objecttabs.InterfacesTab"
92 contextId="org.netxms.ui.eclipse.objectview.context.InterfacesTab"
93 icon="icons/interface.png"
94 id="org.netxms.ui.eclipse.objectview.objecttabs.InterfacesTab"
95 name="%tab.name.Interfaces"
96 order="60">
97 </tab>
98 <tab
99 class="org.netxms.ui.eclipse.objectview.objecttabs.NodesTab"
100 icon="icons/nodes.png"
101 id="org.netxms.ui.eclipse.objectview.objecttabs.NodesTab"
102 name="%tab.name.Nodes"
103 order="50">
104 </tab>
105 <tab
106 class="org.netxms.ui.eclipse.objectview.objecttabs.RackTab"
107 icon="icons/rack.gif"
108 id="org.netxms.ui.eclipse.objectview.objecttabs.RackTab"
109 name="%tab.name.Rack"
110 order="15">
111 </tab>
112 </extension>
113 <extension
114 point="org.eclipse.ui.popupMenus">
115 <objectContribution
116 adaptable="false"
117 id="org.netxms.ui.eclipse.objectview.actions.popup.object.Container"
118 objectClass="org.netxms.client.objects.Container">
119 <action
120 class="org.netxms.ui.eclipse.objectview.actions.ShowStatusMap"
121 enablesFor="1"
122 id="org.netxms.ui.eclipse.objectview.popupActions.ShowStatusMap_Container"
123 label="%action.label.StatusMap">
124 </action>
125 <action
126 class="org.netxms.ui.eclipse.objectview.actions.ShowSoftwareInventory"
127 enablesFor="1"
128 icon="icons/software.png"
129 id="org.netxms.ui.eclipse.objectview.popupActions.ShowSoftwareInventory_Container"
130 label="%action.label.SoftwareInventory">
131 </action>
132 </objectContribution>
133 <objectContribution
134 adaptable="false"
135 id="org.netxms.ui.eclipse.objectview.actions.popup.object.ServiceRoot"
136 objectClass="org.netxms.client.objects.ServiceRoot">
137 <action
138 class="org.netxms.ui.eclipse.objectview.actions.ShowStatusMap"
139 enablesFor="1"
140 id="org.netxms.ui.eclipse.objectview.popupActions.ShowStatusMap_ServiceRoot"
141 label="%action.label.StatusMap">
142 </action>
143 <action
144 class="org.netxms.ui.eclipse.objectview.actions.ShowSoftwareInventory"
145 enablesFor="1"
146 icon="icons/software.png"
147 id="org.netxms.ui.eclipse.objectview.popupActions.ShowSoftwareInventory_ServiceRoot"
148 label="%action.label.SoftwareInventory">
149 </action>
150 </objectContribution>
151 <objectContribution
152 adaptable="false"
153 id="org.netxms.ui.eclipse.objectview.actions.popup.object.Node"
154 objectClass="org.netxms.client.objects.Node">
155 <action
156 class="org.netxms.ui.eclipse.objectview.actions.ShowSoftwareInventory"
157 enablesFor="1"
158 icon="icons/software.png"
159 id="org.netxms.ui.eclipse.objectview.popupActions.ShowSoftwareInventory_Node"
160 label="%action.label.SoftwareInventory">
161 </action>
162 </objectContribution>
163 </extension>
164 <extension
165 point="org.eclipse.ui.services">
166 <sourceProvider
167 provider="org.netxms.ui.eclipse.objectview.SourceProvider">
168 <variable
169 name="org.netxms.ui.eclipse.objectview.ActiveTab"
170 priorityLevel="workbench">
171 </variable>
172 </sourceProvider>
173 </extension>
174 <extension
175 point="org.eclipse.ui.bindings">
176 <key
177 commandId="org.netxms.ui.eclipse.objectview.commands.show_filter"
178 contextId="org.netxms.ui.eclipse.objectview.context.InterfacesTab"
179 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
180 sequence="M1+F2">
181 </key>
182 </extension>
183 <extension
184 point="org.eclipse.ui.contexts">
185 <context
186 id="org.netxms.ui.eclipse.objectview.context.InterfacesTab"
187 name="Interfaces Tab"
188 parentId="org.eclipse.ui.contexts.window">
189 </context>
190 </extension>
191 <extension
192 point="org.eclipse.ui.menus">
193 <menuContribution
194 allPopups="false"
195 locationURI="menu:org.netxms.ui.eclipse.objectview.view.tabbed_object_view?after=additions">
196 <command
197 commandId="org.netxms.ui.eclipse.objectview.commands.show_filter"
198 label="Show &amp;filter"
199 style="toggle"
200 tooltip="Show Filter">
201 <visibleWhen
202 checkEnabled="false">
203 <with
204 variable="org.netxms.ui.eclipse.objectview.ActiveTab">
205 <instanceof
206 value="org.netxms.ui.eclipse.objectview.objecttabs.InterfacesTab">
207 </instanceof>
208 </with>
209 </visibleWhen>
210 </command>
211 </menuContribution>
212 </extension>
213
214 </plugin>