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 | </extension> |
---|
39 | <extension point="org.eclipse.core.expressions.definitions"> |
---|
40 | <definition id="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
41 | <and> |
---|
42 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
---|
43 | <with variable="activeEditor"> |
---|
44 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
---|
45 | value="com.framsticks.framclipse.FramScript" |
---|
46 | forcePluginActivation="true"/> |
---|
47 | </with> |
---|
48 | </and> |
---|
49 | </definition> |
---|
50 | </extension> |
---|
51 | <extension |
---|
52 | point="org.eclipse.ui.preferencePages"> |
---|
53 | <page |
---|
54 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
---|
55 | id="com.framsticks.framclipse.FramScript" |
---|
56 | name="FramScript"> |
---|
57 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
58 | </page> |
---|
59 | <page |
---|
60 | category="com.framsticks.framclipse.FramScript" |
---|
61 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
---|
62 | id="com.framsticks.framclipse.FramScript.coloring" |
---|
63 | name="Syntax Coloring"> |
---|
64 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
65 | </page> |
---|
66 | <page |
---|
67 | category="com.framsticks.framclipse.FramScript" |
---|
68 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
---|
69 | id="com.framsticks.framclipse.FramScript.templates" |
---|
70 | name="Templates"> |
---|
71 | <keywordReference id="com.framsticks.framclipse.ui.keyword_FramScript"/> |
---|
72 | </page> |
---|
73 | </extension> |
---|
74 | <extension |
---|
75 | point="org.eclipse.ui.keywords"> |
---|
76 | <keyword |
---|
77 | id="com.framsticks.framclipse.ui.keyword_FramScript" |
---|
78 | label="FramScript"/> |
---|
79 | </extension> |
---|
80 | <extension |
---|
81 | point="org.eclipse.ui.commands"> |
---|
82 | <command |
---|
83 | description="Trigger expensive validation" |
---|
84 | id="com.framsticks.framclipse.FramScript.validate" |
---|
85 | name="Validate"> |
---|
86 | </command> |
---|
87 | </extension> |
---|
88 | <extension point="org.eclipse.ui.menus"> |
---|
89 | <menuContribution |
---|
90 | locationURI="popup:#TextEditorContext?after=group.edit"> |
---|
91 | <command |
---|
92 | commandId="com.framsticks.framclipse.FramScript.validate" |
---|
93 | style="push" |
---|
94 | tooltip="Trigger expensive validation"> |
---|
95 | <visibleWhen checkEnabled="false"> |
---|
96 | <reference |
---|
97 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
98 | </reference> |
---|
99 | </visibleWhen> |
---|
100 | </command> |
---|
101 | </menuContribution> |
---|
102 | </extension> |
---|
103 | <extension point="org.eclipse.ui.menus"> |
---|
104 | <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> |
---|
105 | <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
106 | <visibleWhen checkEnabled="false"> |
---|
107 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
108 | </reference> |
---|
109 | </visibleWhen> |
---|
110 | </command> |
---|
111 | </menuContribution> |
---|
112 | </extension> |
---|
113 | <extension point="org.eclipse.ui.handlers"> |
---|
114 | <handler |
---|
115 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
---|
116 | commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
117 | <activeWhen> |
---|
118 | <reference |
---|
119 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
120 | </reference> |
---|
121 | </activeWhen> |
---|
122 | </handler> |
---|
123 | </extension> |
---|
124 | |
---|
125 | <!-- adding resource factories --> |
---|
126 | |
---|
127 | <extension |
---|
128 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
129 | <parser |
---|
130 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
131 | type="neuro"> |
---|
132 | </parser> |
---|
133 | </extension> |
---|
134 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
135 | <resourceServiceProvider |
---|
136 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
137 | uriExtension="neuro"> |
---|
138 | </resourceServiceProvider> |
---|
139 | </extension> |
---|
140 | |
---|
141 | <extension |
---|
142 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
143 | <parser |
---|
144 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
145 | type="expdef"> |
---|
146 | </parser> |
---|
147 | </extension> |
---|
148 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
149 | <resourceServiceProvider |
---|
150 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
151 | uriExtension="expdef"> |
---|
152 | </resourceServiceProvider> |
---|
153 | </extension> |
---|
154 | |
---|
155 | <extension |
---|
156 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
157 | <parser |
---|
158 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
159 | type="style"> |
---|
160 | </parser> |
---|
161 | </extension> |
---|
162 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
163 | <resourceServiceProvider |
---|
164 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
165 | uriExtension="style"> |
---|
166 | </resourceServiceProvider> |
---|
167 | </extension> |
---|
168 | |
---|
169 | <extension |
---|
170 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
171 | <parser |
---|
172 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
173 | type="show"> |
---|
174 | </parser> |
---|
175 | </extension> |
---|
176 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
177 | <resourceServiceProvider |
---|
178 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
179 | uriExtension="show"> |
---|
180 | </resourceServiceProvider> |
---|
181 | </extension> |
---|
182 | |
---|
183 | <extension |
---|
184 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
185 | <parser |
---|
186 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
187 | type="script"> |
---|
188 | </parser> |
---|
189 | </extension> |
---|
190 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
191 | <resourceServiceProvider |
---|
192 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
193 | uriExtension="script"> |
---|
194 | </resourceServiceProvider> |
---|
195 | </extension> |
---|
196 | |
---|
197 | <extension |
---|
198 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
199 | <parser |
---|
200 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
201 | type="inc"> |
---|
202 | </parser> |
---|
203 | </extension> |
---|
204 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
205 | <resourceServiceProvider |
---|
206 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
207 | uriExtension="inc"> |
---|
208 | </resourceServiceProvider> |
---|
209 | </extension> |
---|
210 | |
---|
211 | |
---|
212 | |
---|
213 | |
---|
214 | <!-- Quick Outline --> |
---|
215 | <extension |
---|
216 | point="org.eclipse.ui.handlers"> |
---|
217 | <handler |
---|
218 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
---|
219 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
---|
220 | <activeWhen> |
---|
221 | <reference |
---|
222 | definitionId="com.framsticks.framclipse.FramScript.Editor.opened"> |
---|
223 | </reference> |
---|
224 | </activeWhen> |
---|
225 | </handler> |
---|
226 | </extension> |
---|
227 | <extension |
---|
228 | point="org.eclipse.ui.commands"> |
---|
229 | <command |
---|
230 | description="Open the quick outline." |
---|
231 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
232 | name="Quick Outline"> |
---|
233 | </command> |
---|
234 | </extension> |
---|
235 | <extension point="org.eclipse.ui.menus"> |
---|
236 | <menuContribution |
---|
237 | locationURI="popup:#TextEditorContext?after=group.open"> |
---|
238 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
239 | style="push" |
---|
240 | tooltip="Open Quick Outline"> |
---|
241 | <visibleWhen checkEnabled="false"> |
---|
242 | <reference definitionId="com.framsticks.framclipse.FramScript.Editor.opened"/> |
---|
243 | </visibleWhen> |
---|
244 | </command> |
---|
245 | </menuContribution> |
---|
246 | </extension> |
---|
247 | <!-- quickfix marker resolution generator --> |
---|
248 | <extension |
---|
249 | point="org.eclipse.ui.ide.markerResolution"> |
---|
250 | <markerResolutionGenerator |
---|
251 | class="com.framsticks.framclipse.ui.FramScriptExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"> |
---|
252 | </markerResolutionGenerator> |
---|
253 | </extension> |
---|
254 | </plugin> |
---|