blob: 864ee6f1c3db2fc5b290df922d7ce5aabb281c6e [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"
7 name="%Adapter_Factory_Description_Extension.name" />
8 <extension-point
david_williamsad0e4cc2005-06-04 01:49:19 +00009 id="extendedEditorActions"
10 name="%Extended_Editor_Actions_Extension.name" />
11 <extension-point
12 id="dropTargetTransfers"
13 name="%Drop_Target_Transfers_Extension.name" />
14 <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"
nitindf8e77632005-09-07 23:49:25 +000017 schema="schema/editorconfiguration.exsd" />
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
amywu4ab08192006-04-11 20:22:18 +0000242 sequence="M1+M2+\"
nitind102e60a2005-09-15 12:42:42 +0000243 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
244 commandId="org.eclipse.wst.sse.ui.remove.block.comment"
245 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
246 </key>
247 <key
amywu4ab08192006-04-11 20:22:18 +0000248 sequence="M1+M2+F"
nitind102e60a2005-09-15 12:42:42 +0000249 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
250 commandId="org.eclipse.wst.sse.ui.format.document"
251 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
252 </key>
253 <key
amywu4ab08192006-04-11 20:22:18 +0000254 sequence="M1+I"
nitind102e60a2005-09-15 12:42:42 +0000255 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
256 commandId="org.eclipse.wst.sse.ui.format.active.elements"
257 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
258 </key>
david_williamsad0e4cc2005-06-04 01:49:19 +0000259 <!-- Navigate commands -->
nitind102e60a2005-09-15 12:42:42 +0000260 <key
261 sequence="F3"
262 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
263 commandId="org.eclipse.wst.sse.ui.open.file.from.source"
264 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
265 </key>
nitindfef1e032008-02-26 02:53:34 +0000266 <key
267 sequence="M1+M2+P"
268 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
269 commandId="org.eclipse.wst.sse.ui.goto.matching.bracket"
270 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000271 <!-- Find Occurrences -->
nitind102e60a2005-09-15 12:42:42 +0000272 <key
amywu4ab08192006-04-11 20:22:18 +0000273 sequence="M1+M2+A"
nitind102e60a2005-09-15 12:42:42 +0000274 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
275 commandId="org.eclipse.wst.sse.ui.search.find.occurrences"
276 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
277 </key>
david_williamscfdb2cd2004-11-11 08:37:49 +0000278 </extension>
david_williamsad0e4cc2005-06-04 01:49:19 +0000279 <!-- Font and colors contributions -->
280 <extension point="org.eclipse.ui.themes">
281 <themeElementCategory
282 label="%Structured_Text_Editor.name"
283 id="org.eclipse.wst.sse.ui">
284 </themeElementCategory>
285 <fontDefinition
286 label="%sourceEditorFontDefiniton.label"
287 categoryId="org.eclipse.wst.sse.ui"
288 defaultsTo="org.eclipse.jface.textfont"
289 id="org.eclipse.wst.sse.ui.textfont">
290 <description>
291 %sourceEditorFontDefintion.description
292 </description>
293 </fontDefinition>
294 </extension>
295 <extension point="org.eclipse.wst.sse.ui.dropTargetTransfers">
296 <dropTargetContribution
nitind1bf20a12005-09-15 11:48:15 +0000297 targetID="org.eclipse.wst.sse.ui.StructuredTextEditor"
david_williamsad0e4cc2005-06-04 01:49:19 +0000298 id="org.eclipse.wst.sse.ui.extension.ExtendedTransfers">
299 <transfer
300 priority="mid"
301 singleton="true"
302 class="org.eclipse.swt.dnd.FileTransfer"
303 method="getInstance"
304 id="org.eclipse.swt.dnd.FileTransfer">
305 </transfer>
306 <dropAction
307 class="org.eclipse.wst.sse.ui.internal.FileDropAction"
308 transferID="org.eclipse.swt.dnd.FileTransfer"
309 id="org.eclipse.wst.sse.ui.internal.FileDropAction">
310 </dropAction>
311 <transfer
312 priority="low"
313 singleton="true"
314 class="org.eclipse.swt.dnd.TextTransfer"
315 method="getInstance"
316 id="org.eclipse.swt.dnd.TextTransfer">
317 </transfer>
318 <dropAction
319 class="org.eclipse.wst.sse.ui.internal.TextDropAction"
320 transferID="org.eclipse.swt.dnd.TextTransfer"
321 id="org.eclipse.wst.sse.ui.internal.TextDropAction">
322 </dropAction>
323 </dropTargetContribution>
324 </extension>
325
326 <extension point="org.eclipse.ui.editors.annotationTypes">
327 <type
328 super="org.eclipse.ui.workbench.texteditor.error"
329 markerType="org.eclipse.wst.sse.problem"
330 name="org.eclipse.wst.sse.ui.temp.error"
331 markerSeverity="2">
332 </type>
333 <type
334 super="org.eclipse.ui.workbench.texteditor.warning"
335 markerType="org.eclipse.wst.sse.problem"
336 name="org.eclipse.wst.sse.ui.temp.warning"
337 markerSeverity="1">
338 </type>
339
340 <type
341 super="org.eclipse.ui.workbench.texteditor.info"
342 markerType="org.eclipse.wst.sse.problem"
343 name="org.eclipse.wst.sse.ui.temp.info"
344 markerSeverity="0">
345 </type>
346 </extension>
347 <extension
348 point="org.eclipse.ui.editors.markerAnnotationSpecification">
349
350 <!--================================================================================================-->
351 <!-- same as eclipse text ui (including preference keys), except for vertical ruler & preference page -->
352 <!--================================================================================================-->
353 <specification
354 annotationType="org.eclipse.wst.sse.ui.temp.error"
355 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
356 verticalRulerPreferenceValue="true"
357 verticalRulerPreferenceKey="sseErrorIndicationInVerticalRuler"
358 includeOnPreferencePage="false">
359 </specification>
360 <specification
361 annotationType="org.eclipse.wst.sse.ui.temp.warning"
362 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
363 verticalRulerPreferenceValue="false"
364 verticalRulerPreferenceKey="sseWarningIndicationInVerticalRuler"
365 includeOnPreferencePage="false">
366 </specification>
367 <specification
368 annotationImageProvider="org.eclipse.wst.sse.ui.internal.ui.StructuredTextAnnotationImageProvider"
369 annotationType="org.eclipse.wst.sse.ui.temp.info">
370 </specification>
371 </extension>
372 <!-- dynamic content type supporting editor, no supported file extensions by default -->
373 <extension point="org.eclipse.ui.editors">
374 <editor
375 name="%Standalone_Structured_Source_Editor.name"
david_williamsb5d05632006-02-27 09:24:00 +0000376 icon="$nl$/icons/sourceEditor.gif"
david_williamsad0e4cc2005-06-04 01:49:19 +0000377 contributorClass="org.eclipse.wst.sse.ui.internal.actions.ActionContributor"
nitind1bf20a12005-09-15 11:48:15 +0000378 class="org.eclipse.wst.sse.ui.StructuredTextEditor"
david_williamsad0e4cc2005-06-04 01:49:19 +0000379 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
nitind1bf20a12005-09-15 11:48:15 +0000380 id="org.eclipse.wst.sse.ui.StructuredTextEditor">
david_williamsad0e4cc2005-06-04 01:49:19 +0000381 </editor>
382 </extension>
amywu19503192008-03-26 05:32:35 +0000383
384<!-- <extension point="org.eclipse.ui.popupMenus">
david_williamsad0e4cc2005-06-04 01:49:19 +0000385 <objectContribution
386 objectClass="org.eclipse.core.resources.IContainer"
387 id="org.eclipse.wst.sse.ui.actions.ContainerSourceActions">
388 <menu
389 label="%Source"
390 path="additions"
391 id="source">
392 <groupMarker name="sourceGroup"></groupMarker>
393 </menu>
394 <action
395 label="%FormatDocument"
396 class="org.eclipse.wst.sse.ui.internal.actions.FormatActionDelegate"
397 menubarPath="source/sourceGroup"
398 enablesFor="+"
399 id="org.eclipse.wst.sse.ui.actions.ContainerSourceActions.Format">
400 </action>
401 </objectContribution>
402 <objectContribution
403 objectClass="org.eclipse.core.resources.IFile"
404 id="org.eclipse.wst.sse.ui.actions.FileSourceActions">
405 <menu
406 label="%Source"
407 path="additions"
408 id="source">
409 <groupMarker name="sourceGroup"></groupMarker>
410 </menu>
411 <action
412 label="%FormatDocument"
413 class="org.eclipse.wst.sse.ui.internal.actions.FormatActionDelegate"
414 menubarPath="source/sourceGroup"
415 enablesFor="+"
416 id="org.eclipse.wst.sse.ui.actions.FileSourceActions.Format">
417 </action>
418 </objectContribution>
nitind6d98c7b2005-10-07 21:17:31 +0000419 </extension>
amywu19503192008-03-26 05:32:35 +0000420 -->
421 <!--
nitind6d98c7b2005-10-07 21:17:31 +0000422 <extension
423 point="org.eclipse.ui.editorActions">
424 <editorContribution
425 targetID="org.eclipse.wst.sse.ui.StructuredTextEditor"
426 id="org.eclipse.wst.sse.ui.StructuredTextEditor.ruler.actions">
427 <action
amywu34aa9802005-12-06 23:33:16 +0000428 label="%AddBookmark.label"
nitind6d98c7b2005-10-07 21:17:31 +0000429 helpContextId="org.eclipse.ui.bookmark_action_context"
430 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
431 actionID="RulerDoubleClick"
432 id="org.eclipse.ui.texteditor.BookmarkRulerAction">
433 </action>
434 <action
amywu34aa9802005-12-06 23:33:16 +0000435 label="%SelectRuler.label"
nitind6d98c7b2005-10-07 21:17:31 +0000436 class="org.eclipse.ui.texteditor.SelectRulerAction"
437 actionID="RulerClick"
438 id="org.eclipse.ui.texteditor.SelectRulerAction">
439 </action>
440 </editorContribution>
441 </extension>
amywu19503192008-03-26 05:32:35 +0000442 -->
443
david_williamsad0e4cc2005-06-04 01:49:19 +0000444 <!--================================================================================================-->
445 <!-- contribute a SearchResultViewPage for Occurrences in file -->
446 <!--================================================================================================-->
447 <extension
448 id="Occurrences search page"
449 point="org.eclipse.search.searchResultViewPages">
450 <viewPage
451 id="org.eclipse.wst.sse.ui.search.OccurrencesSearchResultPage"
452 searchResultClass="org.eclipse.wst.sse.ui.internal.search.OccurrencesSearchResult"
453 class="org.eclipse.wst.sse.ui.internal.search.OccurrencesSearchViewPage">
454 </viewPage>
455 </extension>
456
457 <!-- extension point for breakpoint extension -->
458 <extension-point
459 id="breakpoint"
460 name="%Breakpoint_Extension_Point.name" />
461 <!-- extension point for source validation -->
462 <!-- interfaces for this extension point can be found in org.eclipse.wst.validation -->
463 <extension-point
464 id="sourcevalidation"
465 name="%Source_Validation_Extension_Point.name"
david_williams41af4a72006-08-13 22:10:23 +0000466 schema="schema/org.eclipse.wst.sse.ui.sourcevalidation.exsd" />
amywu0d6f6da2008-03-27 11:39:33 +0000467 <extension-point
468 id="quickFixProcessor"
469 name="%quickFixProcessor"
470 schema="schema/quickFixProcessor.exsd"/>
471
amywu19503192008-03-26 05:32:35 +0000472 <extension point="org.eclipse.ui.menus">
473 <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=edit">
474 <menu id="sourceMenuId" label="%Source"></menu>
475 </menuContribution>
476 <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=sourceMenuId">
477 <menu id="refactorMenuId" label="%Refactor"></menu>
478 </menuContribution>
amywud0a69a02008-03-27 02:58:48 +0000479 <menuContribution locationURI="menu:edit?after=additions">
480 <menu id="expandSelectionToMenuId" label="%ExpandSelectionTo"></menu>
481 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000482 <menuContribution locationURI="menu:sourceMenuId">
483 <separator name="sourceBegin" visible="false"></separator>
484 <separator name="shiftBegin" visible="true"></separator>
485 <separator name="shiftEnd" visible="true"></separator>
486 <separator name="additions" visible="true"></separator>
487 <separator name="sourceEnd" visible="false"></separator>
488 </menuContribution>
489 <menuContribution locationURI="popup:org.eclipse.wst.sse.ui.StructuredTextEditor.EditorContext?before=additions">
490 <menu id="sourcePopupMenuId" label="%Source">
491 <separator name="sourceBegin" visible="false"></separator>
492 <separator name="additions" visible="true"></separator>
493 <separator name="sourceEnd" visible="false"></separator>
494 </menu>
495 <menu id="refactorPopupMenuId" label="%Refactor">
amywu19503192008-03-26 05:32:35 +0000496 </menu>
497 </menuContribution>
amywud0a69a02008-03-27 02:58:48 +0000498 <menuContribution locationURI="menu:goTo?after=additions">
499 <separator name="matchingBegin" visible="false"></separator>
500 <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">
501 <visibleWhen checkEnabled="false">
502 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
503 </visibleWhen>
504 </command>
505 <separator name="matchingEnd" visible="false"></separator>
506 </menuContribution>
amywua46ee322008-04-24 02:05:28 +0000507 <!-- Contribute a Source menu for containers -->
amywu19503192008-03-26 05:32:35 +0000508 <menuContribution
509 locationURI="popup:org.eclipse.ui.popup.any?after=additions">
510 <menu
511 id="sourceMenuId"
512 label="%Source">
513 <command
514 commandId="org.eclipse.wst.sse.ui.format"
515 id="sourceFormat"
516 style="push">
amywua46ee322008-04-24 02:05:28 +0000517 <!-- Check to make sure that the handler is enabled before making visible -->
518 <visibleWhen checkEnabled="true" />
amywu19503192008-03-26 05:32:35 +0000519 </command>
520 </menu>
521 </menuContribution>
amywu81706092008-04-03 06:45:06 +0000522 <menuContribution locationURI="menu:sourceMenuId?after=additions">
523 <command commandId="org.eclipse.wst.sse.ui.search.find.occurrences" id="OccurencesFile" style="push">
524 <visibleWhen checkEnabled="false">
525 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
526 </visibleWhen>
527 </command>
528 </menuContribution>
529 <menuContribution locationURI="menu:edit?after=additions">
530 <command commandId="org.eclipse.ui.edit.text.toggleInsertMode" id="ToggleInsertMode" label="%SmartInsert_label" style="toggle">
531 <visibleWhen checkEnabled="false">
532 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
533 </visibleWhen>
534 </command>
535 </menuContribution>
536 <menuContribution locationURI="menu:expandSelectionToMenuId">
537 <command commandId="org.eclipse.wst.sse.ui.structure.select.enclosing" id="org.eclipse.wst.sse.ui.structure.select.enclosing" label="%StructureSelectEnclosing_label" style="push">
538 <visibleWhen checkEnabled="false">
539 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
540 </visibleWhen>
541 </command>
542 <command commandId="org.eclipse.wst.sse.ui.structure.select.next" id="org.eclipse.wst.sse.ui.structure.select.next" label="%StructureSelectNext_label" style="push">
543 <visibleWhen checkEnabled="false">
544 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
545 </visibleWhen>
546 </command>
547 <command commandId="org.eclipse.wst.sse.ui.structure.select.previous" id="org.eclipse.wst.sse.ui.structure.select.previous" label="%StructureSelectPrevious_label" style="push">
548 <visibleWhen checkEnabled="false">
549 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
550 </visibleWhen>
551 </command>
552 <command commandId="org.eclipse.wst.sse.ui.structure.select.last" id="org.eclipse.wst.sse.ui.structure.select.last" label="%StructureSelectHistory_label" style="push">
553 <visibleWhen checkEnabled="false">
554 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
555 </visibleWhen>
556 </command>
557 </menuContribution>
558 <menuContribution locationURI="menu:sourceMenuId?after=sourceBegin">
559 <command commandId="org.eclipse.wst.sse.ui.toggle.comment"
560 id="ToggleComment"
561 mnemonic="%command.toggle.comment.mnemonic"
562 style="push">
563 <visibleWhen checkEnabled="false">
564 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
565 </visibleWhen>
566 </command>
567 <command commandId="org.eclipse.wst.sse.ui.add.block.comment"
568 id="AddBlockComment"
569 mnemonic="%command.add.block.comment.mnemonic"
570 style="push">
571 <visibleWhen checkEnabled="false">
572 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
573 </visibleWhen>
574 </command>
575 <command commandId="org.eclipse.wst.sse.ui.remove.block.comment"
576 id="RemoveBlockComment"
577 mnemonic="%command.remove.block.comment.mnemonic"
578 style="push">
579 <visibleWhen checkEnabled="false">
580 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
581 </visibleWhen>
582 </command>
583 </menuContribution>
584
585 <menuContribution locationURI="menu:sourceMenuId?after=shiftBegin">
586 <command commandId="org.eclipse.ui.edit.text.shiftLeft"
587 id="ShiftLeft"
588 style="push">
589 <visibleWhen checkEnabled="false">
590 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
591 </visibleWhen>
592 </command>
593 <command commandId="org.eclipse.ui.edit.text.shiftRight"
594 id="ShiftRight"
595 style="push">
596 <visibleWhen checkEnabled="false">
597 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
598 </visibleWhen>
599 </command>
600 </menuContribution>
601
602 <menuContribution locationURI="menu:sourceMenuId?after=shiftEnd">
603 <command
604 commandId="org.eclipse.wst.sse.ui.cleanup.document"
605 id="CleanupDocument"
606 mnemonic="%command.cleanup.document.mnemonic"
607 style="push">
608 <visibleWhen checkEnabled="false">
609 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
610 </visibleWhen>
611 </command>
612 <command
613 commandId="org.eclipse.wst.sse.ui.format.document"
614 id="FormatDocument"
615 mnemonic="%command.format.document.mnemonic"
616 style="push">
617 <visibleWhen checkEnabled="false">
618 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
619 </visibleWhen>
620 </command>
621 <command
622 commandId="org.eclipse.wst.sse.ui.format.active.elements"
623 id="FormatElements"
624 mnemonic="%command.format.active.elements.mnemonic"
625 style="push">
626 <visibleWhen checkEnabled="false">
627 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
628 </visibleWhen>
629 </command>
630 </menuContribution>
631
632 <menuContribution
633 locationURI="popup:sourcePopupMenuId?after=sourceBegin">
634 <command commandId="org.eclipse.wst.sse.ui.toggle.comment" id="ToggleComment" style="push">
635 <visibleWhen checkEnabled="false">
636 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
637 </visibleWhen>
638 </command>
639 <command commandId="org.eclipse.wst.sse.ui.add.block.comment" id="AddBlockComment" style="push">
640 <visibleWhen checkEnabled="false">
641 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
642 </visibleWhen>
643 </command>
644 <command commandId="org.eclipse.wst.sse.ui.remove.block.comment" id="RemoveBlockComment" style="push">
645 <visibleWhen checkEnabled="false">
646 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
647 </visibleWhen>
648 </command>
649 <separator name="format" visible="true"></separator>
650 <command
651 commandId="org.eclipse.wst.sse.ui.cleanup.document"
652 id="CleanupDocument"
653 style="push">
654 <visibleWhen checkEnabled="false">
655 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
656 </visibleWhen>
657 </command>
658 <command
659 commandId="org.eclipse.wst.sse.ui.format.document"
660 id="FormatDocument"
661 mnemonic="%command.format.document.mnemonic"
662 style="push">
663 <visibleWhen checkEnabled="false">
664 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
665 </visibleWhen>
666 </command>
667 <command
668 commandId="org.eclipse.wst.sse.ui.format.active.elements"
669 id="FormatElements"
670 mnemonic="%command.format.active.elements.mnemonic"
671 style="push">
672 <visibleWhen checkEnabled="false">
673 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
674 </visibleWhen>
675 </command>
676
677 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000678 </extension>
679 <extension
680 point="org.eclipse.ui.commands">
681 <command
682 id="org.eclipse.wst.sse.ui.format"
683 name="%command.format.document.name">
684 </command>
685 </extension>
amywua46ee322008-04-24 02:05:28 +0000686
687 <!-- Enable the FormatHandler for Containers -->
688 <extension point="org.eclipse.ui.handlers">
689 <handler
690 class="org.eclipse.wst.sse.ui.internal.handlers.FormatHandler"
691 commandId="org.eclipse.wst.sse.ui.format">
692 <activeWhen>
693 <iterate ifEmpty="false">
694 <adapt
695 type="org.eclipse.core.resources.IContainer">
696 </adapt>
697 </iterate>
698 </activeWhen>
699 <enabledWhen>
700 <iterate ifEmpty="false">
701 <adapt
702 type="org.eclipse.core.resources.IContainer">
703 </adapt>
704 </iterate>
705 </enabledWhen>
706 </handler>
amywu19503192008-03-26 05:32:35 +0000707 </extension>
amywua46ee322008-04-24 02:05:28 +0000708
amywu19503192008-03-26 05:32:35 +0000709 <extension point="org.eclipse.core.expressions.definitions">
710 <definition id="org.eclipse.wst.sse.ui.sseActiveContext.definition">
711 <with variable="activeContexts">
712 <iterate operator="or">
713 <equals value="org.eclipse.wst.sse.ui.structuredTextEditorScope"/>
714 </iterate>
715 </with>
716 </definition>
717 </extension>
718
david_williamscfdb2cd2004-11-11 08:37:49 +0000719</plugin>
amywu19503192008-03-26 05:32:35 +0000720