1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <?eclipse version="3.0"?> |
---|
3 | |
---|
4 | <plugin> |
---|
5 | |
---|
6 | <extension |
---|
7 | point="org.eclipse.ui.editors"> |
---|
8 | <editor |
---|
9 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" |
---|
10 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
---|
11 | default="true" |
---|
12 | extensions="neuro,expdef,style,show,script,inc" |
---|
13 | id="com.framsticks.framclipse.FramScript" |
---|
14 | icon="icons/frams.gif" |
---|
15 | name="FramScript Editor"> |
---|
16 | </editor> |
---|
17 | </extension> |
---|
18 | <extension |
---|
19 | point="org.eclipse.ui.handlers"> |
---|
20 | <handler |
---|
21 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" |
---|
22 | commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> |
---|
23 | <activeWhen> |
---|
24 | <reference |
---|
25 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
26 | </reference> |
---|
27 | </activeWhen> |
---|
28 | </handler> |
---|
29 | <handler |
---|
30 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" |
---|
31 | commandId="com.framsticks.framclipse.FramScript.validate"> |
---|
32 | <activeWhen> |
---|
33 | <reference |
---|
34 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
35 | </reference> |
---|
36 | </activeWhen> |
---|
37 | </handler> |
---|
38 | <!-- copy qualified name --> |
---|
39 | <handler |
---|
40 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler" |
---|
41 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"> |
---|
42 | <activeWhen> |
---|
43 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened" /> |
---|
44 | </activeWhen> |
---|
45 | </handler> |
---|
46 | <handler |
---|
47 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler" |
---|
48 | commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"> |
---|
49 | <activeWhen> |
---|
50 | <and> |
---|
51 | <reference definitionId="com.framsticks.framclipse.FramScript.XtextEditor.opened" /> |
---|
52 | <iterate> |
---|
53 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> |
---|
54 | </iterate> |
---|
55 | </and> |
---|
56 | </activeWhen> |
---|
57 | </handler> |
---|
58 | </extension> |
---|
59 | <extension point="org.eclipse.core.expressions.definitions"> |
---|
60 | <definition id="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
61 | <and> |
---|
62 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
---|
63 | <with variable="activeEditor"> |
---|
64 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
---|
65 | value="com.framsticks.framclipse.FramScript" |
---|
66 | forcePluginActivation="true"/> |
---|
67 | </with> |
---|
68 | </and> |
---|
69 | </definition> |
---|
70 | <definition id="com.framsticks.framclipse.FramScript.XtextEditor.opened"> |
---|
71 | <and> |
---|
72 | <reference definitionId="isXtextEditorActive"/> |
---|
73 | <with variable="activeEditor"> |
---|
74 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
---|
75 | value="com.framsticks.framclipse.FramScript" |
---|
76 | forcePluginActivation="true"/> |
---|
77 | </with> |
---|
78 | </and> |
---|
79 | </definition> |
---|
80 | </extension> |
---|
81 | <extension |
---|
82 | point="org.eclipse.ui.preferencePages"> |
---|
83 | <page |
---|
84 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
---|
85 | id="com.framsticks.framclipse.FramScript" |
---|
86 | name="FramScript"> |
---|
87 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
88 | </page> |
---|
89 | <page |
---|
90 | category="com.framsticks.framclipse.FramScript" |
---|
91 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
---|
92 | id="com.framsticks.framclipse.FramScript.coloring" |
---|
93 | name="Syntax Coloring"> |
---|
94 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
95 | </page> |
---|
96 | <page |
---|
97 | category="com.framsticks.framclipse.FramScript" |
---|
98 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
---|
99 | id="com.framsticks.framclipse.FramScript.templates" |
---|
100 | name="Templates"> |
---|
101 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
102 | </page> |
---|
103 | </extension> |
---|
104 | <extension |
---|
105 | point="org.eclipse.ui.propertyPages"> |
---|
106 | <page |
---|
107 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
---|
108 | id="com.framsticks.framclipse.FramScript" |
---|
109 | name="FramScript"> |
---|
110 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
111 | <enabledWhen> |
---|
112 | <adapt type="org.eclipse.core.resources.IProject"/> |
---|
113 | </enabledWhen> |
---|
114 | <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> |
---|
115 | </page> |
---|
116 | </extension> |
---|
117 | <extension |
---|
118 | point="org.eclipse.ui.keywords"> |
---|
119 | <keyword |
---|
120 | id="com.framsticks.framclipse.ui.keyword_FramScript" |
---|
121 | label="FramScript"/> |
---|
122 | </extension> |
---|
123 | <extension |
---|
124 | point="org.eclipse.ui.commands"> |
---|
125 | <command |
---|
126 | description="Trigger expensive validation" |
---|
127 | id="com.framsticks.framclipse.FramScript.validate" |
---|
128 | name="Validate"> |
---|
129 | </command> |
---|
130 | <!-- copy qualified name --> |
---|
131 | <command |
---|
132 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" |
---|
133 | categoryId="org.eclipse.ui.category.edit" |
---|
134 | description="Copy the qualified name for the selected element" |
---|
135 | name="Copy Qualified Name"> |
---|
136 | </command> |
---|
137 | <command |
---|
138 | id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" |
---|
139 | categoryId="org.eclipse.ui.category.edit" |
---|
140 | description="Copy the qualified name for the selected element" |
---|
141 | name="Copy Qualified Name"> |
---|
142 | </command> |
---|
143 | </extension> |
---|
144 | <extension point="org.eclipse.ui.menus"> |
---|
145 | <menuContribution |
---|
146 | locationURI="popup:#TextEditorContext?after=group.edit"> |
---|
147 | <command |
---|
148 | commandId="com.framsticks.framclipse.FramScript.validate" |
---|
149 | style="push" |
---|
150 | tooltip="Trigger expensive validation"> |
---|
151 | <visibleWhen checkEnabled="false"> |
---|
152 | <reference |
---|
153 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
154 | </reference> |
---|
155 | </visibleWhen> |
---|
156 | </command> |
---|
157 | </menuContribution> |
---|
158 | <!-- copy qualified name --> |
---|
159 | <menuContribution locationURI="popup:#TextEditorContext?after=copy"> |
---|
160 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" |
---|
161 | style="push" tooltip="Copy Qualified Name"> |
---|
162 | <visibleWhen checkEnabled="false"> |
---|
163 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened" /> |
---|
164 | </visibleWhen> |
---|
165 | </command> |
---|
166 | </menuContribution> |
---|
167 | <menuContribution locationURI="menu:edit?after=copy"> |
---|
168 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName" |
---|
169 | style="push" tooltip="Copy Qualified Name"> |
---|
170 | <visibleWhen checkEnabled="false"> |
---|
171 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened" /> |
---|
172 | </visibleWhen> |
---|
173 | </command> |
---|
174 | </menuContribution> |
---|
175 | <menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions"> |
---|
176 | <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName" |
---|
177 | style="push" tooltip="Copy Qualified Name"> |
---|
178 | <visibleWhen checkEnabled="false"> |
---|
179 | <and> |
---|
180 | <reference definitionId="com.framsticks.framclipse.FramScript.XtextEditor.opened" /> |
---|
181 | <iterate> |
---|
182 | <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" /> |
---|
183 | </iterate> |
---|
184 | </and> |
---|
185 | </visibleWhen> |
---|
186 | </command> |
---|
187 | </menuContribution> |
---|
188 | </extension> |
---|
189 | <extension point="org.eclipse.ui.menus"> |
---|
190 | <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> |
---|
191 | <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
192 | <visibleWhen checkEnabled="false"> |
---|
193 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
194 | </reference> |
---|
195 | </visibleWhen> |
---|
196 | </command> |
---|
197 | </menuContribution> |
---|
198 | </extension> |
---|
199 | <extension point="org.eclipse.ui.handlers"> |
---|
200 | <handler |
---|
201 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
---|
202 | commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
203 | <activeWhen> |
---|
204 | <reference |
---|
205 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
206 | </reference> |
---|
207 | </activeWhen> |
---|
208 | </handler> |
---|
209 | </extension> |
---|
210 | |
---|
211 | <!-- adding resource factories --> |
---|
212 | |
---|
213 | <extension |
---|
214 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
215 | <parser |
---|
216 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
217 | type="neuro"> |
---|
218 | </parser> |
---|
219 | </extension> |
---|
220 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
221 | <resourceServiceProvider |
---|
222 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
223 | uriExtension="neuro"> |
---|
224 | </resourceServiceProvider> |
---|
225 | </extension> |
---|
226 | |
---|
227 | <extension |
---|
228 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
229 | <parser |
---|
230 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
231 | type="expdef"> |
---|
232 | </parser> |
---|
233 | </extension> |
---|
234 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
235 | <resourceServiceProvider |
---|
236 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
237 | uriExtension="expdef"> |
---|
238 | </resourceServiceProvider> |
---|
239 | </extension> |
---|
240 | |
---|
241 | <extension |
---|
242 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
243 | <parser |
---|
244 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
245 | type="style"> |
---|
246 | </parser> |
---|
247 | </extension> |
---|
248 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
249 | <resourceServiceProvider |
---|
250 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
251 | uriExtension="style"> |
---|
252 | </resourceServiceProvider> |
---|
253 | </extension> |
---|
254 | |
---|
255 | <extension |
---|
256 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
257 | <parser |
---|
258 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
259 | type="show"> |
---|
260 | </parser> |
---|
261 | </extension> |
---|
262 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
263 | <resourceServiceProvider |
---|
264 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
265 | uriExtension="show"> |
---|
266 | </resourceServiceProvider> |
---|
267 | </extension> |
---|
268 | |
---|
269 | <extension |
---|
270 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
271 | <parser |
---|
272 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
273 | type="script"> |
---|
274 | </parser> |
---|
275 | </extension> |
---|
276 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
277 | <resourceServiceProvider |
---|
278 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
279 | uriExtension="script"> |
---|
280 | </resourceServiceProvider> |
---|
281 | </extension> |
---|
282 | |
---|
283 | <extension |
---|
284 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
285 | <parser |
---|
286 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
287 | type="inc"> |
---|
288 | </parser> |
---|
289 | </extension> |
---|
290 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
291 | <resourceServiceProvider |
---|
292 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
293 | uriExtension="inc"> |
---|
294 | </resourceServiceProvider> |
---|
295 | </extension> |
---|
296 | |
---|
297 | |
---|
298 | <!-- marker definitions for com.framsticks.framclipse.FramScript --> |
---|
299 | <extension |
---|
300 | id="framscript.check.fast" |
---|
301 | name="FramScript Problem" |
---|
302 | point="org.eclipse.core.resources.markers"> |
---|
303 | <super type="org.eclipse.xtext.ui.check.fast"/> |
---|
304 | <persistent value="true"/> |
---|
305 | </extension> |
---|
306 | <extension |
---|
307 | id="framscript.check.normal" |
---|
308 | name="FramScript Problem" |
---|
309 | point="org.eclipse.core.resources.markers"> |
---|
310 | <super type="org.eclipse.xtext.ui.check.normal"/> |
---|
311 | <persistent value="true"/> |
---|
312 | </extension> |
---|
313 | <extension |
---|
314 | id="framscript.check.expensive" |
---|
315 | name="FramScript Problem" |
---|
316 | point="org.eclipse.core.resources.markers"> |
---|
317 | <super type="org.eclipse.xtext.ui.check.expensive"/> |
---|
318 | <persistent value="true"/> |
---|
319 | </extension> |
---|
320 | |
---|
321 | <!-- Quick Outline --> |
---|
322 | <extension |
---|
323 | point="org.eclipse.ui.handlers"> |
---|
324 | <handler |
---|
325 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
---|
326 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
---|
327 | <activeWhen> |
---|
328 | <reference |
---|
329 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
330 | </reference> |
---|
331 | </activeWhen> |
---|
332 | </handler> |
---|
333 | </extension> |
---|
334 | <extension |
---|
335 | point="org.eclipse.ui.commands"> |
---|
336 | <command |
---|
337 | description="Open the quick outline." |
---|
338 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
339 | name="Quick Outline"> |
---|
340 | </command> |
---|
341 | </extension> |
---|
342 | <extension point="org.eclipse.ui.menus"> |
---|
343 | <menuContribution |
---|
344 | locationURI="popup:#TextEditorContext?after=group.open"> |
---|
345 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
346 | style="push" |
---|
347 | tooltip="Open Quick Outline"> |
---|
348 | <visibleWhen checkEnabled="false"> |
---|
349 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened"/> |
---|
350 | </visibleWhen> |
---|
351 | </command> |
---|
352 | </menuContribution> |
---|
353 | </extension> |
---|
354 | <!-- quickfix marker resolution generator for com.framsticks.framclipse.FramScript --> |
---|
355 | <extension |
---|
356 | point="org.eclipse.ui.ide.markerResolution"> |
---|
357 | <markerResolutionGenerator |
---|
358 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" |
---|
359 | markerType="com.framsticks.framclipse.ui.framscript.check.fast"> |
---|
360 | <attribute |
---|
361 | name="FIXABLE_KEY" |
---|
362 | value="true"> |
---|
363 | </attribute> |
---|
364 | </markerResolutionGenerator> |
---|
365 | <markerResolutionGenerator |
---|
366 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" |
---|
367 | markerType="com.framsticks.framclipse.ui.framscript.check.normal"> |
---|
368 | <attribute |
---|
369 | name="FIXABLE_KEY" |
---|
370 | value="true"> |
---|
371 | </attribute> |
---|
372 | </markerResolutionGenerator> |
---|
373 | <markerResolutionGenerator |
---|
374 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" |
---|
375 | markerType="com.framsticks.framclipse.ui.framscript.check.expensive"> |
---|
376 | <attribute |
---|
377 | name="FIXABLE_KEY" |
---|
378 | value="true"> |
---|
379 | </attribute> |
---|
380 | </markerResolutionGenerator> |
---|
381 | </extension> |
---|
382 | |
---|
383 | </plugin> |
---|