david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 2 | <?eclipse version="3.3"?> |
jeffliu | 38477e8 | 2005-05-30 00:52:19 +0000 | [diff] [blame] | 3 | <plugin> |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 4 | |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 5 | <extension-point |
| 6 | id="adapterFactoryDescription" |
nitind | 52fe70b | 2008-05-15 21:52:16 +0000 | [diff] [blame] | 7 | name="%Adapter_Factory_Description_Extension.name" ></extension-point> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 8 | <extension-point |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 9 | id="extendedEditorActions" |
nitind | 52fe70b | 2008-05-15 21:52:16 +0000 | [diff] [blame] | 10 | name="%Extended_Editor_Actions_Extension.name" ></extension-point> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 11 | <extension-point |
| 12 | id="dropTargetTransfers" |
nitind | 52fe70b | 2008-05-15 21:52:16 +0000 | [diff] [blame] | 13 | name="%Drop_Target_Transfers_Extension.name" ></extension-point> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 14 | <extension-point |
nitind | f8e7763 | 2005-09-07 23:49:25 +0000 | [diff] [blame] | 15 | id="editorConfiguration" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 16 | name="%Extended_Editor_Configuration_Extension.name" |
nitind | 52fe70b | 2008-05-15 21:52:16 +0000 | [diff] [blame] | 17 | schema="schema/editorconfiguration.exsd" ></extension-point> |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 18 | |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 19 | |
nitind | afbeaa4 | 2004-11-29 19:53:33 +0000 | [diff] [blame] | 20 | <!-- Make sure default preference values are set at runtime --> |
| 21 | <extension point="org.eclipse.core.runtime.preferences"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 22 | <initializer |
| 23 | class="org.eclipse.wst.sse.ui.internal.PreferenceInitializer" /> |
nitind | afbeaa4 | 2004-11-29 19:53:33 +0000 | [diff] [blame] | 24 | </extension> |
| 25 | |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 26 | |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 27 | <!-- reusable extensions --> |
nitind | f8e7763 | 2005-09-07 23:49:25 +0000 | [diff] [blame] | 28 | <extension point="org.eclipse.wst.sse.ui.editorConfiguration"> |
nitind | f8e7763 | 2005-09-07 23:49:25 +0000 | [diff] [blame] | 29 | <sourceViewerConfiguration |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 30 | class="org.eclipse.wst.sse.ui.StructuredTextViewerConfiguration" |
| 31 | target="org.eclipse.wst.sse.ui.StructuredTextEditor" /> |
nitind | f8e7763 | 2005-09-07 23:49:25 +0000 | [diff] [blame] | 32 | <provisionalDefinition |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 33 | type="preferencepages" |
| 34 | value="org.eclipse.wst.sse.ui.preferences.editor" |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 35 | target="org.eclipse.wst.sse.ui.StructuredTextEditor" /> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 36 | </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 |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 42 | id="org.eclipse.wst.sse.ui.StructuredTextEditor"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 43 | </part> |
| 44 | </actionSetPartAssociation> |
| 45 | <actionSetPartAssociation |
| 46 | targetID="org.eclipse.ui.NavigateActionSet"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 47 | <part |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 48 | id="org.eclipse.wst.sse.ui.StructuredTextEditor"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 49 | </part> |
| 50 | </actionSetPartAssociation> |
nitind | a51d129 | 2007-09-06 10:52:33 +0000 | [diff] [blame] | 51 | <actionSetPartAssociation |
| 52 | targetID="org.eclipse.debug.ui.launchActionSet"> |
| 53 | <part id="org.eclipse.wst.sse.ui.StructuredTextEditor"/> |
| 54 | </actionSetPartAssociation> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 55 | </extension> |
amywu | 73701a0 | 2006-12-06 00:16:27 +0000 | [diff] [blame] | 56 | |
| 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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 67 | <extension point="org.eclipse.ui.preferencePages"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 68 | <!-- 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"> |
amywu | 73701a0 | 2006-12-06 00:16:27 +0000 | [diff] [blame] | 74 | <keywordReference id="org.eclipse.wst.sse.ui.sseeditor"/> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 75 | </page> |
nitind | 92b945e | 2008-02-07 07:46:35 +0000 | [diff] [blame] | 76 | |
| 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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 85 | </extension> |
| 86 | <!-- ================================================================================================ --> |
| 87 | <!-- common task tags property page --> |
| 88 | <!-- ================================================================================================ --> |
nitind | a3c3475 | 2005-06-03 20:12:28 +0000 | [diff] [blame] | 89 | <extension point="org.eclipse.ui.propertyPages"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 90 | <page |
| 91 | id="org.eclipse.wst.sse.ui.project.properties.tasktags" |
| 92 | name="%Task_Tags_Preferences.name" |
amywu | 60df324 | 2006-11-03 23:45:29 +0000 | [diff] [blame] | 93 | 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> |
amywu | 73701a0 | 2006-12-06 00:16:27 +0000 | [diff] [blame] | 100 | <keywordReference id="org.eclipse.wst.sse.ui.todo"/> |
amywu | 60df324 | 2006-11-03 23:45:29 +0000 | [diff] [blame] | 101 | </page> |
nitind | a3c3475 | 2005-06-03 20:12:28 +0000 | [diff] [blame] | 102 | </extension> |
| 103 | |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 104 | <!-- |
david_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 105 | <extension-point id="dragSourceTransfers" name="Drag Source Transfers"/> |
| 106 | --> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 107 | <extension point="org.eclipse.ui.commands"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 108 | <!-- Edit commands --> |
| 109 | <command |
| 110 | name="%ActionDefinition.selectEnclosing.name" |
| 111 | description="%ActionDefinition.selectEnclosing.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 112 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 113 | id="org.eclipse.wst.sse.ui.structure.select.enclosing"> |
| 114 | </command> |
| 115 | <command |
| 116 | name="%ActionDefinition.selectNext.name" |
| 117 | description="%ActionDefinition.selectNext.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 118 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 119 | id="org.eclipse.wst.sse.ui.structure.select.next"> |
| 120 | </command> |
| 121 | <command |
| 122 | name="%ActionDefinition.selectPrevious.name" |
| 123 | description="%ActionDefinition.selectPrevious.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 124 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 125 | id="org.eclipse.wst.sse.ui.structure.select.previous"> |
| 126 | </command> |
| 127 | <command |
| 128 | name="%ActionDefinition.selectLast.name" |
| 129 | description="%ActionDefinition.selectLast.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 130 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 131 | id="org.eclipse.wst.sse.ui.structure.select.last"> |
| 132 | </command> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 133 | <!-- Source commands --> |
| 134 | <command |
| 135 | name="%command.toggle.comment.name" |
| 136 | description="%command.toggle.comment.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 137 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 138 | 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" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 143 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 144 | 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" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 149 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 150 | 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" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 155 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 156 | id="org.eclipse.wst.sse.ui.cleanup.document"> |
| 157 | </command> |
| 158 | <command |
| 159 | name="%command.format.document.name" |
| 160 | description="%command.format.document.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 161 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 162 | 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" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 167 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 168 | 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" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 174 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 175 | id="org.eclipse.wst.sse.ui.open.file.from.source"> |
| 176 | </command> |
nitind | fef1e03 | 2008-02-26 02:53:34 +0000 | [diff] [blame] | 177 | <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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 183 | <!-- Find Occurrences --> |
| 184 | <command |
| 185 | name="%command.search.find.occurrences.name" |
| 186 | description="%command.search.find.occurrences.description" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 187 | categoryId="org.eclipse.ui.category.edit" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 188 | id="org.eclipse.wst.sse.ui.search.find.occurrences"> |
| 189 | </command> |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 190 | </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"> |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 202 | <!-- win32: M1=CTRL, M2=SHIFT, M3=ALT --> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 203 | <!-- Edit commands --> |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 204 | <key |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 205 | sequence="M2+M3+ARROW_UP" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 206 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 211 | sequence="M2+M3+ARROW_RIGHT" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 212 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 217 | sequence="M2+M3+ARROW_LEFT" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 218 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 223 | sequence="M2+M3+ARROW_DOWN" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 224 | 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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 228 | <!-- Source commands --> |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 229 | <key |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 230 | sequence="M1+M2+C" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 231 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 236 | sequence="M1+M2+/" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 237 | 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 |
nitind | e76a3ba | 2008-05-22 16:32:50 +0000 | [diff] [blame] | 242 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 249 | sequence="M1+M2+\" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 250 | 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 |
nitind | e76a3ba | 2008-05-22 16:32:50 +0000 | [diff] [blame] | 255 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 262 | sequence="M1+M2+F" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 263 | 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 |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 268 | sequence="M1+I" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 269 | 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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 273 | <!-- Navigate commands --> |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 274 | <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> |
nitind | fef1e03 | 2008-02-26 02:53:34 +0000 | [diff] [blame] | 280 | <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_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 285 | <!-- Find Occurrences --> |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 286 | <key |
amywu | 4ab0819 | 2006-04-11 20:22:18 +0000 | [diff] [blame] | 287 | sequence="M1+M2+A" |
nitind | 102e60a | 2005-09-15 12:42:42 +0000 | [diff] [blame] | 288 | 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_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 292 | </extension> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 293 | <!-- 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 |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 311 | targetID="org.eclipse.wst.sse.ui.StructuredTextEditor" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 312 | 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_williams | b5d0563 | 2006-02-27 09:24:00 +0000 | [diff] [blame] | 390 | icon="$nl$/icons/sourceEditor.gif" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 391 | contributorClass="org.eclipse.wst.sse.ui.internal.actions.ActionContributor" |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 392 | class="org.eclipse.wst.sse.ui.StructuredTextEditor" |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 393 | symbolicFontName="org.eclipse.wst.sse.ui.textfont" |
nitind | 1bf20a1 | 2005-09-15 11:48:15 +0000 | [diff] [blame] | 394 | id="org.eclipse.wst.sse.ui.StructuredTextEditor"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 395 | </editor> |
| 396 | </extension> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 397 | |
| 398 | <!-- <extension point="org.eclipse.ui.popupMenus"> |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 399 | <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> |
nitind | 6d98c7b | 2005-10-07 21:17:31 +0000 | [diff] [blame] | 433 | </extension> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 434 | --> |
| 435 | <!-- |
nitind | 6d98c7b | 2005-10-07 21:17:31 +0000 | [diff] [blame] | 436 | <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 |
amywu | 34aa980 | 2005-12-06 23:33:16 +0000 | [diff] [blame] | 442 | label="%AddBookmark.label" |
nitind | 6d98c7b | 2005-10-07 21:17:31 +0000 | [diff] [blame] | 443 | 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 |
amywu | 34aa980 | 2005-12-06 23:33:16 +0000 | [diff] [blame] | 449 | label="%SelectRuler.label" |
nitind | 6d98c7b | 2005-10-07 21:17:31 +0000 | [diff] [blame] | 450 | class="org.eclipse.ui.texteditor.SelectRulerAction" |
| 451 | actionID="RulerClick" |
| 452 | id="org.eclipse.ui.texteditor.SelectRulerAction"> |
| 453 | </action> |
| 454 | </editorContribution> |
| 455 | </extension> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 456 | --> |
| 457 | |
david_williams | ad0e4cc | 2005-06-04 01:49:19 +0000 | [diff] [blame] | 458 | <!--================================================================================================--> |
| 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_williams | 41af4a7 | 2006-08-13 22:10:23 +0000 | [diff] [blame] | 480 | schema="schema/org.eclipse.wst.sse.ui.sourcevalidation.exsd" /> |
amywu | 0d6f6da | 2008-03-27 11:39:33 +0000 | [diff] [blame] | 481 | <extension-point |
| 482 | id="quickFixProcessor" |
| 483 | name="%quickFixProcessor" |
| 484 | schema="schema/quickFixProcessor.exsd"/> |
| 485 | |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 486 | <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> |
amywu | d0a69a0 | 2008-03-27 02:58:48 +0000 | [diff] [blame] | 493 | <menuContribution locationURI="menu:edit?after=additions"> |
| 494 | <menu id="expandSelectionToMenuId" label="%ExpandSelectionTo"></menu> |
| 495 | </menuContribution> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 496 | <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"> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 510 | </menu> |
| 511 | </menuContribution> |
amywu | d0a69a0 | 2008-03-27 02:58:48 +0000 | [diff] [blame] | 512 | <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> |
amywu | a46ee32 | 2008-04-24 02:05:28 +0000 | [diff] [blame] | 521 | <!-- Contribute a Source menu for containers --> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 522 | <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"> |
amywu | a46ee32 | 2008-04-24 02:05:28 +0000 | [diff] [blame] | 531 | <!-- Check to make sure that the handler is enabled before making visible --> |
| 532 | <visibleWhen checkEnabled="true" /> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 533 | </command> |
| 534 | </menu> |
| 535 | </menuContribution> |
amywu | 8170609 | 2008-04-03 06:45:06 +0000 | [diff] [blame] | 536 | <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> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 692 | </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> |
amywu | a46ee32 | 2008-04-24 02:05:28 +0000 | [diff] [blame] | 700 | |
| 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> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 721 | </extension> |
amywu | a46ee32 | 2008-04-24 02:05:28 +0000 | [diff] [blame] | 722 | |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 723 | <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 | |
nitind | 52fe70b | 2008-05-15 21:52:16 +0000 | [diff] [blame] | 733 | <!-- 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_williams | cfdb2cd | 2004-11-11 08:37:49 +0000 | [diff] [blame] | 781 | </plugin> |
amywu | 1950319 | 2008-03-26 05:32:35 +0000 | [diff] [blame] | 782 | |