ee0958aef198493b96caec8077835681313bc80f
[public/netxms.git] / src / java / netxms-eclipse / NXSL / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4 <extension
5 point="org.eclipse.ui.views">
6 <view
7 allowMultiple="false"
8 class="org.netxms.ui.eclipse.nxsl.views.ScriptLibrary"
9 icon="icons/library.png"
10 id="org.netxms.ui.eclipse.nxsl.views.ScriptLibrary"
11 name="%view.name.ScriptLibrary"
12 restorable="true">
13 </view>
14 <view
15 allowMultiple="true"
16 class="org.netxms.ui.eclipse.nxsl.views.ScriptEditorView"
17 icon="icons/editor.png"
18 id="org.netxms.ui.eclipse.nxsl.views.ScriptEditorView"
19 name="%view.name.EditScript"
20 restorable="true">
21 </view>
22 <view
23 allowMultiple="true"
24 category="org.netxms.ui.eclipse.viewcategory.config"
25 class="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
26 icon="icons/script_exec.gif"
27 id="org.netxms.ui.eclipse.nxsl.views.ScriptExecutor"
28 name="Script Executor"
29 restorable="false">
30 </view>
31 </extension>
32 <extension
33 point="org.eclipse.ui.commands">
34 <command
35 categoryId="org.netxms.ui.eclipse.console.category.views"
36 description="%command.description.ScriptLibrary"
37 id="org.netxms.ui.eclipse.nxsl.commands.open_script_library"
38 name="%command.name.ScriptLibrary">
39 </command>
40 <command
41 id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
42 name="Execute server script">
43 </command>
44 <command
45 id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
46 name="Execute">
47 </command>
48 <command
49 id="org.netxms.ui.eclipse.nxsl.commands.save"
50 name="Save">
51 </command>
52 <command
53 id="org.netxms.ui.eclipse.nxsl.commands.save_as"
54 name="Save as">
55 </command>
56 <command
57 id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
58 name="Clear output">
59 </command>
60 <command
61 id="org.netxms.ui.eclipse.nxsl.commands.compile"
62 name="Compile">
63 </command>
64 <command
65 id="org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"
66 name="Show line numbers">
67 </command>
68 <command
69 id="org.netxms.ui.eclipse.nxsl.commands.goToLine"
70 name="Go to line">
71 </command>
72 <command
73 id="org.netxms.ui.eclipse.nxsl.commands.cut"
74 name="Cut">
75 </command>
76 <command
77 id="org.netxms.ui.eclipse.nxsl.commands.copy"
78 name="Copy">
79 </command>
80 <command
81 id="org.netxms.ui.eclipse.nxsl.commands.paste"
82 name="Paste">
83 </command>
84 <command
85 id="org.netxms.ui.eclipse.nxsl.commands.selectAll"
86 name="Select all">
87 </command>
88 </extension>
89 <extension
90 point="org.eclipse.ui.actionSets">
91 <actionSet
92 id="org.netxms.ui.eclipse.action_set.script_library"
93 label="%actionSet.label.ScriptLibrary"
94 visible="true">
95 <action
96 class="org.netxms.ui.eclipse.nxsl.actions.OpenScriptLibrary"
97 definitionId="org.netxms.ui.eclipse.nxsl.commands.open_script_library"
98 icon="icons/library.png"
99 id="org.netxms.ui.eclipse.nxsl.actions.OpenScriptLibrary"
100 label="%action.label.ScriptLibrary"
101 menubarPath="config/additions"
102 style="push"
103 toolbarPath="config/additions"
104 tooltip="%action.tooltip.ScriptLibrary">
105 </action>
106 </actionSet>
107 </extension>
108 <extension
109 point="org.eclipse.ui.menus">
110 <menuContribution
111 allPopups="false"
112 locationURI="popup:org.eclipse.ui.popup.any?before=additions">
113 <command
114 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
115 icon="icons/script_exec.gif"
116 label="Execute server script"
117 style="push">
118 <visibleWhen
119 checkEnabled="false">
120 <iterate
121 ifEmpty="false"
122 operator="and">
123 <or>
124 <instanceof
125 value="org.netxms.client.objects.AbstractNode">
126 </instanceof>
127 <instanceof
128 value="org.netxms.client.objects.Container">
129 </instanceof>
130 <instanceof
131 value="org.netxms.client.objects.Cluster">
132 </instanceof>
133 <instanceof
134 value="org.netxms.client.objects.MobileDevice">
135 </instanceof>
136 <instanceof
137 value="org.netxms.client.objects.Subnet">
138 </instanceof>
139 </or>
140 </iterate>
141 </visibleWhen>
142 </command>
143 </menuContribution>
144 </extension>
145 <extension
146 point="org.eclipse.ui.handlers">
147 <handler
148 class="org.netxms.ui.eclipse.nxsl.actions.ExecuteServerScript"
149 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript">
150 </handler>
151 </extension>
152 <extension
153 point="org.eclipse.ui.contexts">
154 <context
155 id="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
156 name="Script Executor"
157 parentId="org.eclipse.ui.contexts.window">
158 </context>
159 <context
160 id="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
161 name="Script Editor"
162 parentId="org.eclipse.ui.contexts.window">
163 </context>
164 </extension>
165 <extension
166 point="org.eclipse.ui.bindings">
167 <key
168 commandId="org.netxms.ui.eclipse.nxsl.commands.execute_script"
169 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
170 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
171 sequence="F2">
172 </key>
173 <key
174 commandId="org.netxms.ui.eclipse.nxsl.commands.save"
175 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
176 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
177 sequence="M1+S">
178 </key>
179 <key
180 commandId="org.netxms.ui.eclipse.nxsl.commands.save_as"
181 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
182 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
183 sequence="M1+M2+S">
184 </key>
185 <key
186 commandId="org.netxms.ui.eclipse.nxsl.commands.clear_output"
187 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
188 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
189 sequence="M1+L">
190 </key>
191 <key
192 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
193 contextId="org.eclipse.ui.contexts.window"
194 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
195 sequence="M3+M2+S">
196 </key>
197 <key
198 commandId="org.netxms.ui.eclipse.nxsl.commands.save"
199 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
200 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
201 sequence="M1+S">
202 </key>
203 <key
204 commandId="org.netxms.ui.eclipse.nxsl.commands.compile"
205 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
206 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
207 sequence="F2">
208 </key>
209 <key
210 commandId="org.netxms.ui.eclipse.nxsl.commands.showLineNumbers"
211 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
212 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
213 sequence="M1+M3+L">
214 </key>
215 <key
216 commandId="org.netxms.ui.eclipse.nxsl.commands.goToLine"
217 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
218 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
219 sequence="M1+G">
220 </key>
221 <key
222 commandId="org.eclipse.ui.edit.findReplace"
223 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
224 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
225 sequence="M1+F">
226 </key>
227 <key
228 commandId="org.netxms.ui.eclipse.nxsl.commands.selectAll"
229 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
230 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
231 sequence="M1+A">
232 </key>
233 <key
234 commandId="org.netxms.ui.eclipse.nxsl.commands.copy"
235 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
236 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
237 sequence="M1+C">
238 </key>
239 <key
240 commandId="org.netxms.ui.eclipse.nxsl.commands.cut"
241 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
242 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
243 sequence="M1+X">
244 </key>
245 <key
246 commandId="org.netxms.ui.eclipse.nxsl.commands.paste"
247 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
248 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
249 sequence="M1+V">
250 </key>
251 </extension>
252
253 </plugin>