externalized strings
[public/netxms.git] / webui / webapp / NXSL / plugin.xml
CommitLineData
9b137e91
AK
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"
bf536086 11 name="%view.name.ScriptLibrary"
9b137e91
AK
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"
bf536086 19 name="%view.name.EditScript"
9b137e91
AK
20 restorable="true">
21 </view>
9b26e615
VK
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"
1101b4f0 28 name="%view.name.ScriptExecutor"
9b26e615
VK
29 restorable="false">
30 </view>
9b137e91
AK
31 </extension>
32 <extension
33 point="org.eclipse.ui.commands">
9b137e91
AK
34 <command
35 categoryId="org.netxms.ui.eclipse.console.category.views"
bf536086 36 description="%command.description.ScriptLibrary"
9b137e91 37 id="org.netxms.ui.eclipse.nxsl.commands.open_script_library"
bf536086 38 name="%command.name.ScriptLibrary">
9b137e91 39 </command>
9b26e615
VK
40 <command
41 id="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
1101b4f0 42 name="%command.name.ExecuteServerScript">
9b26e615
VK
43 </command>
44 <command
45 id="org.netxms.ui.eclipse.nxsl.commands.execute_script"
1101b4f0 46 name="%command.name.Execute">
9b26e615
VK
47 </command>
48 <command
49 id="org.netxms.ui.eclipse.nxsl.commands.save"
1101b4f0 50 name="%command.name.Save">
9b26e615
VK
51 </command>
52 <command
53 id="org.netxms.ui.eclipse.nxsl.commands.save_as"
1101b4f0 54 name="%command.name.SaveAs">
9b26e615
VK
55 </command>
56 <command
57 id="org.netxms.ui.eclipse.nxsl.commands.clear_output"
1101b4f0 58 name="%command.name.ClearOutput">
9b26e615 59 </command>
d881ea08
VK
60 <command
61 id="org.netxms.ui.eclipse.nxsl.commands.compile"
1101b4f0 62 name="%command.name.Compile">
d881ea08
VK
63 </command>
64
9b137e91
AK
65 </extension>
66 <extension
67 point="org.eclipse.ui.actionSets">
68 <actionSet
69 id="org.netxms.ui.eclipse.action_set.script_library"
bf536086 70 label="%actionSet.label.ScriptLibrary"
9b137e91
AK
71 visible="true">
72 <action
73 class="org.netxms.ui.eclipse.nxsl.actions.OpenScriptLibrary"
74 definitionId="org.netxms.ui.eclipse.nxsl.commands.open_script_library"
75 icon="icons/library.png"
76 id="org.netxms.ui.eclipse.nxsl.actions.OpenScriptLibrary"
bf536086 77 label="%action.label.ScriptLibrary"
9b137e91
AK
78 menubarPath="config/additions"
79 style="push"
80 toolbarPath="config/additions"
bf536086 81 tooltip="%action.tooltip.ScriptLibrary">
9b137e91
AK
82 </action>
83 </actionSet>
84 </extension>
9b26e615
VK
85 <extension
86 point="org.eclipse.ui.menus">
87 <menuContribution
88 allPopups="false"
89 locationURI="popup:org.eclipse.ui.popup.any?before=additions">
90 <command
91 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
92 icon="icons/script_exec.gif"
1101b4f0 93 label="%command.name.ExecuteServerScript"
9b26e615
VK
94 style="push">
95 <visibleWhen
96 checkEnabled="false">
c41bd257
VK
97 <iterate
98 ifEmpty="false"
99 operator="and">
9b26e615
VK
100 <or>
101 <instanceof
102 value="org.netxms.client.objects.AbstractNode">
103 </instanceof>
104 <instanceof
105 value="org.netxms.client.objects.Container">
106 </instanceof>
107 <instanceof
108 value="org.netxms.client.objects.Cluster">
109 </instanceof>
110 <instanceof
111 value="org.netxms.client.objects.MobileDevice">
112 </instanceof>
113 <instanceof
114 value="org.netxms.client.objects.Subnet">
115 </instanceof>
116 </or>
117 </iterate>
118 </visibleWhen>
119 </command>
120 </menuContribution>
121 </extension>
122 <extension
123 point="org.eclipse.ui.handlers">
124 <handler
125 class="org.netxms.ui.eclipse.nxsl.actions.ExecuteServerScript"
126 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript">
127 </handler>
128 </extension>
129 <extension
130 point="org.eclipse.ui.contexts">
131 <context
132 id="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
133 name="Script Executor"
134 parentId="org.eclipse.ui.contexts.window">
135 </context>
d881ea08
VK
136 <context
137 id="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
138 name="Script Editor"
139 parentId="org.eclipse.ui.contexts.window">
140 </context>
9b26e615
VK
141 </extension>
142 <extension
143 point="org.eclipse.ui.bindings">
144 <key
145 commandId="org.netxms.ui.eclipse.nxsl.commands.execute_script"
146 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
147 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
148 sequence="F2">
149 </key>
150 <key
151 commandId="org.netxms.ui.eclipse.nxsl.commands.save"
152 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
153 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
154 sequence="M1+S">
155 </key>
156 <key
157 commandId="org.netxms.ui.eclipse.nxsl.commands.save_as"
158 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
159 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
160 sequence="M1+M2+S">
161 </key>
162 <key
163 commandId="org.netxms.ui.eclipse.nxsl.commands.clear_output"
164 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptExecutor"
165 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
166 sequence="M1+L">
167 </key>
168 <key
169 commandId="org.netxms.ui.eclipse.nxsl.popupActions.ExecuteServerScript"
170 contextId="org.eclipse.ui.contexts.window"
171 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
172 sequence="M3+M2+S">
173 </key>
d881ea08
VK
174 <key
175 commandId="org.netxms.ui.eclipse.nxsl.commands.save"
176 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
177 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
178 sequence="M1+S">
179 </key>
180 <key
181 commandId="org.netxms.ui.eclipse.nxsl.commands.compile"
182 contextId="org.netxms.ui.eclipse.nxsl.context.ScriptEditor"
183 schemeId="org.netxms.ui.eclipse.defaultKeyBinding"
184 sequence="F2">
185 </key>
9b26e615 186 </extension>
9b137e91
AK
187
188</plugin>