blob: aece224c94dc4b37ca25d90f21790a3c0cc9e234 [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001<?xml version="1.0" encoding="UTF-8"?>
amywu19503192008-03-26 05:32:35 +00002<?eclipse version="3.3"?>
jeffliu38477e82005-05-30 00:52:19 +00003<plugin>
david_williamscfdb2cd2004-11-11 08:37:49 +00004
david_williamsad0e4cc2005-06-04 01:49:19 +00005 <extension-point
6 id="adapterFactoryDescription"
nitind52fe70b2008-05-15 21:52:16 +00007 name="%Adapter_Factory_Description_Extension.name" ></extension-point>
david_williamsad0e4cc2005-06-04 01:49:19 +00008 <extension-point
david_williamsad0e4cc2005-06-04 01:49:19 +00009 id="extendedEditorActions"
nitind52fe70b2008-05-15 21:52:16 +000010 name="%Extended_Editor_Actions_Extension.name" ></extension-point>
david_williamsad0e4cc2005-06-04 01:49:19 +000011 <extension-point
12 id="dropTargetTransfers"
nitind52fe70b2008-05-15 21:52:16 +000013 name="%Drop_Target_Transfers_Extension.name" ></extension-point>
david_williamsad0e4cc2005-06-04 01:49:19 +000014 <extension-point
nitindf8e77632005-09-07 23:49:25 +000015 id="editorConfiguration"
david_williamsad0e4cc2005-06-04 01:49:19 +000016 name="%Extended_Editor_Configuration_Extension.name"
nitind52fe70b2008-05-15 21:52:16 +000017 schema="schema/editorconfiguration.exsd" ></extension-point>
david_williamscfdb2cd2004-11-11 08:37:49 +000018
david_williamsad0e4cc2005-06-04 01:49:19 +000019
nitindafbeaa42004-11-29 19:53:33 +000020 <!-- Make sure default preference values are set at runtime -->
21 <extension point="org.eclipse.core.runtime.preferences">
david_williamsad0e4cc2005-06-04 01:49:19 +000022 <initializer
23 class="org.eclipse.wst.sse.ui.internal.PreferenceInitializer" />
nitindafbeaa42004-11-29 19:53:33 +000024 </extension>
25
david_williamscfdb2cd2004-11-11 08:37:49 +000026
david_williamsad0e4cc2005-06-04 01:49:19 +000027 <!-- reusable extensions -->
nitindf8e77632005-09-07 23:49:25 +000028 <extension point="org.eclipse.wst.sse.ui.editorConfiguration">
nitindf8e77632005-09-07 23:49:25 +000029 <sourceViewerConfiguration
nitind1bf20a12005-09-15 11:48:15 +000030 class="org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration"
31 target="org.eclipse.wst.sse.ui.StructuredTextEditor" />
nitindf8e77632005-09-07 23:49:25 +000032 <provisionalDefinition
david_williamsad0e4cc2005-06-04 01:49:19 +000033 type="preferencepages"
34 value="org.eclipse.wst.sse.ui.preferences.editor"
nitind1bf20a12005-09-15 11:48:15 +000035 target="org.eclipse.wst.sse.ui.StructuredTextEditor" />
david_williamsad0e4cc2005-06-04 01:49:19 +000036 </extension>
37 <!-- associate the NavigateActionSet with various parts of the XML perspective-->
38 <extension point="org.eclipse.ui.actionSetPartAssociations">
39 <actionSetPartAssociation
40 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
41 <part
nitind1bf20a12005-09-15 11:48:15 +000042 id="org.eclipse.wst.sse.ui.StructuredTextEditor">
david_williamsad0e4cc2005-06-04 01:49:19 +000043 </part>
44 </actionSetPartAssociation>
45 <actionSetPartAssociation
46 targetID="org.eclipse.ui.NavigateActionSet">
david_williamsad0e4cc2005-06-04 01:49:19 +000047 <part
nitind1bf20a12005-09-15 11:48:15 +000048 id="org.eclipse.wst.sse.ui.StructuredTextEditor">
david_williamsad0e4cc2005-06-04 01:49:19 +000049 </part>
50 </actionSetPartAssociation>
nitinda51d1292007-09-06 10:52:33 +000051 <actionSetPartAssociation
52 targetID="org.eclipse.debug.ui.launchActionSet">
53 <part id="org.eclipse.wst.sse.ui.StructuredTextEditor"/>
54 </actionSetPartAssociation>
david_williamsad0e4cc2005-06-04 01:49:19 +000055 </extension>
amywu73701a02006-12-06 00:16:27 +000056
57 <!-- Keywords for preference and properties pages -->
58 <extension point="org.eclipse.ui.keywords">
59 <keyword
60 label="%preferenceKeywords.todo"
61 id="org.eclipse.wst.sse.ui.todo"/>
62 <keyword
63 label="%preferenceKeywords.sseeditor"
64 id="org.eclipse.wst.sse.ui.sseeditor"/>
65 </extension>
66
david_williamsad0e4cc2005-06-04 01:49:19 +000067 <extension point="org.eclipse.ui.preferencePages">
david_williamsad0e4cc2005-06-04 01:49:19 +000068 <!-- Source Editor Preference page under Workbench->Editors -->
69 <page
70 name="%Structured_Text_Editor.name"
71 category="org.eclipse.ui.preferencePages.Editors"
72 class="org.eclipse.wst.sse.ui.internal.preferences.ui.StructuredTextEditorPreferencePage"
73 id="org.eclipse.wst.sse.ui.preferences.editor">
amywu73701a02006-12-06 00:16:27 +000074 <keywordReference id="org.eclipse.wst.sse.ui.sseeditor"/>
david_williamsad0e4cc2005-06-04 01:49:19 +000075 </page>
nitind92b945e2008-02-07 07:46:35 +000076
77 <!-- SSE task tags preference page under that-->
78 <page
79 name="%Task_Tags_Preferences.name"
80 category="org.eclipse.wst.sse.ui.preferences.editor"
81 class="org.eclipse.wst.sse.ui.internal.preferences.ui.TaskTagPreferencePage"
82 id="org.eclipse.wst.sse.ui.preferences.tasktags">
83 <keywordReference id="org.eclipse.wst.sse.ui.todo"/>
84 </page>
david_williamsad0e4cc2005-06-04 01:49:19 +000085 </extension>
86 <!-- ================================================================================================ -->
87 <!-- common task tags property page -->
88 <!-- ================================================================================================ -->
nitinda3c34752005-06-03 20:12:28 +000089 <extension point="org.eclipse.ui.propertyPages">
david_williamsad0e4cc2005-06-04 01:49:19 +000090 <page
91 id="org.eclipse.wst.sse.ui.project.properties.tasktags"
92 name="%Task_Tags_Preferences.name"
amywu60df3242006-11-03 23:45:29 +000093 class="org.eclipse.wst.sse.ui.internal.preferences.ui.TaskTagPreferencePage">
94 <enabledWhen>
95 <and>
96 <adapt type="org.eclipse.core.resources.IProject">
97 </adapt>
98 </and>
99 </enabledWhen>
amywu73701a02006-12-06 00:16:27 +0000100 <keywordReference id="org.eclipse.wst.sse.ui.todo"/>
amywu60df3242006-11-03 23:45:29 +0000101 </page>
nitinda3c34752005-06-03 20:12:28 +0000102 </extension>
103
david_williamsad0e4cc2005-06-04 01:49:19 +0000104 <!--
david_williamscfdb2cd2004-11-11 08:37:49 +0000105 <extension-point id="dragSourceTransfers" name="Drag Source Transfers"/>
106 -->
david_williamsad0e4cc2005-06-04 01:49:19 +0000107 <extension point="org.eclipse.ui.commands">
david_williamsad0e4cc2005-06-04 01:49:19 +0000108 <!-- Edit commands -->
109 <command
110 name="%ActionDefinition.selectEnclosing.name"
111 description="%ActionDefinition.selectEnclosing.description"
nitind102e60a2005-09-15 12:42:42 +0000112 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000113 id="org.eclipse.wst.sse.ui.structure.select.enclosing">
114 </command>
115 <command
116 name="%ActionDefinition.selectNext.name"
117 description="%ActionDefinition.selectNext.description"
nitind102e60a2005-09-15 12:42:42 +0000118 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000119 id="org.eclipse.wst.sse.ui.structure.select.next">
120 </command>
121 <command
122 name="%ActionDefinition.selectPrevious.name"
123 description="%ActionDefinition.selectPrevious.description"
nitind102e60a2005-09-15 12:42:42 +0000124 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000125 id="org.eclipse.wst.sse.ui.structure.select.previous">
126 </command>
127 <command
128 name="%ActionDefinition.selectLast.name"
129 description="%ActionDefinition.selectLast.description"
nitind102e60a2005-09-15 12:42:42 +0000130 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000131 id="org.eclipse.wst.sse.ui.structure.select.last">
132 </command>
david_williamsad0e4cc2005-06-04 01:49:19 +0000133 <!-- Source commands -->
134 <command
135 name="%command.toggle.comment.name"
136 description="%command.toggle.comment.description"
nitind102e60a2005-09-15 12:42:42 +0000137 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000138 id="org.eclipse.wst.sse.ui.toggle.comment">
139 </command>
140 <command
141 name="%command.add.block.comment.name"
142 description="%command.add.block.comment.description"
nitind102e60a2005-09-15 12:42:42 +0000143 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000144 id="org.eclipse.wst.sse.ui.add.block.comment">
145 </command>
146 <command
147 name="%command.remove.block.comment.name"
148 description="%command.remove.block.comment.description"
nitind102e60a2005-09-15 12:42:42 +0000149 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000150 id="org.eclipse.wst.sse.ui.remove.block.comment">
151 </command>
152 <command
153 name="%command.cleanup.document.name"
154 description="%command.cleanup.document.description"
nitind102e60a2005-09-15 12:42:42 +0000155 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000156 id="org.eclipse.wst.sse.ui.cleanup.document">
157 </command>
158 <command
159 name="%command.format.document.name"
160 description="%command.format.document.description"
nitind102e60a2005-09-15 12:42:42 +0000161 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000162 id="org.eclipse.wst.sse.ui.format.document">
163 </command>
164 <command
165 name="%command.format.active.elements.name"
166 description="%command.format.active.elements.description"
nitind102e60a2005-09-15 12:42:42 +0000167 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000168 id="org.eclipse.wst.sse.ui.format.active.elements">
169 </command>
170 <!-- Navigate commands -->
171 <command
172 name="%command.open.file.from.source.name"
173 description="%command.open.file.from.source.description"
nitind102e60a2005-09-15 12:42:42 +0000174 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000175 id="org.eclipse.wst.sse.ui.open.file.from.source">
176 </command>
nitindfef1e032008-02-26 02:53:34 +0000177 <command
178 name="%ActionDefinition.gotoMatchingBracket.name"
179 description="%ActionDefinition.gotoMatchingBracket.description"
180 categoryId="org.eclipse.ui.category.navigate"
181 id="org.eclipse.wst.sse.ui.goto.matching.bracket">
182 </command>
david_williamsad0e4cc2005-06-04 01:49:19 +0000183 <!-- Find Occurrences -->
184 <command
185 name="%command.search.find.occurrences.name"
186 description="%command.search.find.occurrences.description"
nitind102e60a2005-09-15 12:42:42 +0000187 categoryId="org.eclipse.ui.category.edit"
david_williamsad0e4cc2005-06-04 01:49:19 +0000188 id="org.eclipse.wst.sse.ui.search.find.occurrences">
189 </command>
nitind102e60a2005-09-15 12:42:42 +0000190 </extension>
191 <!-- Keybinding scope for source editor -->
192 <extension point="org.eclipse.ui.contexts">
193 <context
194 name="%scope.structuredTextEditor.name"
195 parentId="org.eclipse.ui.textEditorScope"
196 description="%scope.structuredTextEditor.description"
197 id="org.eclipse.wst.sse.ui.structuredTextEditorScope">
198 </context>
199 </extension>
200 <!-- Keybindings for source editor -->
201 <extension point="org.eclipse.ui.bindings">
amywu4ab08192006-04-11 20:22:18 +0000202 <!-- win32: M1=CTRL, M2=SHIFT, M3=ALT -->
david_williamsad0e4cc2005-06-04 01:49:19 +0000203 <!-- Edit commands -->
nitind102e60a2005-09-15 12:42:42 +0000204 <key
amywu4ab08192006-04-11 20:22:18 +0000205 sequence="M2+M3+ARROW_UP"
nitind102e60a2005-09-15 12:42:42 +0000206 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
207 commandId="org.eclipse.wst.sse.ui.structure.select.enclosing"
208 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
209 </key>
210 <key
amywu4ab08192006-04-11 20:22:18 +0000211 sequence="M2+M3+ARROW_RIGHT"
nitind102e60a2005-09-15 12:42:42 +0000212 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
213 commandId="org.eclipse.wst.sse.ui.structure.select.next"
214 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
215 </key>
216 <key
amywu4ab08192006-04-11 20:22:18 +0000217 sequence="M2+M3+ARROW_LEFT"
nitind102e60a2005-09-15 12:42:42 +0000218 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
219 commandId="org.eclipse.wst.sse.ui.structure.select.previous"
220 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
221 </key>
222 <key
amywu4ab08192006-04-11 20:22:18 +0000223 sequence="M2+M3+ARROW_DOWN"
nitind102e60a2005-09-15 12:42:42 +0000224 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
225 commandId="org.eclipse.wst.sse.ui.structure.select.last"
226 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
227 </key>
david_williamsad0e4cc2005-06-04 01:49:19 +0000228 <!-- Source commands -->
nitind102e60a2005-09-15 12:42:42 +0000229 <key
amywu4ab08192006-04-11 20:22:18 +0000230 sequence="M1+M2+C"
nitind102e60a2005-09-15 12:42:42 +0000231 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
232 commandId="org.eclipse.wst.sse.ui.toggle.comment"
233 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
234 </key>
235 <key
amywu4ab08192006-04-11 20:22:18 +0000236 sequence="M1+M2+/"
nitind102e60a2005-09-15 12:42:42 +0000237 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
238 commandId="org.eclipse.wst.sse.ui.add.block.comment"
239 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
240 </key>
241 <key
nitinde76a3ba2008-05-22 16:32:50 +0000242 sequence="M1+/"
243 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
244 commandId="org.eclipse.wst.sse.ui.add.block.comment"
245 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
246 platform="carbon">
247 </key>
248 <key
amywu4ab08192006-04-11 20:22:18 +0000249 sequence="M1+M2+\"
nitind102e60a2005-09-15 12:42:42 +0000250 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
251 commandId="org.eclipse.wst.sse.ui.remove.block.comment"
252 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
253 </key>
254 <key
nitinde76a3ba2008-05-22 16:32:50 +0000255 sequence="M1+\"
256 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
257 commandId="org.eclipse.wst.sse.ui.remove.block.comment"
258 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
259 platform="carbon">
260 </key>
261 <key
amywu4ab08192006-04-11 20:22:18 +0000262 sequence="M1+M2+F"
nitind102e60a2005-09-15 12:42:42 +0000263 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
264 commandId="org.eclipse.wst.sse.ui.format.document"
265 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
266 </key>
267 <key
amywu4ab08192006-04-11 20:22:18 +0000268 sequence="M1+I"
nitind102e60a2005-09-15 12:42:42 +0000269 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
270 commandId="org.eclipse.wst.sse.ui.format.active.elements"
271 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
272 </key>
david_williamsad0e4cc2005-06-04 01:49:19 +0000273 <!-- Navigate commands -->
nitind102e60a2005-09-15 12:42:42 +0000274 <key
275 sequence="F3"
276 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
277 commandId="org.eclipse.wst.sse.ui.open.file.from.source"
278 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
279 </key>
nitindfef1e032008-02-26 02:53:34 +0000280 <key
281 sequence="M1+M2+P"
282 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
283 commandId="org.eclipse.wst.sse.ui.goto.matching.bracket"
284 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000285 <!-- Find Occurrences -->
nitind102e60a2005-09-15 12:42:42 +0000286 <key
amywu4ab08192006-04-11 20:22:18 +0000287 sequence="M1+M2+A"
nitind102e60a2005-09-15 12:42:42 +0000288 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
289 commandId="org.eclipse.wst.sse.ui.search.find.occurrences"
290 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
291 </key>
david_williamscfdb2cd2004-11-11 08:37:49 +0000292 </extension>
david_williamsad0e4cc2005-06-04 01:49:19 +0000293 <!-- Font and colors contributions -->
294 <extension point="org.eclipse.ui.themes">
295 <themeElementCategory
296 label="%Structured_Text_Editor.name"
297 id="org.eclipse.wst.sse.ui">
298 </themeElementCategory>
299 <fontDefinition
300 label="%sourceEditorFontDefiniton.label"
301 categoryId="org.eclipse.wst.sse.ui"
302 defaultsTo="org.eclipse.jface.textfont"
303 id="org.eclipse.wst.sse.ui.textfont">
304 <description>
305 %sourceEditorFontDefintion.description
306 </description>
307 </fontDefinition>
308 </extension>
309 <extension point="org.eclipse.wst.sse.ui.dropTargetTransfers">
310 <dropTargetContribution
nitind1bf20a12005-09-15 11:48:15 +0000311 targetID="org.eclipse.wst.sse.ui.StructuredTextEditor"
david_williamsad0e4cc2005-06-04 01:49:19 +0000312 id="org.eclipse.wst.sse.ui.extension.ExtendedTransfers">
313 <transfer
314 priority="mid"
315 singleton="true"
316 class="org.eclipse.swt.dnd.FileTransfer"
317 method="getInstance"
318 id="org.eclipse.swt.dnd.FileTransfer">
319 </transfer>
320 <dropAction
321 class="org.eclipse.wst.sse.ui.internal.FileDropAction"
322 transferID="org.eclipse.swt.dnd.FileTransfer"
323 id="org.eclipse.wst.sse.ui.internal.FileDropAction">
324 </dropAction>
325 <transfer
326 priority="low"
327 singleton="true"
328 class="org.eclipse.swt.dnd.TextTransfer"
329 method="getInstance"
330 id="org.eclipse.swt.dnd.TextTransfer">
331 </transfer>
332 <dropAction
333 class="org.eclipse.wst.sse.ui.internal.TextDropAction"
334 transferID="org.eclipse.swt.dnd.TextTransfer"
335 id="org.eclipse.wst.sse.ui.internal.TextDropAction">
336 </dropAction>
337 </dropTargetContribution>
338 </extension>
339
340 <extension point="org.eclipse.ui.editors.annotationTypes">
341 <type
342 super="org.eclipse.ui.workbench.texteditor.error"
343 markerType="org.eclipse.wst.sse.problem"
344 name="org.eclipse.wst.sse.ui.temp.error"
345 markerSeverity="2">
346 </type>
347 <type
348 super="org.eclipse.ui.workbench.texteditor.warning"
349 markerType="org.eclipse.wst.sse.problem"
350 name="org.eclipse.wst.sse.ui.temp.warning"
351 markerSeverity="1">
352 </type>
353
354 <type
355 super="org.eclipse.ui.workbench.texteditor.info"
356 markerType="org.eclipse.wst.sse.problem"
357 name="org.eclipse.wst.sse.ui.temp.info"
358 markerSeverity="0">
359 </type>
360 </extension>
361 <extension
362 point="org.eclipse.ui.editors.markerAnnotationSpecification">
363
364 <!--================================================================================================-->
365 <!-- same as eclipse text ui (including preference keys), except for vertical ruler & preference page -->
366 <!--================================================================================================-->
367 <specification
368 annotationType="org.eclipse.wst.sse.ui.temp.error"
369 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
370 verticalRulerPreferenceValue="true"
371 verticalRulerPreferenceKey="sseErrorIndicationInVerticalRuler"
372 includeOnPreferencePage="false">
373 </specification>
374 <specification
375 annotationType="org.eclipse.wst.sse.ui.temp.warning"
376 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
377 verticalRulerPreferenceValue="false"
378 verticalRulerPreferenceKey="sseWarningIndicationInVerticalRuler"
379 includeOnPreferencePage="false">
380 </specification>
381 <specification
382 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
383 annotationType="org.eclipse.wst.sse.ui.temp.info">
384 </specification>
385 </extension>
386 <!-- dynamic content type supporting editor, no supported file extensions by default -->
387 <extension point="org.eclipse.ui.editors">
388 <editor
389 name="%Standalone_Structured_Source_Editor.name"
david_williamsb5d05632006-02-27 09:24:00 +0000390 icon="$nl$/icons/sourceEditor.gif"
david_williamsad0e4cc2005-06-04 01:49:19 +0000391 contributorClass="org.eclipse.wst.sse.ui.internal.actions.ActionContributor"
nitind1bf20a12005-09-15 11:48:15 +0000392 class="org.eclipse.wst.sse.ui.StructuredTextEditor"
david_williamsad0e4cc2005-06-04 01:49:19 +0000393 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
nitind1bf20a12005-09-15 11:48:15 +0000394 id="org.eclipse.wst.sse.ui.StructuredTextEditor">
david_williamsad0e4cc2005-06-04 01:49:19 +0000395 </editor>
396 </extension>
amywu19503192008-03-26 05:32:35 +0000397
398<!-- <extension point="org.eclipse.ui.popupMenus">
david_williamsad0e4cc2005-06-04 01:49:19 +0000399 <objectContribution
400 objectClass="org.eclipse.core.resources.IContainer"
401 id="org.eclipse.wst.sse.ui.actions.ContainerSourceActions">
402 <menu
403 label="%Source"
404 path="additions"
405 id="source">
406 <groupMarker name="sourceGroup"></groupMarker>
407 </menu>
408 <action
409 label="%FormatDocument"
410 class="org.eclipse.wst.sse.ui.internal.actions.FormatActionDelegate"
411 menubarPath="source/sourceGroup"
412 enablesFor="+"
413 id="org.eclipse.wst.sse.ui.actions.ContainerSourceActions.Format">
414 </action>
415 </objectContribution>
416 <objectContribution
417 objectClass="org.eclipse.core.resources.IFile"
418 id="org.eclipse.wst.sse.ui.actions.FileSourceActions">
419 <menu
420 label="%Source"
421 path="additions"
422 id="source">
423 <groupMarker name="sourceGroup"></groupMarker>
424 </menu>
425 <action
426 label="%FormatDocument"
427 class="org.eclipse.wst.sse.ui.internal.actions.FormatActionDelegate"
428 menubarPath="source/sourceGroup"
429 enablesFor="+"
430 id="org.eclipse.wst.sse.ui.actions.FileSourceActions.Format">
431 </action>
432 </objectContribution>
nitind6d98c7b2005-10-07 21:17:31 +0000433 </extension>
amywu19503192008-03-26 05:32:35 +0000434 -->
435 <!--
nitind6d98c7b2005-10-07 21:17:31 +0000436 <extension
437 point="org.eclipse.ui.editorActions">
438 <editorContribution
439 targetID="org.eclipse.wst.sse.ui.StructuredTextEditor"
440 id="org.eclipse.wst.sse.ui.StructuredTextEditor.ruler.actions">
441 <action
amywu34aa9802005-12-06 23:33:16 +0000442 label="%AddBookmark.label"
nitind6d98c7b2005-10-07 21:17:31 +0000443 helpContextId="org.eclipse.ui.bookmark_action_context"
444 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
445 actionID="RulerDoubleClick"
446 id="org.eclipse.ui.texteditor.BookmarkRulerAction">
447 </action>
448 <action
amywu34aa9802005-12-06 23:33:16 +0000449 label="%SelectRuler.label"
nitind6d98c7b2005-10-07 21:17:31 +0000450 class="org.eclipse.ui.texteditor.SelectRulerAction"
451 actionID="RulerClick"
452 id="org.eclipse.ui.texteditor.SelectRulerAction">
453 </action>
454 </editorContribution>
455 </extension>
amywu19503192008-03-26 05:32:35 +0000456 -->
457
david_williamsad0e4cc2005-06-04 01:49:19 +0000458 <!--================================================================================================-->
459 <!-- contribute a SearchResultViewPage for Occurrences in file -->
460 <!--================================================================================================-->
461 <extension
462 id="Occurrences search page"
463 point="org.eclipse.search.searchResultViewPages">
464 <viewPage
465 id="org.eclipse.wst.sse.ui.search.OccurrencesSearchResultPage"
466 searchResultClass="org.eclipse.wst.sse.ui.internal.search.OccurrencesSearchResult"
467 class="org.eclipse.wst.sse.ui.internal.search.OccurrencesSearchViewPage">
468 </viewPage>
469 </extension>
470
471 <!-- extension point for breakpoint extension -->
472 <extension-point
473 id="breakpoint"
474 name="%Breakpoint_Extension_Point.name" />
475 <!-- extension point for source validation -->
476 <!-- interfaces for this extension point can be found in org.eclipse.wst.validation -->
477 <extension-point
478 id="sourcevalidation"
479 name="%Source_Validation_Extension_Point.name"
david_williams41af4a72006-08-13 22:10:23 +0000480 schema="schema/org.eclipse.wst.sse.ui.sourcevalidation.exsd" />
amywu0d6f6da2008-03-27 11:39:33 +0000481 <extension-point
482 id="quickFixProcessor"
483 name="%quickFixProcessor"
484 schema="schema/quickFixProcessor.exsd"/>
485
amywu19503192008-03-26 05:32:35 +0000486 <extension point="org.eclipse.ui.menus">
487 <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=edit">
488 <menu id="sourceMenuId" label="%Source"></menu>
489 </menuContribution>
490 <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=sourceMenuId">
491 <menu id="refactorMenuId" label="%Refactor"></menu>
492 </menuContribution>
amywud0a69a02008-03-27 02:58:48 +0000493 <menuContribution locationURI="menu:edit?after=additions">
494 <menu id="expandSelectionToMenuId" label="%ExpandSelectionTo"></menu>
495 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000496 <menuContribution locationURI="menu:sourceMenuId">
497 <separator name="sourceBegin" visible="false"></separator>
498 <separator name="shiftBegin" visible="true"></separator>
499 <separator name="shiftEnd" visible="true"></separator>
500 <separator name="additions" visible="true"></separator>
501 <separator name="sourceEnd" visible="false"></separator>
502 </menuContribution>
503 <menuContribution locationURI="popup:org.eclipse.wst.sse.ui.StructuredTextEditor.EditorContext?before=additions">
504 <menu id="sourcePopupMenuId" label="%Source">
505 <separator name="sourceBegin" visible="false"></separator>
506 <separator name="additions" visible="true"></separator>
507 <separator name="sourceEnd" visible="false"></separator>
508 </menu>
509 <menu id="refactorPopupMenuId" label="%Refactor">
amywu19503192008-03-26 05:32:35 +0000510 </menu>
511 </menuContribution>
amywud0a69a02008-03-27 02:58:48 +0000512 <menuContribution locationURI="menu:goTo?after=additions">
513 <separator name="matchingBegin" visible="false"></separator>
514 <command commandId="org.eclipse.wst.sse.ui.goto.matching.bracket" id="org.eclipse.wst.sse.ui.goto.matching.bracket" label="%ActionDefinition.gotoMatchingBracket.name" style="push">
515 <visibleWhen checkEnabled="false">
516 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
517 </visibleWhen>
518 </command>
519 <separator name="matchingEnd" visible="false"></separator>
520 </menuContribution>
amywua46ee322008-04-24 02:05:28 +0000521 <!-- Contribute a Source menu for containers -->
amywu19503192008-03-26 05:32:35 +0000522 <menuContribution
523 locationURI="popup:org.eclipse.ui.popup.any?after=additions">
524 <menu
525 id="sourceMenuId"
526 label="%Source">
527 <command
528 commandId="org.eclipse.wst.sse.ui.format"
529 id="sourceFormat"
530 style="push">
amywua46ee322008-04-24 02:05:28 +0000531 <!-- Check to make sure that the handler is enabled before making visible -->
532 <visibleWhen checkEnabled="true" />
amywu19503192008-03-26 05:32:35 +0000533 </command>
534 </menu>
535 </menuContribution>
amywu81706092008-04-03 06:45:06 +0000536 <menuContribution locationURI="menu:sourceMenuId?after=additions">
537 <command commandId="org.eclipse.wst.sse.ui.search.find.occurrences" id="OccurencesFile" style="push">
538 <visibleWhen checkEnabled="false">
539 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
540 </visibleWhen>
541 </command>
542 </menuContribution>
543 <menuContribution locationURI="menu:edit?after=additions">
544 <command commandId="org.eclipse.ui.edit.text.toggleInsertMode" id="ToggleInsertMode" label="%SmartInsert_label" style="toggle">
545 <visibleWhen checkEnabled="false">
546 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
547 </visibleWhen>
548 </command>
549 </menuContribution>
550 <menuContribution locationURI="menu:expandSelectionToMenuId">
551 <command commandId="org.eclipse.wst.sse.ui.structure.select.enclosing" id="org.eclipse.wst.sse.ui.structure.select.enclosing" label="%StructureSelectEnclosing_label" style="push">
552 <visibleWhen checkEnabled="false">
553 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
554 </visibleWhen>
555 </command>
556 <command commandId="org.eclipse.wst.sse.ui.structure.select.next" id="org.eclipse.wst.sse.ui.structure.select.next" label="%StructureSelectNext_label" style="push">
557 <visibleWhen checkEnabled="false">
558 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
559 </visibleWhen>
560 </command>
561 <command commandId="org.eclipse.wst.sse.ui.structure.select.previous" id="org.eclipse.wst.sse.ui.structure.select.previous" label="%StructureSelectPrevious_label" style="push">
562 <visibleWhen checkEnabled="false">
563 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
564 </visibleWhen>
565 </command>
566 <command commandId="org.eclipse.wst.sse.ui.structure.select.last" id="org.eclipse.wst.sse.ui.structure.select.last" label="%StructureSelectHistory_label" style="push">
567 <visibleWhen checkEnabled="false">
568 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
569 </visibleWhen>
570 </command>
571 </menuContribution>
572 <menuContribution locationURI="menu:sourceMenuId?after=sourceBegin">
573 <command commandId="org.eclipse.wst.sse.ui.toggle.comment"
574 id="ToggleComment"
575 mnemonic="%command.toggle.comment.mnemonic"
576 style="push">
577 <visibleWhen checkEnabled="false">
578 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
579 </visibleWhen>
580 </command>
581 <command commandId="org.eclipse.wst.sse.ui.add.block.comment"
582 id="AddBlockComment"
583 mnemonic="%command.add.block.comment.mnemonic"
584 style="push">
585 <visibleWhen checkEnabled="false">
586 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
587 </visibleWhen>
588 </command>
589 <command commandId="org.eclipse.wst.sse.ui.remove.block.comment"
590 id="RemoveBlockComment"
591 mnemonic="%command.remove.block.comment.mnemonic"
592 style="push">
593 <visibleWhen checkEnabled="false">
594 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
595 </visibleWhen>
596 </command>
597 </menuContribution>
598
599 <menuContribution locationURI="menu:sourceMenuId?after=shiftBegin">
600 <command commandId="org.eclipse.ui.edit.text.shiftLeft"
601 id="ShiftLeft"
602 style="push">
603 <visibleWhen checkEnabled="false">
604 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
605 </visibleWhen>
606 </command>
607 <command commandId="org.eclipse.ui.edit.text.shiftRight"
608 id="ShiftRight"
609 style="push">
610 <visibleWhen checkEnabled="false">
611 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
612 </visibleWhen>
613 </command>
614 </menuContribution>
615
616 <menuContribution locationURI="menu:sourceMenuId?after=shiftEnd">
617 <command
618 commandId="org.eclipse.wst.sse.ui.cleanup.document"
619 id="CleanupDocument"
620 mnemonic="%command.cleanup.document.mnemonic"
621 style="push">
622 <visibleWhen checkEnabled="false">
623 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
624 </visibleWhen>
625 </command>
626 <command
627 commandId="org.eclipse.wst.sse.ui.format.document"
628 id="FormatDocument"
629 mnemonic="%command.format.document.mnemonic"
630 style="push">
631 <visibleWhen checkEnabled="false">
632 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
633 </visibleWhen>
634 </command>
635 <command
636 commandId="org.eclipse.wst.sse.ui.format.active.elements"
637 id="FormatElements"
638 mnemonic="%command.format.active.elements.mnemonic"
639 style="push">
640 <visibleWhen checkEnabled="false">
641 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
642 </visibleWhen>
643 </command>
644 </menuContribution>
645
646 <menuContribution
647 locationURI="popup:sourcePopupMenuId?after=sourceBegin">
648 <command commandId="org.eclipse.wst.sse.ui.toggle.comment" id="ToggleComment" style="push">
649 <visibleWhen checkEnabled="false">
650 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
651 </visibleWhen>
652 </command>
653 <command commandId="org.eclipse.wst.sse.ui.add.block.comment" id="AddBlockComment" style="push">
654 <visibleWhen checkEnabled="false">
655 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
656 </visibleWhen>
657 </command>
658 <command commandId="org.eclipse.wst.sse.ui.remove.block.comment" id="RemoveBlockComment" style="push">
659 <visibleWhen checkEnabled="false">
660 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
661 </visibleWhen>
662 </command>
663 <separator name="format" visible="true"></separator>
664 <command
665 commandId="org.eclipse.wst.sse.ui.cleanup.document"
666 id="CleanupDocument"
667 style="push">
668 <visibleWhen checkEnabled="false">
669 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
670 </visibleWhen>
671 </command>
672 <command
673 commandId="org.eclipse.wst.sse.ui.format.document"
674 id="FormatDocument"
675 mnemonic="%command.format.document.mnemonic"
676 style="push">
677 <visibleWhen checkEnabled="false">
678 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
679 </visibleWhen>
680 </command>
681 <command
682 commandId="org.eclipse.wst.sse.ui.format.active.elements"
683 id="FormatElements"
684 mnemonic="%command.format.active.elements.mnemonic"
685 style="push">
686 <visibleWhen checkEnabled="false">
687 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
688 </visibleWhen>
689 </command>
690
691 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000692 </extension>
693 <extension
694 point="org.eclipse.ui.commands">
695 <command
696 id="org.eclipse.wst.sse.ui.format"
697 name="%command.format.document.name">
698 </command>
699 </extension>
amywua46ee322008-04-24 02:05:28 +0000700
701 <!-- Enable the FormatHandler for Containers -->
702 <extension point="org.eclipse.ui.handlers">
703 <handler
704 class="org.eclipse.wst.sse.ui.internal.handlers.FormatHandler"
705 commandId="org.eclipse.wst.sse.ui.format">
706 <activeWhen>
707 <iterate ifEmpty="false">
708 <adapt
709 type="org.eclipse.core.resources.IContainer">
710 </adapt>
711 </iterate>
712 </activeWhen>
713 <enabledWhen>
714 <iterate ifEmpty="false">
715 <adapt
716 type="org.eclipse.core.resources.IContainer">
717 </adapt>
718 </iterate>
719 </enabledWhen>
720 </handler>
amywu19503192008-03-26 05:32:35 +0000721 </extension>
amywua46ee322008-04-24 02:05:28 +0000722
amywu19503192008-03-26 05:32:35 +0000723 <extension point="org.eclipse.core.expressions.definitions">
724 <definition id="org.eclipse.wst.sse.ui.sseActiveContext.definition">
725 <with variable="activeContexts">
726 <iterate operator="or">
727 <equals value="org.eclipse.wst.sse.ui.structuredTextEditorScope"/>
728 </iterate>
729 </with>
730 </definition>
731 </extension>
732
nitind52fe70b2008-05-15 21:52:16 +0000733 <!-- Define theme -->
734 <extension
735 point="org.eclipse.ui.themes">
736 <theme
737 id="org.eclipse.ui.ide.systemDefault">
738 <colorOverride
739 id="content_assist_proposals_background"
740 value="COLOR_LIST_BACKGROUND">
741 </colorOverride>
742 <colorOverride
743 id="content_assist_proposals_foreground"
744 value="COLOR_LIST_FOREGROUND">
745 </colorOverride>
746 <colorOverride
747 id="content_assist_parameters_background"
748 value="COLOR_LIST_BACKGROUND">
749 </colorOverride>
750 <colorOverride
751 id="content_assist_parameters_foreground"
752 value="COLOR_LIST_FOREGROUND">
753 </colorOverride>
754 </theme>
755 <colorDefinition
756 id="content_assist_proposals_background"
757 isEditable="false"
758 label="%Colors.content_assist_proposals_background"
759 value="255,255,255">
760 </colorDefinition>
761 <colorDefinition
762 id="content_assist_proposals_foreground"
763 isEditable="false"
764 label="%Colors.content_assist_proposals_foreground"
765 value="0,0,0">
766 </colorDefinition>
767 <colorDefinition
768 id="content_assist_parameters_background"
769 isEditable="false"
770 label="%Colors.content_assist_parameters_background"
771 value="255,255,255">
772 </colorDefinition>
773 <colorDefinition
774 id="content_assist_parameters_foreground"
775 isEditable="false"
776 label="%Colors.content_assist_parameters_foreground"
777 value="0,0,0">
778 </colorDefinition>
779 </extension>
780
david_williamscfdb2cd2004-11-11 08:37:49 +0000781</plugin>
amywu19503192008-03-26 05:32:35 +0000782