blob: c32a882e636ca474979588df8204805d85466b76 [file] [log] [blame]
nitindb0f7b262004-11-23 19:12:23 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin
4 id="org.eclipse.jst.jsp.ui"
5 name="%SSE_JSP_Source_Editor.name"
6 version="1.0.0"
nitind7416a132004-11-23 22:40:36 +00007 provider-name="Eclipse.org"
nitindb0f7b262004-11-23 19:12:23 +00008 class="org.eclipse.jst.jsp.ui.JSPEditorPlugin">
9
10 <runtime>
11 <library name="jspeditor.jar">
12 <export name="*"/>
13 </library>
14 </runtime>
15 <requires>
16 <import plugin="org.eclipse.core.runtime.compatibility"/>
17 <import plugin="org.eclipse.ui.ide"/>
18 <import plugin="org.eclipse.ui.views"/>
19 <import plugin="org.eclipse.jface.text"/>
20 <import plugin="org.eclipse.ui.workbench.texteditor"/>
21 <import plugin="org.eclipse.ui.editors"/>
22 <import plugin="org.eclipse.ui"/>
23 <import plugin="org.eclipse.wst.sse.ui"/>
24 <import plugin="org.eclipse.wst.html.ui"/>
25 <import plugin="org.eclipse.wst.css.ui"/>
26 <import plugin="org.eclipse.wst.xml.ui"/>
27 <import plugin="org.eclipse.jst.jsp.core"/>
28 <import plugin="org.eclipse.wst.html.core"/>
29 <import plugin="org.eclipse.wst.css.core"/>
30 <import plugin="org.eclipse.wst.xml.core"/>
31 <import plugin="org.eclipse.wst.xml.uriresolver" />
32 <import plugin="org.eclipse.wst.common.uriresolver"/>
33 <import plugin="org.eclipse.wst.sse.core"/>
34 <import plugin="org.eclipse.wst.common.contentmodel"/>
35 <import plugin="org.eclipse.jdt.ui"/>
36 <import plugin="org.eclipse.jdt.core"/>
37 <import plugin="org.eclipse.wst.javascript.common.ui"/>
38 <import plugin="org.eclipse.debug.core"/>
39 <import plugin="org.eclipse.jdt.debug"/>
40 <import plugin="org.eclipse.core.resources"/>
41 <import plugin="org.eclipse.core.runtime"/>
42 <import plugin="org.eclipse.wst.common.encoding"/>
43 <import plugin="org.eclipse.search"/>
44 <import plugin="org.eclipse.ltk.core.refactoring"/>
45 <import plugin="org.eclipse.ltk.ui.refactoring"/>
46 </requires>
47
48
49 <extension
50 point="org.eclipse.ui.editors">
51 <editor
52 name="%JSP_Source_Page_Editor.name"
53 icon="icons/sourceEditor.gif"
54 extensions="jsp, jsf, jspf, jspx"
55 contributorClass="org.eclipse.jst.jsp.ui.ActionContributorJSP"
56 class="org.eclipse.jst.jsp.ui.StructuredTextEditorJSP"
57 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
58 id="org.eclipse.jst.jsp.ui.StructuredTextEditorJSP">
59 </editor>
60 </extension>
61 <extension
62 point="org.eclipse.wst.sse.ui.extendedconfiguration">
63 <textviewerconfiguration
64 class="org.eclipse.jst.jsp.ui.StructuredTextViewerConfigurationJSP"
65 target="org.eclipse.jst.jsp.core.jspsource">
66 </textviewerconfiguration>
67 <contentoutlineconfiguration
68 class="org.eclipse.jst.jsp.ui.views.contentoutline.JSPContentOutlineConfiguration"
69 target="org.eclipse.jst.jsp.core.jspsource">
70 </contentoutlineconfiguration>
71 <propertysheetconfiguration
72 class="org.eclipse.wst.xml.ui.views.properties.XMLPropertySheetConfiguration"
73 target="org.eclipse.jst.jsp.core.jspsource">
74 </propertysheetconfiguration>
75 <spellchecktarget
76 class="org.eclipse.jst.jsp.ui.JSPSpellCheckTarget"
77 target="org.eclipse.jst.jsp.core.jspsource">
78 </spellchecktarget>
79 <sourceeditingtexttools
80 class="org.eclipse.jst.jsp.ui.extensions.JSPSourceEditingTextTools"
81 target="org.eclipse.jst.jsp.core.jspsource">
82 </sourceeditingtexttools>
83 <characterpairmatcher
84 class="org.eclipse.jst.jsp.ui.text.JSPDocumentRegionEdgeMatcher"
85 target="org.eclipse.jst.jsp.core.jspsource">
86 </characterpairmatcher>
87 <preferencepages
88 preferenceids="org.eclipse.wst.sse.ui.preferences/org.eclipse.wst.sse.ui.preferences.jsp"
89 target="org.eclipse.jst.jsp.core.jspsource">
90 </preferencepages>
91 </extension>
92 <extension
93 point="org.eclipse.wst.sse.ui.adapterFactoryDescription">
94 <adapterFactoryDescription
95 class="org.eclipse.jst.jsp.ui.registry.AdapterFactoryProviderForJSP">
96 <contentType id="org.eclipse.jst.jsp.core.jspsource"/>
97 </adapterFactoryDescription>
98 </extension>
99 <extension
100 point="org.eclipse.core.filebuffers.annotationModelCreation">
101 <factory
102 contentTypeId="org.eclipse.jst.jsp.core.jspsource"
103 class="org.eclipse.wst.sse.ui.StructuredResourceMarkerAnnotationModelFactory"/>
104 </extension>
105 <extension
106 point="org.eclipse.ui.preferencePages">
107
108<!--======================================================================================-->
109<!-- JSP PREFERENCE PAGES -->
110<!--======================================================================================-->
111 <page
112 name="%JSP_Files.name"
113 category="org.eclipse.wst.sse.ui.preferences"
114 class="org.eclipse.jst.jsp.ui.preferences.ui.JSPFilesPreferencePage"
115 id="org.eclipse.wst.sse.ui.preferences.jsp">
116 </page>
117 <page
118 name="%JSP_Templates.name"
119 category="org.eclipse.wst.sse.ui.preferences.jsp"
120 class="org.eclipse.jst.jsp.ui.preferences.ui.JSPTemplatePreferencePage"
121 id="org.eclipse.wst.sse.ui.preferences.jsp.templates">
122 </page>
123 <page
124 name="%JSP_Styles.name"
125 category="org.eclipse.wst.sse.ui.preferences.jsp"
126 class="org.eclipse.jst.jsp.ui.preferences.ui.JSPColorPage"
127 id="org.eclipse.wst.sse.ui.preferences.jsp.styles">
128 </page>
129 </extension>
130
131<!--======================================================================================-->
132<!-- FOR JSP/JAVA RENAME PARTICIPATION -->
133<!--======================================================================================-->
134 <extension
135 point="org.eclipse.ltk.core.refactoring.renameParticipants">
136 <renameParticipant
137 name="JSP Type Rename Participant"
138 class="org.eclipse.jst.jsp.ui.internal.java.refactoring.JSPTypeRenameParticipant"
139 id="org.eclipse.jst.jsp.ui.java.refactoring.JSPTypeRenameParticipant">
140 <enablement>
141 <with
142 variable="affectedNatures">
143 <iterate
144 operator="or">
145 <equals
146 value="org.eclipse.jdt.core.javanature">
147 </equals>
148 </iterate>
149 </with>
150 <with
151 variable="element">
152 <instanceof
153 value="org.eclipse.jdt.core.IType">
154 </instanceof>
155 </with>
156 </enablement>
157 </renameParticipant>
158
159 <renameParticipant
160 name="JSP Method Rename Participant"
161 class="org.eclipse.jst.jsp.ui.internal.java.refactoring.JSPMethodRenameParticipant"
162 id="org.eclipse.jst.jsp.ui.java.refactoring.JSPMethodRenameParticipant">
163 <enablement>
164 <with
165 variable="affectedNatures">
166 <iterate
167 operator="or">
168 <equals
169 value="org.eclipse.jdt.core.javanature">
170 </equals>
171 </iterate>
172 </with>
173 <with
174 variable="element">
175 <instanceof
176 value="org.eclipse.jdt.core.IMethod">
177 </instanceof>
178 </with>
179 </enablement>
180 </renameParticipant>
181
182 <renameParticipant
183 name="JSP Package Rename Participant"
184 class="org.eclipse.jst.jsp.ui.internal.java.refactoring.JSPPackageRenameParticipant"
185 id="org.eclipse.jst.jsp.ui.java.refactoring.JSPPackageRenameParticipant">
186 <enablement>
187 <with
188 variable="affectedNatures">
189 <iterate
190 operator="or">
191 <equals
192 value="org.eclipse.jdt.core.javanature">
193 </equals>
194 </iterate>
195 </with>
196 <with
197 variable="element">
198 <instanceof
199 value="org.eclipse.jdt.core.IPackageFragment">
200 </instanceof>
201 </with>
202 </enablement>
203 </renameParticipant>
204 </extension>
205
206<!--======================================================================================-->
207<!-- FOR JSP/JAVA MOVE PARTICIPATION -->
208<!--======================================================================================-->
209 <extension
210 point="org.eclipse.ltk.core.refactoring.moveParticipants">
211
212 <moveParticipant
213 id="org.eclipse.jst.jsp.ui.java.refactoring.JSPTypeMoveParticipant"
214 name="JSP Type Move Participant"
215 class="org.eclipse.jst.jsp.ui.internal.java.refactoring.JSPTypeMoveParticipant">
216 <enablement>
217 <with variable="affectedNatures">
218 <iterate operator="or">
219 <equals value="org.eclipse.jdt.core.javanature"/>
220 </iterate>
221 </with>
222 <with
223 variable="element">
224 <instanceof
225 value="org.eclipse.jdt.core.IType">
226 </instanceof>
227 </with>
228 </enablement>
229 </moveParticipant>
230 </extension>
231
232<!--======================================================================================-->
233<!-- for breakpoint -->
234<!--======================================================================================-->
235 <extension
236 point="org.eclipse.wst.sse.ui.breakpoint">
237 <breakpointContribution
238 id="org.eclipse.jst.jsp.ui.providers">
239<!--
240 <provider
241 extensions="jsp, jspf, jsf"
242 class="org.eclipse.jst.jsp.ui.breakpointproviders.JavaStratumBreakpointProvider"
243 id="org.eclipse.jst.jsp.ui.breakpointproviders.JavaStratumBreakpointProvider">
244 </provider>
245-->
246 <provider
247 contentTypes="org.eclipse.jst.jsp.core.jspsource"
248 class="org.eclipse.jst.jsp.ui.breakpointproviders.JavaStratumBreakpointProvider:*jsp"
249 id="org.eclipse.jst.jsp.ui.breakpointproviders.JavaStratumBreakpointProvider"/>
250 </breakpointContribution>
251 </extension>
252
253<!--======================================================================================-->
254<!-- Snippet View contributions -->
255<!--======================================================================================-->
256 <extension
257 point="org.eclipse.wst.sse.snippets.SnippetContributions">
258 <category
259 label="JSP"
260 icon="icons/snippets/tag-jsp.gif"
261 id="org.eclipse.jst.jsp.ui.category0"
262 contenttypes="org.eclipse.jst.jsp.core.jspsource"/>
263 <item
264 label="%jsp_hidden_comment"
265 icon="icons/snippets/tag-generic.gif"
266 category="org.eclipse.jst.jsp.ui.category0"
267 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
268 id="org.eclipse.jst.jsp.ui.jsp_hidden_comment">
269 <content>
270 %jsp_hidden_comment_content
271 </content>
272 </item>
273 <item
274 label="%jsp_scriptlet"
275 icon="icons/snippets/jspscr.gif"
276 category="org.eclipse.jst.jsp.ui.category0"
277 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
278 id="org.eclipse.jst.jsp.ui.jsp_scriptlet">
279 <content>
280 %jsp_scr_content
281 </content>
282 </item>
283 <item
284 label="%jsp_expression"
285 icon="icons/snippets/jspexp.gif"
286 category="org.eclipse.jst.jsp.ui.category0"
287 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
288 id="org.eclipse.jst.jsp.ui.jsp_expression">
289 <content>
290 %jsp_expression_content
291 </content>
292 </item>
293 <item
294 label="%jsp_declaration"
295 icon="icons/snippets/jspdecl.gif"
296 category="org.eclipse.jst.jsp.ui.category0"
297 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
298 id="org.eclipse.jst.jsp.ui.jsp_declaration">
299 <content>
300 %jsp_declaration_content
301 </content>
302 </item>
303 <item
304 label="%jsp_include_directive"
305 icon="icons/snippets/jspincl.gif"
306 category="org.eclipse.jst.jsp.ui.category0"
307 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
308 id="org.eclipse.jst.jsp.ui.jsp_include_directive">
309 <content>
310 %jsp_include_directive_content
311 </content>
312 </item>
313 <item
314 label="%jsp_page_directive"
315 category="org.eclipse.jst.jsp.ui.category0"
316 class="org.eclipse.wst.sse.snippets.insertions.VariableInsertion"
317 id="org.eclipse.jst.jsp.ui.jsp_page_directive">
318 <content>
319 %jsp_page_directive_content
320 </content>
321 </item>
322 <item
323 label="%jsp_taglib_directive"
324 icon="icons/snippets/jsptaglib.gif"
325 category="org.eclipse.jst.jsp.ui.category0"
326 class="org.eclipse.wst.sse.snippets.insertions.PrependInsertion"
327 id="org.eclipse.jst.jsp.ui.jsp_taglib_directive">
328 <content>
329 %jsp_taglib_directive_content
330 </content>
331 <variable
332 description="%jsp_taglib_directive_uri"
333 id="uri">
334 </variable>
335 <variable
336 default="mylib"
337 description="%jsp_taglib_directive_prefix"
338 id="prefix">
339 </variable>
340 </item>
341 </extension>
342
343<!-- Editor actionsets -->
344 <extension
345 point="org.eclipse.ui.actionSetPartAssociations">
346 <actionSetPartAssociation
347 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
348 <part
349 id="org.eclipse.jst.jsp.ui.StructuredTextEditorJSP">
350 </part>
351 </actionSetPartAssociation>
352 <actionSetPartAssociation
353 targetID="org.eclipse.ui.NavigateActionSet">
354 <part
355 id="org.eclipse.jst.jsp.ui.StructuredTextEditorJSP">
356 </part>
357 </actionSetPartAssociation>
358 </extension>
359
360<!--======================================================================================-->
361<!-- JSP Editor specific actions -->
362<!--======================================================================================-->
363 <extension
364 point="org.eclipse.ui.commands">
365 <scope
366 name="%scope.structured.text.editor.jsp.name"
367 parent="org.eclipse.ui.textEditorScope"
368 description="%scope.structured.text.editor.jsp.description"
369 id="org.eclipse.jst.jsp.ui.structured.text.editor.jsp.scope">
370 </scope>
371 <!-- dmw 6/6 removed from 'scope' parentId="org.eclipse.ui.textEditorScope" -->
372 <!-- rename refactor -->
373 <command
374 name="%command.jsp.refactor.rename.name"
375 description="%command.jsp.refactor.rename.description"
376 category="org.eclipse.ui.category.edit"
377 id="org.eclipse.jst.jsp.ui.refactor.rename">
378 </command>
379 <keyBinding
380 string="Alt+Shift+R"
381 scope="org.eclipse.jst.jsp.ui.structured.text.editor.jsp.scope"
382 command="org.eclipse.jst.jsp.ui.refactor.rename"
383 configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
384 </keyBinding>
385 <!-- move refactor -->
386 <command
387 name="%command.jsp.refactor.move.name"
388 description="%command.jsp.refactor.move.description"
389 category="org.eclipse.ui.category.edit"
390 id="org.eclipse.jst.jsp.ui.refactor.move">
391 </command>
392 <keyBinding
393 string="Alt+Shift+V"
394 scope="org.eclipse.jst.jsp.ui.structured.text.editor.jsp.scope"
395 command="org.eclipse.jst.jsp.ui.refactor.move"
396 configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
397 </keyBinding>
398 </extension>
399
400 <extension
david_williams8dfb6f52004-11-29 17:54:13 +0000401 point="org.eclipse.wst.sse.ui.openon">
nitindb0f7b262004-11-23 19:12:23 +0000402<!-- add a default open on action for jsp content type -->
403 <openon
404 class="org.eclipse.wst.html.ui.openon.DefaultOpenOnHTML"
405 id="org.eclipse.wst.html.ui.openon.DefaultOpenOnHTML">
406 <contenttypeidentifier
407 id="org.eclipse.jst.jsp.core.jspsource">
408 </contenttypeidentifier>
409 </openon>
410<!-- add an open on action for jsp java partitions -->
411 <openon
412 class="org.eclipse.jst.jsp.ui.openon.JSPJavaOpenOnJSP"
413 id="org.eclipse.jst.jsp.ui.openon.JSPJavaOpenOnJSP">
414 <contenttypeidentifier
415 id="org.eclipse.jst.jsp.core.jspsource">
416 <partitiontype
417 id="org.eclipse.jst.jsp.JSP_CONTENT_JAVA">
418 </partitiontype>
419 </contenttypeidentifier>
420 </openon>
421<!-- add an open on action for jsp directive partitions -->
422 <openon
423 class="org.eclipse.jst.jsp.ui.openon.JSPDirectiveOpenOnJSP"
424 id="org.eclipse.jst.jsp.ui.openon.JSPDirectiveOpenOnJSP">
425 <contenttypeidentifier
426 id="org.eclipse.jst.jsp.core.jspsource">
427 <partitiontype
428 id="org.eclipse.jst.jsp.JSP_DIRECTIVE">
429 </partitiontype>
430 </contenttypeidentifier>
431 </openon>
432 </extension>
433
434<!--======================================================================================-->
435<!-- Templates -->
436<!--======================================================================================-->
437 <extension
438 point="org.eclipse.ui.editors.templates">
439 <contextType
440 name="All JSP context type"
441 class="org.eclipse.jst.jsp.ui.templates.TemplateContextTypeJSP"
442 id="jsp_all">
443 </contextType>
444 <contextType
445 name="JSP Tag context type"
446 class="org.eclipse.jst.jsp.ui.templates.TemplateContextTypeJSPTag"
447 id="jsp_tag">
448 </contextType>
449 <contextType
450 name="JSP Attribute context type"
451 class="org.eclipse.jst.jsp.ui.templates.TemplateContextTypeJSPAttribute"
452 id="jsp_attribute">
453 </contextType>
454 <contextType
455 name="JSP Attribute value context type"
456 class="org.eclipse.jst.jsp.ui.templates.TemplateContextTypeJSPAttributeValue"
457 id="jsp_attribute_value">
458 </contextType>
459 <include
460 file="templates/jspdefault-templates.xml"
461 translations="templates/jspdefault-templates.properties">
462 </include>
463 </extension>
464
465<!--======================================================================================-->
466<!-- queryParticipant to participate in java seraches -->
467<!--======================================================================================-->
468 <extension
469 point="org.eclipse.jdt.ui.queryParticipants">
470 <queryParticipant
471 name="JSP Query Participant"
472 nature="org.eclipse.jdt.core.javanature"
473 class="org.eclipse.jst.jsp.ui.internal.java.search.ui.JSPQueryParticipant"
474 id="org.eclipse.jst.jsp.ui.java.search.ui.JSPQueryParticipant">
475 </queryParticipant>
476 </extension>
477</plugin>