blob: cb418f7d342a49b45119c2ba2cf91484c08027e4 [file] [log] [blame]
david_williams96213482004-11-11 09:07:12 +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_williams96213482004-11-11 09:07:12 +00004
kchong90f21b62005-12-06 22:20:53 +00005 <extension-point id="catalogFileType" name="%XML_Catalog_File_Type_Extension_Point.name" schema="schema/catalogFileType.exsd"/>
david_williamsc36277b2005-06-13 00:12:21 +00006
david_williams09de8f82005-07-08 18:08:48 +00007 <extension point="org.eclipse.wst.xml.ui.catalogFileType">
csaltera3a2daa2005-06-15 06:53:51 +00008 <fileType
9 extensions="dtd, ent, mod"
david_williamsa08fdd72005-07-21 01:49:46 +000010 description="%_UI_PREF_DTD_FILES"
csalter6878d892005-06-17 18:09:23 +000011 id="org.eclipse.wst.xml.core.ui.catalogFileType.dtd">
csaltera3a2daa2005-06-15 06:53:51 +000012 </fileType>
13 <fileType
14 extensions="xsd"
david_williamsa08fdd72005-07-21 01:49:46 +000015 description="%_UI_PREF_XSD_FILES"
csalter6878d892005-06-17 18:09:23 +000016 id="org.eclipse.wst.xml.core.ui.catalogFileType.xsd">
csaltera3a2daa2005-06-15 06:53:51 +000017 </fileType>
18 <fileType
19 extensions="tld"
david_williamsa08fdd72005-07-21 01:49:46 +000020 description="%_UI_PREF_TAGLIB_DEF_FILES"
csalter6878d892005-06-17 18:09:23 +000021 id="org.eclipse.wst.xml.core.ui.catalogFileType.tld">
csaltera3a2daa2005-06-15 06:53:51 +000022 </fileType>
23 </extension>
nitind720e8b52007-12-18 03:52:33 +000024
nitindf8e77632005-09-07 23:49:25 +000025 <!--The org.eclipse.wst.xml.core.xmlsource content type is only for
26 handling some special cases of ill-formed xml in a reasonable
27 manner, and should not be emulated by clients. The two content
28 types are often used interchangeably by the XML component, but
29 please use org.eclipse.core.runtime.xml instead. -->
30 <extension point="org.eclipse.wst.sse.ui.editorConfiguration">
31 <sourceViewerConfiguration
nitind1bf20a12005-09-15 11:48:15 +000032 class="org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML"
nitindf8e77632005-09-07 23:49:25 +000033 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
34 <contentOutlineConfiguration
nitind1bf20a12005-09-15 11:48:15 +000035 class="org.eclipse.wst.xml.ui.views.contentoutline.XMLContentOutlineConfiguration"
nitindf8e77632005-09-07 23:49:25 +000036 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
37 <propertySheetConfiguration
nitind1bf20a12005-09-15 11:48:15 +000038 class="org.eclipse.wst.xml.ui.views.properties.XMLPropertySheetConfiguration"
nitindf8e77632005-09-07 23:49:25 +000039 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
amywu67ef3e32007-11-05 22:20:31 +000040 <documentationTextHover
41 class="org.eclipse.wst.xml.ui.internal.taginfo.XMLTagInfoHoverProcessor"
42 target="org.eclipse.wst.xml.XML_DEFAULT">
43 </documentationTextHover>
44 <doubleClickStrategy
45 class="org.eclipse.wst.xml.ui.internal.doubleclick.XMLDoubleClickStrategy"
46 target="org.eclipse.wst.xml.XML_DEFAULT">
47 </doubleClickStrategy>
nitindf8e77632005-09-07 23:49:25 +000048 <provisionalConfiguration
david_williamsad0e4cc2005-06-04 01:49:19 +000049 type="sourceeditingtexttools"
50 class="org.eclipse.wst.xml.ui.internal.provisional.XMLSourceEditingTextTools"
nitindf8e77632005-09-07 23:49:25 +000051 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
52 <provisionalConfiguration
david_williamsad0e4cc2005-06-04 01:49:19 +000053 type="characterpairmatcher"
54 class="org.eclipse.wst.xml.ui.internal.text.XMLDocumentRegionEdgeMatcher"
nitindf8e77632005-09-07 23:49:25 +000055 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
56 <provisionalConfiguration
nitind1bf20a12005-09-15 11:48:15 +000057 type="structuredtextfoldingprovider"
david_williamsad0e4cc2005-06-04 01:49:19 +000058 class="org.eclipse.wst.xml.ui.internal.projection.StructuredTextFoldingProviderXML"
nitindf8e77632005-09-07 23:49:25 +000059 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
nitind1bf20a12005-09-15 11:48:15 +000060 <provisionalConfiguration
amywu83d210c2007-04-16 21:09:35 +000061 type="org.eclipse.jface.text.quickassist.IQuickAssistProcessor"
62 class="org.eclipse.wst.xml.ui.internal.correction.XMLQuickAssistProcessor"
63 target="org.eclipse.wst.xml.XML_DEFAULT" />
amywu67ef3e32007-11-05 22:20:31 +000064 <provisionalConfiguration
65 type="autoeditstrategy"
66 class="org.eclipse.wst.xml.ui.internal.autoedit.StructuredAutoEditStrategyXML"
67 target="org.eclipse.wst.xml.XML_DEFAULT" />
nitindf8e77632005-09-07 23:49:25 +000068 <provisionalDefinition
david_williamsad0e4cc2005-06-04 01:49:19 +000069 type="preferencepages"
nitindde12ce62008-01-31 02:24:31 +000070 value="org.eclipse.wst.xml.ui.preferences.xml.xml, org.eclipse.wst.sse.ui.preferences.xml.source, org.eclipse.wst.sse.ui.preferences.xml.templates, org.eclipse.wst.sse.ui.preferences.xml.colors"
nitindf8e77632005-09-07 23:49:25 +000071 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
nitindfa875bd2007-02-15 02:21:44 +000072 <provisionalDefinition
73 type="spellingregions"
nitind7e1cca82007-05-01 23:58:08 +000074 value="XML_COMMENT_TEXT, XML_CONTENT, XML_DEFAULT"
nitindfa875bd2007-02-15 02:21:44 +000075 target="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.core.xmlsource" />
amywu81706092008-04-03 06:45:06 +000076 <provisionalDefinition
77 type="activecontexts"
78 value="org.eclipse.core.runtime.xml, org.eclipse.wst.xml.navigation, org.eclipse.wst.xml.cleanup, org.eclipse.wst.xml.comments, org.eclipse.wst.xml.selection, org.eclipse.wst.xml.dependencies, org.eclipse.wst.xml.grammar, org.eclipse.wst.xml.expand, org.eclipse.wst.xml.occurrences"
79 target="org.eclipse.core.runtime.xml" />
david_williamsad0e4cc2005-06-04 01:49:19 +000080 </extension>
amywu81706092008-04-03 06:45:06 +000081
82 <extension point="org.eclipse.ui.contexts">
83 <context
84 name="%scope.structured.text.editor.xml.name"
85 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
86 description="%scope.structured.text.editor.xml.description"
87 id="org.eclipse.core.runtime.xml">
88 </context>
89 <context
90 name="%scope.structured.text.editor.xml.navigation.name"
91 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
92 description="%scope.structured.text.editor.xml.navigation.description"
93 id="org.eclipse.wst.xml.navigation">
94 </context>
95 <context
96 name="%scope.structured.text.editor.xml.cleanup.name"
97 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
98 description="%scope.structured.text.editor.xml.cleanup.description"
99 id="org.eclipse.wst.xml.cleanup">
100 </context>
101 <context
102 name="%scope.structured.text.editor.xml.comments.name"
103 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
104 description="%scope.structured.text.editor.xml.comments.description"
105 id="org.eclipse.wst.xml.comments">
106 </context>
107 <context
108 name="%scope.structured.text.editor.xml.selection.name"
109 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
110 description="%scope.structured.text.editor.xml.selection.description"
111 id="org.eclipse.wst.xml.selection">
112 </context>
113 <context
114 name="%scope.structured.text.editor.xml.dependencies.name"
115 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
116 description="%scope.structured.text.editor.xml.dependencies.description"
117 id="org.eclipse.wst.xml.dependencies">
118 </context>
119 <context
120 name="%scope.structured.text.editor.xml.grammar.name"
121 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
122 description="%scope.structured.text.editor.xml.grammar.description"
123 id="org.eclipse.wst.xml.grammar">
124 </context>
125 <context
126 name="%scope.structured.text.editor.xml.expand.name"
127 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
128 description="%scope.structured.text.editor.xml.expand.description"
129 id="org.eclipse.wst.xml.expand">
130 </context>
131 <context
132 name="%scope.structured.text.editor.xml.occurrences.name"
133 parentId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
134 description="%scope.structured.text.editor.xml.occurrences.description"
135 id="org.eclipse.wst.xml.occurrences">
136 </context>
137 </extension>
138
david_williamsad0e4cc2005-06-04 01:49:19 +0000139 <extension
140 point="org.eclipse.core.filebuffers.annotationModelCreation">
141 <factory
142 contentTypeId="org.eclipse.core.runtime.xml"
143 class="org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModelFactory" />
nitindfd1a0ac2007-09-03 07:06:41 +0000144 <factory
145 contentTypeId="org.eclipse.wst.xml.core.xmlsource"
146 class="org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModelFactory" />
david_williamsad0e4cc2005-06-04 01:49:19 +0000147 </extension>
148 <extension
149 point="org.eclipse.wst.sse.ui.adapterFactoryDescription">
150 <adapterFactoryDescription
151 class="org.eclipse.wst.xml.ui.internal.registry.AdapterFactoryProviderForXML">
152 <contentType id="org.eclipse.core.runtime.xml" />
nitindfd1a0ac2007-09-03 07:06:41 +0000153 <contentType id="org.eclipse.wst.xml.core.xmlsource" />
david_williamsad0e4cc2005-06-04 01:49:19 +0000154 </adapterFactoryDescription>
155 </extension>
david_williamsad0e4cc2005-06-04 01:49:19 +0000156 <extension point="org.eclipse.ui.preferencePages">
nitind0babf612008-01-30 23:30:51 +0000157 <!-- The "top-level" XML category -->
158 <page
159 name="%XML.name"
160 class="org.eclipse.wst.xml.ui.internal.preferences.EmptyFilePreferencePage"
161 id="org.eclipse.wst.xml.ui.preferences.xml">
162 </page>
163 <!-- The "lower level" XML Files category/page -->
david_williamsad0e4cc2005-06-04 01:49:19 +0000164 <page
165 name="%XML_Files.name"
nitind0babf612008-01-30 23:30:51 +0000166 category="org.eclipse.wst.xml.ui.preferences.xml"
david_williamsad0e4cc2005-06-04 01:49:19 +0000167 class="org.eclipse.wst.xml.ui.internal.preferences.XMLFilesPreferencePage"
nitind0babf612008-01-30 23:30:51 +0000168 id="org.eclipse.wst.xml.ui.preferences.xml.xml">
amywu73701a02006-12-06 00:16:27 +0000169 <keywordReference id="org.eclipse.wst.xml.ui.files"/>
nitinddec17782008-04-02 04:48:00 +0000170 <keywordReference id="preferenceKeywords.severities"/>
171 </page>
nitind0babf612008-01-30 23:30:51 +0000172 <!-- XML PREFERENCE PAGES -->
david_williamsad0e4cc2005-06-04 01:49:19 +0000173 <page
174 name="%XML_Source.name"
nitind0babf612008-01-30 23:30:51 +0000175 category="org.eclipse.wst.xml.ui.preferences.xml.xml"
david_williamsad0e4cc2005-06-04 01:49:19 +0000176 class="org.eclipse.wst.xml.ui.internal.preferences.XMLSourcePreferencePage"
177 id="org.eclipse.wst.sse.ui.preferences.xml.source">
amywu73701a02006-12-06 00:16:27 +0000178 <keywordReference id="org.eclipse.wst.xml.ui.source"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000179 </page>
180 <page
181 name="%XML_Templates.name"
nitindde12ce62008-01-31 02:24:31 +0000182 category="org.eclipse.wst.sse.ui.preferences.xml.source"
david_williamsad0e4cc2005-06-04 01:49:19 +0000183 class="org.eclipse.wst.xml.ui.internal.preferences.XMLTemplatePreferencePage"
184 id="org.eclipse.wst.sse.ui.preferences.xml.templates">
amywu73701a02006-12-06 00:16:27 +0000185 <keywordReference id="org.eclipse.wst.xml.ui.templates"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000186 </page>
187 <page
nitind83148392007-01-31 00:49:07 +0000188 name="%XML_Syntax_Coloring"
nitindde12ce62008-01-31 02:24:31 +0000189 category="org.eclipse.wst.sse.ui.preferences.xml.source"
nitind83148392007-01-31 00:49:07 +0000190 class="org.eclipse.wst.xml.ui.internal.preferences.XMLSyntaxColoringPage"
david_williamsad0e4cc2005-06-04 01:49:19 +0000191 id="org.eclipse.wst.sse.ui.preferences.xml.colors">
amywu73701a02006-12-06 00:16:27 +0000192 <keywordReference id="org.eclipse.wst.xml.ui.styles"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000193 </page>
nitind0babf612008-01-30 23:30:51 +0000194 <page
195 name="%_UI_PREF_XML_CATALOG"
196 category="org.eclipse.wst.xml.ui.preferences.xml"
197 class="org.eclipse.wst.xml.ui.internal.catalog.XMLCatalogPreferencePage"
198 id="org.eclipse.wst.xml.core.ui.XMLCatalogPreferencePage">
199 <keywordReference id="org.eclipse.wst.xml.ui.xmlcatalog"/>
200 </page>
nitindf4a9c3f2008-03-27 07:16:38 +0000201 <page
202 name="%XML_Typing"
203 category="org.eclipse.wst.sse.ui.preferences.xml.source"
204 class="org.eclipse.wst.xml.ui.internal.preferences.XMLTypingPreferencePage"
205 id="org.eclipse.wst.sse.ui.preferences.xml.typing">
206 </page>
david_williamsad0e4cc2005-06-04 01:49:19 +0000207 </extension>
amywu73701a02006-12-06 00:16:27 +0000208
209 <!-- Keywords for preference and properties pages -->
210 <extension point="org.eclipse.ui.keywords">
211 <keyword
212 label="%preferenceKeywords.files"
213 id="org.eclipse.wst.xml.ui.files"/>
214 <keyword
215 label="%preferenceKeywords.source"
216 id="org.eclipse.wst.xml.ui.source"/>
217 <keyword
218 label="%preferenceKeywords.templates"
219 id="org.eclipse.wst.xml.ui.templates"/>
220 <keyword
221 label="%preferenceKeywords.styles"
222 id="org.eclipse.wst.xml.ui.styles"/>
223 <keyword
224 label="%preferenceKeywords.xmlcatalog"
225 id="org.eclipse.wst.xml.ui.xmlcatalog"/>
226 </extension>
227
david_williamsad0e4cc2005-06-04 01:49:19 +0000228 <!-- Editor actionsets -->
229 <extension point="org.eclipse.ui.actionSetPartAssociations">
230 <actionSetPartAssociation
231 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
232 <part id="org.eclipse.core.runtime.xml.source"></part>
233 <part id="org.eclipse.core.runtime.xml.source2"></part>
234 </actionSetPartAssociation>
235 <actionSetPartAssociation
236 targetID="org.eclipse.ui.NavigateActionSet">
237 <part id="org.eclipse.core.runtime.xml.source"></part>
238 <part id="org.eclipse.core.runtime.xml.source2"></part>
239 </actionSetPartAssociation>
240 </extension>
nitindd4f81c02005-02-07 23:11:25 +0000241
david_williamsad0e4cc2005-06-04 01:49:19 +0000242 <!-- Templates -->
243 <extension point="org.eclipse.ui.editors.templates">
244 <contextType
245 name="%All_XML_context_type_Extension_Element.name"
246 class="org.eclipse.wst.xml.ui.internal.templates.TemplateContextTypeXML"
247 id="xml_all">
248 </contextType>
249 <contextType
250 name="%XML_New_context_type_Extension_Element.name"
251 class="org.eclipse.wst.xml.ui.internal.templates.TemplateContextTypeXML"
252 id="xml_new">
253 </contextType>
254 <contextType
255 name="%XML_Tag_context_type_Extension_Element.name"
256 class="org.eclipse.wst.xml.ui.internal.templates.TemplateContextTypeXML"
257 id="xml_tag">
258 </contextType>
259 <contextType
260 name="%XML_Attribute_context_type_Extension_Element.name"
261 class="org.eclipse.wst.xml.ui.internal.templates.TemplateContextTypeXML"
262 id="xml_attribute">
263 </contextType>
264 <contextType
265 name="%XML_Attribute_value_context_type_Extension_Element.name"
266 class="org.eclipse.wst.xml.ui.internal.templates.TemplateContextTypeXML"
267 id="xml_attribute_value">
268 </contextType>
269 <include
270 file="templates/xmldefault-templates.xml"
david_williams73c174f2005-07-08 20:26:14 +0000271 translations="$nl$/templates/xmldefault-templates.properties">
david_williamsad0e4cc2005-06-04 01:49:19 +0000272 </include>
273 </extension>
csalter703f8832004-11-11 22:33:56 +0000274
david_williamsad0e4cc2005-06-04 01:49:19 +0000275 <extension point="org.eclipse.ui.editors">
276 <editor
277 name="%XML_Editor.name"
david_williamsb5d05632006-02-27 09:24:00 +0000278 icon="$nl$/icons/xmldoc.gif"
david_williamsad0e4cc2005-06-04 01:49:19 +0000279 contributorClass="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorActionBarContributor"
280 class="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"
281 id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart">
282 <contentTypeBinding
283 contentTypeId="org.eclipse.core.runtime.xml" />
david_williams09de8f82005-07-08 18:08:48 +0000284 <contentTypeBinding
285 contentTypeId="org.eclipse.wst.xml.core.xmlsource" />
286
david_williamsad0e4cc2005-06-04 01:49:19 +0000287 </editor>
nitind96cebe62004-11-30 20:53:38 +0000288 </extension>
david_williams09de8f82005-07-08 18:08:48 +0000289
david_williamsad0e4cc2005-06-04 01:49:19 +0000290 <!-- Editor actionsets -->
291 <extension point="org.eclipse.ui.actionSetPartAssociations">
292 <actionSetPartAssociation
293 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
294 <part
295 id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart">
296 </part>
297 </actionSetPartAssociation>
298 <actionSetPartAssociation
299 targetID="org.eclipse.ui.NavigateActionSet">
300 <part
301 id="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart">
302 </part>
303 </actionSetPartAssociation>
nitind410b6c22005-01-25 15:57:22 +0000304 </extension>
305
david_williamsad0e4cc2005-06-04 01:49:19 +0000306
307
308 <!-- ================================================== -->
309 <!-- Contribute a 'New Wizard' for XML files -->
310 <!-- ================================================== -->
311 <extension point="org.eclipse.ui.newWizards">
312 <category
313 name="%_UI_WIZARD_NEW_XML"
314 id="org.eclipse.wst.XMLCategory">
315 </category>
316 <wizard
317 name="%_UI_WIZARD_NEW_XML"
david_williamsb5d05632006-02-27 09:24:00 +0000318 icon="$nl$/icons/XMLFile.gif"
david_williamsad0e4cc2005-06-04 01:49:19 +0000319 category="org.eclipse.wst.XMLCategory"
320 class="org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard"
321 id="org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard">
322 <description>%_UI_CREATE_NEW_XML_FILE</description>
323 <selection class="org.eclipse.core.resources.IResource">
324 </selection>
325 </wizard>
326 </extension>
327
328 <!-- =============================================================================== -->
329 <!-- Allow the 'New XML' wizard to be accessed via the 'Generate' menu on a XSD file -->
330 <!-- =============================================================================== -->
amywu19503192008-03-26 05:32:35 +0000331<!--
david_williamsad0e4cc2005-06-04 01:49:19 +0000332 <extension point="org.eclipse.ui.popupMenus">
333 <objectContribution
334 objectClass="org.eclipse.core.resources.IFile"
335 nameFilter="*.xsd"
336 id="org.eclipse.wst.xmlwizard.createXMLFromXSD">
337 <menu
338 label="%genMenuLabel"
339 path="additions"
340 id="generateXMLArtifacts">
341 <separator name="xml" />
342 </menu>
343 <action
344 label="%_UI_ACTION_CREATE_XML"
345 class="org.eclipse.wst.xml.ui.internal.wizards.XMLImportActionDelegate"
346 menubarPath="generateXMLArtifacts/xml"
347 enablesFor="1"
348 id="org.eclipse.wst.xmlwizard.createXMLFromXSDAction">
349 </action>
350 </objectContribution>
351 </extension>
amywu19503192008-03-26 05:32:35 +0000352-->
david_williamsad0e4cc2005-06-04 01:49:19 +0000353
354 <!-- =============================================================================== -->
355 <!-- Allow the 'New XML' wizard to be accessed via the 'Generate' menu on a DTD file -->
356 <!-- =============================================================================== -->
amywu19503192008-03-26 05:32:35 +0000357<!--
david_williamsad0e4cc2005-06-04 01:49:19 +0000358 <extension point="org.eclipse.ui.popupMenus">
359 <objectContribution
360 objectClass="org.eclipse.core.resources.IFile"
361 nameFilter="*.dtd"
362 id="org.eclipse.wst.xmlwizard.createXMLFromDTD">
363 <menu
364 label="%genMenuLabel"
365 path="additions"
366 id="generateXMLArtifacts">
367 <separator name="xml" />
368 </menu>
369 <action
370 label="%_UI_ACTION_CREATE_XML"
371 class="org.eclipse.wst.xml.ui.internal.wizards.XMLImportActionDelegate"
372 menubarPath="generateXMLArtifacts/xml"
373 enablesFor="1"
374 id="org.eclipse.wst.xmlwizard.createXMLFromDTDAction">
375 </action>
376 </objectContribution>
377 </extension>
amywu19503192008-03-26 05:32:35 +0000378-->
david_williamsad0e4cc2005-06-04 01:49:19 +0000379
380 <!-- =============================================================================== -->
381 <!-- Contribute a New->Example... entry for Editing and Validating XML files -->
382 <!-- =============================================================================== -->
383
384 <!-- define the XMLSamples project wizard -->
385 <extension point="org.eclipse.ui.newWizards">
386 <category
387 name="%_UI_WIZARD_NEW_XML"
388 parentCategory="org.eclipse.ui.Examples"
389 id="org.eclipse.wst.xml.examples">
390 </category>
391 <wizard
392 name="%XMLExample.name"
393 class="org.eclipse.wst.xml.ui.internal.wizards.ExampleProjectCreationWizard"
394 category="org.eclipse.ui.Examples/org.eclipse.wst.xml.examples"
395 id="org.eclipse.wst.xml.ui.XMLExampleProjectCreationWizard"
396 project="true"
david_williamsb5d05632006-02-27 09:24:00 +0000397 icon="$nl$/icons/newSampleProject_wiz.gif">
david_williamsad0e4cc2005-06-04 01:49:19 +0000398 <description>
399 %XMLExampleProjectCreationWizard.description
400 </description>
401 </wizard>
402 </extension>
403
404 <!-- configure the XMLSamples project wizard -->
405 <extension
406 point="org.eclipse.wst.common.ui.exampleProjectCreationWizard"
407 id="XMLExampleProjectCreationWizardExtension">
408 <wizard
409 id="org.eclipse.wst.xml.ui.XMLExampleProjectCreationWizard"
amywu01789332006-10-16 19:04:49 +0000410 banner="icons/newSampleProject_wizbanner.png">
david_williamsad0e4cc2005-06-04 01:49:19 +0000411 <projectsetup
412 pagetitle="%XMLExampleProjectCreationWizard.pagetitle"
413 name="%XMLExampleProjectCreationWizard.projectname"
414 label="%XMLExampleProjectCreationWizard.label"
415 pagedescription="%XMLExampleProjectCreationWizard.pagedescription"
416 open="readme.html">
417 <import
418 dest=""
419 src="examples/EditingAndValidatingXML.zip" />
420 </projectsetup>
421 </wizard>
422 </extension>
423
424 <!-- initialize xml ui preferences -->
425 <extension point="org.eclipse.core.runtime.preferences">
426 <initializer
427 class="org.eclipse.wst.xml.ui.internal.preferences.XMLUIPreferenceInitializer" />
428 </extension>
429
430 <extension point="org.eclipse.wst.sse.ui.sourcevalidation">
431 <validator
432 scope="total"
433 class="org.eclipse.wst.xml.ui.internal.validation.DelegatingSourceValidatorForXML"
434 id="org.eclipse.wst.xml.ui.internal.validation.DelegatingSourceValidatorForXML">
435 <contentTypeIdentifier id="org.eclipse.core.runtime.xml">
nitind8d9f0502006-06-07 06:21:48 +0000436 <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
437 <partitionType id="org.eclipse.wst.sse.ST_DEFAULT"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000438 </contentTypeIdentifier>
nitindfd1a0ac2007-09-03 07:06:41 +0000439 <contentTypeIdentifier id="org.eclipse.wst.xml.core.xmlsource">
440 <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
441 <partitionType id="org.eclipse.wst.sse.ST_DEFAULT"/>
442 </contentTypeIdentifier>
david_williamsad0e4cc2005-06-04 01:49:19 +0000443 </validator>
444 </extension>
paverydfec4172005-11-09 21:42:30 +0000445
446 <extension point="org.eclipse.wst.sse.ui.sourcevalidation">
447 <validator
448 scope="partial"
449 class="org.eclipse.wst.xml.ui.internal.validation.MarkupValidator"
nitind8d9f0502006-06-07 06:21:48 +0000450 id="org.eclipse.wst.xml.ui.internal.validation.markupvalidator">
paverydfec4172005-11-09 21:42:30 +0000451 <contentTypeIdentifier id="org.eclipse.core.runtime.xml">
nitind8d9f0502006-06-07 06:21:48 +0000452 <partitionType id="org.eclipse.wst.sse.ST_DEFAULT"/>
453 <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
paverydfec4172005-11-09 21:42:30 +0000454 </contentTypeIdentifier>
nitindfd1a0ac2007-09-03 07:06:41 +0000455 <contentTypeIdentifier id="org.eclipse.wst.xml.core.xmlsource">
456 <partitionType id="org.eclipse.wst.xml.XML_DEFAULT"/>
457 <partitionType id="org.eclipse.wst.sse.ST_DEFAULT"/>
458 </contentTypeIdentifier>
paverydfec4172005-11-09 21:42:30 +0000459 </validator>
460 </extension>
461
nitinde8c10492008-03-12 22:42:56 +0000462 <extension point="org.eclipse.ui.editors.annotationTypes">
463 <type name="org.eclipse.wst.xml.ui.matching.tag"/>
464 </extension>
465 <extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
466 <specification
nitind29c67af2008-03-26 21:09:35 +0000467 includeOnPreferencePage="true"
nitinde8c10492008-03-12 22:42:56 +0000468 colorPreferenceValue="212,212,212"
469 annotationType="org.eclipse.wst.xml.ui.matching.tag"
470 colorPreferenceKey="matchingTagIndicationColor"
471 presentationLayer="4"
472 label="%MatchingTagPreference.label"
473 icon="icons/full/obj16/tag-generic.gif"
474 textPreferenceValue="false"
475 textPreferenceKey="matchingTagIndication"
476 highlightPreferenceKey="matchingTagHighlight"
477 highlightPreferenceValue="true"
478 verticalRulerPreferenceKey="matchingTagVerticalRuler"
479 verticalRulerPreferenceValue="false"
480 overviewRulerPreferenceKey="matchingTagIndicationInOverviewRuler"
481 overviewRulerPreferenceValue="true"
482 textStylePreferenceKey="matchingTagTextStyle"
483 textStylePreferenceValue="NONE">
484 </specification>
485 </extension>
486
nitindd4f81c02005-02-07 23:11:25 +0000487 <!--======================================================================================-->
488 <!-- Document provider for ExternalFileEditorInput -->
489 <!--======================================================================================-->
david_williamsad0e4cc2005-06-04 01:49:19 +0000490 <extension point="org.eclipse.ui.editors.documentProviders">
491 <provider
492 inputTypes="org.eclipse.wst.xml.ui.internal.hyperlink.ExternalFileEditorInput"
493 class="org.eclipse.ui.editors.text.TextFileDocumentProvider"
494 id="org.eclipse.wst.xml.ui.internal.ExternalFileDocumentProvider">
495 </provider>
496 </extension>
nitindd4f81c02005-02-07 23:11:25 +0000497
amywu19503192008-03-26 05:32:35 +0000498 <!-- To Do: migrate this to the org.eclipse.ui.menus popup: format -->
david_williamsad0e4cc2005-06-04 01:49:19 +0000499 <extension point="org.eclipse.ui.popupMenus">
david_williamsa4dd7662005-04-14 00:33:20 +0000500 <viewerContribution
501 targetID="org.eclipse.core.runtime.xml.source.RulerContext"
david_williamsad0e4cc2005-06-04 01:49:19 +0000502 id="org.eclipse.ui.texteditor.ruler.context.actions">
david_williamsa4dd7662005-04-14 00:33:20 +0000503 <action
504 label="%AddTask.label"
505 helpContextId="org.eclipse.ui.AddTask_action_context"
506 class="org.eclipse.ui.texteditor.TaskRulerAction"
507 tooltip="%AddTask.tooltip"
508 menubarPath="additions"
509 id="org.eclipse.ui.texteditor.TaskRulerAction">
510 </action>
511 <action
512 label="%AddBookmark.label"
513 helpContextId="org.eclipse.ui.bookmark_action_context"
514 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
515 tooltip="%AddBookmark.tooltip"
516 menubarPath="additions"
517 id="org.eclipse.ui.texteditor.BookmarkRulerAction">
518 </action>
519 </viewerContribution>
520 </extension>
david_williams09de8f82005-07-08 18:08:48 +0000521
vbaciuc3b34ee2008-05-14 12:29:48 +0000522 <!--======================================================================================-->
523 <!-- Pop-up menu and associated command/handler for nested validation messages. -->
524 <!--======================================================================================-->
525
526 <extension point="org.eclipse.ui.menus">
527 <menuContribution locationURI="popup:org.eclipse.ui.ide.MarkersView">
528 <command commandId="org.eclipse.wst.xml.ui.referencedFileErrors">
529 <visibleWhen checkEnabled="false">
530 <reference definitionId="org.eclipse.wst.xml.ui.referencedFileErrors" />
531 </visibleWhen>
532 </command>
533 </menuContribution>
lmandel3c550af2005-06-16 05:46:02 +0000534 </extension>
vbaciuc3b34ee2008-05-14 12:29:48 +0000535
536 <extension point="org.eclipse.ui.commands">
537 <command
538 description="%_UI_REF_FILE_SHOW_DETAILS"
539 id="org.eclipse.wst.xml.ui.referencedFileErrors"
540 name="%_UI_REF_FILE_SHOW_DETAILS" />
541 </extension>
542
543 <extension point="org.eclipse.ui.handlers">
544 <handler
545 class="org.eclipse.wst.xml.ui.internal.validation.core.errorinfo.ReferencedFileErrorsHandler"
546 commandId="org.eclipse.wst.xml.ui.referencedFileErrors">
547 <enabledWhen>
548 <reference definitionId="org.eclipse.wst.xml.ui.referencedFileErrors" />
549 </enabledWhen>
550 </handler>
551 </extension>
552
553 <extension point="org.eclipse.core.expressions.propertyTesters">
554 <propertyTester
555 class="org.eclipse.wst.xml.ui.internal.validation.core.errorinfo.GroupNamePropertyTester"
556 id="org.eclipse.wst.xml.ui.markerGroupNamePropertyTester"
557 namespace="org.eclipse.wst.xml.ui"
558 properties="groupNamePrefix"
559 type="org.eclipse.core.resources.IMarker">
560 </propertyTester>
561 </extension>
562
563 <extension point="org.eclipse.core.expressions.definitions">
564 <definition id="org.eclipse.wst.xml.ui.referencedFileErrors">
565 <and>
566 <count value="1" />
567 <with variable="selection">
568 <iterate operator="or">
569 <adapt type="org.eclipse.core.resources.IMarker">
570 <test property="org.eclipse.wst.xml.ui.groupNamePrefix" value="referencedFileError" forcePluginActivation="true" />
571 </adapt>
572 </iterate>
573 </with>
574 </and>
575 </definition>
576 </extension>
david_williams09de8f82005-07-08 18:08:48 +0000577
amywu19503192008-03-26 05:32:35 +0000578<!--
nitind102e60a2005-09-15 12:42:42 +0000579 <extension point="org.eclipse.ui.editorActions">
580 <editorContribution
581 id="org.eclipse.core.runtime.xml.source.editorActions"
582 targetID="org.eclipse.core.runtime.xml.source">
583 <action
584 id="CleanupDocument"
585 label="%CleanupDocument_label"
586 definitionId="org.eclipse.wst.sse.ui.cleanup.document"
587 tooltip="%CleanupDocument_tooltip"
588 class="org.eclipse.wst.xml.ui.internal.actions.CleanupActionXMLDelegate"
589 actionID="CleanupDocument">
590 </action>
591 <action
592 id="ToggleComment"
593 label="%ToggleComment_label"
594 definitionId="org.eclipse.wst.sse.ui.toggle.comment"
595 tooltip="%ToggleComment_tooltip"
596 class="org.eclipse.wst.xml.ui.internal.actions.ToggleCommentActionXMLDelegate"
597 actionID="ToggleComment">
598 </action>
599 <action
600 id="AddBlockComment"
601 label="%AddBlockComment_label"
602 definitionId="org.eclipse.wst.sse.ui.add.block.comment"
603 tooltip="%AddBlockComment_tooltip"
604 class="org.eclipse.wst.xml.ui.internal.actions.AddBlockCommentActionXMLDelegate"
605 actionID="AddBlockComment">
606 </action>
607 <action
608 id="RemoveBlockComment"
609 label="%RemoveBlockComment_label"
610 definitionId="org.eclipse.wst.sse.ui.remove.block.comment"
611 tooltip="%RemoveBlockComment_tooltip"
612 class="org.eclipse.wst.xml.ui.internal.actions.RemoveBlockCommentActionXMLDelegate"
613 actionID="RemoveBlockComment">
614 </action>
615 <action
616 id="FindOccurrences"
617 label="%FindOccurrences_label"
618 definitionId="org.eclipse.wst.sse.ui.search.find.occurrences"
619 class="org.eclipse.wst.xml.ui.internal.search.XMLFindOccurrencesActionDelegate"
620 actionID="FindOccurrences">
621 </action>
622 <action
623 id="StructureSelectEnclosing"
624 label="%StructureSelectEnclosing_label"
625 definitionId="org.eclipse.wst.sse.ui.structure.select.enclosing"
626 tooltip="%StructureSelectEnclosing_tooltip"
627 class="org.eclipse.wst.xml.ui.internal.selection.StructuredSelectEnclosingXMLActionDelegate"
628 actionID="StructureSelectEnclosing">
629 </action>
630 <action
631 id="StructureSelectNext"
632 label="%StructureSelectNext_label"
633 definitionId="org.eclipse.wst.sse.ui.structure.select.next"
634 tooltip="%StructureSelectNext_tooltip"
635 class="org.eclipse.wst.xml.ui.internal.selection.StructuredSelectNextXMLActionDelegate"
636 actionID="StructureSelectNext">
637 </action>
638 <action
639 id="StructureSelectPrevious"
640 label="%StructureSelectPrevious_label"
641 definitionId="org.eclipse.wst.sse.ui.structure.select.previous"
642 tooltip="%StructureSelectPrevious_tooltip"
643 class="org.eclipse.wst.xml.ui.internal.selection.StructuredSelectPreviousXMLActionDelegate"
644 actionID="StructureSelectPrevious">
645 </action>
646 <action
647 id="StructureSelectHistory"
648 label="%StructureSelectHistory_label"
649 definitionId="org.eclipse.wst.sse.ui.structure.select.last"
650 tooltip="%StructureSelectHistory_tooltip"
651 class="org.eclipse.wst.sse.ui.internal.selection.StructuredSelectHistoryActionDelegate"
652 actionID="StructureSelectHistory">
653 </action>
654 </editorContribution>
nitind6d98c7b2005-10-07 21:17:31 +0000655 <editorContribution
656 targetID="org.eclipse.core.runtime.xml.source"
657 id="org.eclipse.core.runtime.xml.source.ruler.actions">
658 <action
amywu34aa9802005-12-06 23:33:16 +0000659 label="%AddBookmark.label"
nitind6d98c7b2005-10-07 21:17:31 +0000660 helpContextId="org.eclipse.ui.bookmark_action_context"
661 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
662 actionID="RulerDoubleClick"
663 id="org.eclipse.ui.texteditor.BookmarkRulerAction"/>
664 <action
amywu34aa9802005-12-06 23:33:16 +0000665 label="%SelectRuler.label"
nitind6d98c7b2005-10-07 21:17:31 +0000666 class="org.eclipse.ui.texteditor.SelectRulerAction"
667 actionID="RulerClick"
668 id="org.eclipse.ui.texteditor.SelectRulerAction"/>
669 </editorContribution>
nitind102e60a2005-09-15 12:42:42 +0000670 </extension>
amywu19503192008-03-26 05:32:35 +0000671-->
672
amywu547e8e12007-03-14 20:16:31 +0000673 <extension
674 point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
675 <target
676 id="org.eclipse.core.runtime.xml"
677 name="%XML_Source_target_name">
678 </target>
679 </extension>
680 <extension
681 point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
682 <hyperlinkDetector
683 class="org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector"
684 id="org.eclipse.wst.xml.ui.internal.hyperlink.XMLHyperlinkDetector"
685 name="%XML_hyperlink"
686 targetId="org.eclipse.core.runtime.xml">
687 </hyperlinkDetector>
688 </extension>
nitind720e8b52007-12-18 03:52:33 +0000689 <extension
690 point="org.eclipse.ui.importWizards">
691 <category
692 id="org.eclipse.wst.XMLCategory"
693 name="%_UI_WIZARD_NEW_XML">
694 </category>
695 <wizard
696 category="org.eclipse.wst.XMLCategory"
697 class="org.eclipse.wst.xml.ui.internal.wizards.ImportXMLCatalogWizard"
698 icon="icons/xmldoc.gif"
699 id="org.eclipse.wst.xml.ui.internal.wizards.ImportXMLCatalogWizard"
amywubb78f592008-01-09 22:11:36 +0000700 name="%_UI_WIZARD_IMPORT_EXPORT_XMLCATALOG">
nitind720e8b52007-12-18 03:52:33 +0000701 <description>
702 %_UI_IMPORT_XML_CATALOG_FILE
703 </description>
704 </wizard>
705 </extension>
706 <extension
707 point="org.eclipse.ui.exportWizards">
708 <category
709 id="org.eclipse.wst.XMLCategory"
710 name="%_UI_WIZARD_NEW_XML">
711 </category>
712 <wizard
713 category="org.eclipse.wst.XMLCategory"
714 class="org.eclipse.wst.xml.ui.internal.wizards.ExportXMLCatalogWizard"
715 icon="icons/xmldoc.gif"
716 id="org.eclipse.wst.xml.ui.internal.wizards.ExportXMLCatalogWizard"
amywubb78f592008-01-09 22:11:36 +0000717 name="%_UI_WIZARD_IMPORT_EXPORT_XMLCATALOG">
nitind720e8b52007-12-18 03:52:33 +0000718 <description>
719 %_UI_EXPORT_XML_CATALOG_FILE
720 </description>
721 </wizard>
722 </extension>
nitindfef1e032008-02-26 02:53:34 +0000723
724 <extension point="org.eclipse.ui.commands">
725 <!-- Navigate commands -->
726 <command
727 name="%ActionDefinition.nextSibling.name"
728 description="%ActionDefinition.nextSibling.description"
729 categoryId="org.eclipse.ui.category.edit"
730 id="org.eclipse.wst.xml.ui.nextSibling">
731 </command>
732 <command
733 name="%ActionDefinition.previousSibling.name"
734 description="%ActionDefinition.previousSibling.description"
735 categoryId="org.eclipse.ui.category.edit"
736 id="org.eclipse.wst.xml.ui.previousSibling">
737 </command>
nitind12293662008-02-28 05:14:02 +0000738 <command
739 name="%ActionDefinition.gotoMatchingTag.name"
740 description="%ActionDefinition.gotoMatchingTag.description"
741 categoryId="org.eclipse.ui.category.edit"
742 id="org.eclipse.wst.xml.ui.gotoMatchingTag">
743 </command>
nitindfef1e032008-02-26 02:53:34 +0000744 </extension>
745
746 <extension point="org.eclipse.ui.bindings">
nitindca70b6f2008-03-06 01:01:08 +0000747 <!-- win32: M1=CTRL, M2=SHIFT, M3=ALT, M4=-
748 carbon: M1=COMMAND, M2=SHIFT, M3=ALT, M4=CTRL
749 gtk: ?
750 -->
751 <!-- Navigate commands -->
nitindfef1e032008-02-26 02:53:34 +0000752 <key
753 sequence="M1+M2+ARROW_UP"
754 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
755 commandId="org.eclipse.wst.xml.ui.previousSibling"
756 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
757 <key
nitindca70b6f2008-03-06 01:01:08 +0000758 platform="carbon"
759 sequence="CTRL+SHIFT+ARROW_UP"
760 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
761 commandId="org.eclipse.wst.xml.ui.previousSibling"
762 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
763 <key
nitindfef1e032008-02-26 02:53:34 +0000764 sequence="M1+M2+ARROW_DOWN"
765 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
766 commandId="org.eclipse.wst.xml.ui.nextSibling"
767 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
nitind12293662008-02-28 05:14:02 +0000768 <key
nitindca70b6f2008-03-06 01:01:08 +0000769 platform="carbon"
770 sequence="CTRL+SHIFT+ARROW_DOWN"
771 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
772 commandId="org.eclipse.wst.xml.ui.nextSibling"
773 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
774 <key
nitindae479a52008-02-28 05:40:29 +0000775 sequence="M1+M2+&gt;"
nitind12293662008-02-28 05:14:02 +0000776 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
777 commandId="org.eclipse.wst.xml.ui.gotoMatchingTag"
778 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
nitindca70b6f2008-03-06 01:01:08 +0000779 <key
780 platform="carbon"
nitindb73bdcb2008-04-03 01:54:31 +0000781 sequence="CTRL+SHIFT+."
nitindca70b6f2008-03-06 01:01:08 +0000782 contextId="org.eclipse.wst.sse.ui.structuredTextEditorScope"
783 commandId="org.eclipse.wst.xml.ui.gotoMatchingTag"
784 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
785
nitindfef1e032008-02-26 02:53:34 +0000786 </extension>
amywu19503192008-03-26 05:32:35 +0000787
788<!--
789 This section contains the new org.eclipse.ui.menus extions points and command handler
790 definitions.
791 -->
792
793 <extension point="org.eclipse.ui.menus">
amywud0a69a02008-03-27 02:58:48 +0000794 <!-- Unable to contribute to Search menu at the moment due to bug 213385 -->
795<!--
796 <menuContribution locationURI="menu:org.eclipse.search.menu">
797-->
amywud0a69a02008-03-27 02:58:48 +0000798 <menuContribution locationURI="menu:goTo?after=matchingEnd">
799<!--
800 <command commandId="org.eclipse.wst.xml.ui.gotoMatchingTag" id="GoToMatchingTag" label="%GoToMatchingTag_label" style="push">
801 <visibleWhen checkEnabled="false">
802 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"></reference>
803 </visibleWhen>
804 </command>
805-->
806 <separator name="goToSiblingsBegin" visible="true"></separator>
807 <command commandId="org.eclipse.wst.xml.ui.nextSibling" id="GoToNextSibling" label="%ActionDefinition.nextSibling.name" style="push">
808 <visibleWhen checkEnabled="false">
amywu81706092008-04-03 06:45:06 +0000809 <reference definitionId="org.eclipse.wst.xml.ui.navigation"></reference>
amywud0a69a02008-03-27 02:58:48 +0000810 </visibleWhen>
811 </command>
812 <command commandId="org.eclipse.wst.xml.ui.previousSibling" id="GoToPreviousSibling" label="%ActionDefinition.previousSibling.name" style="push">
813 <visibleWhen checkEnabled="false">
amywu81706092008-04-03 06:45:06 +0000814 <reference definitionId="org.eclipse.wst.xml.ui.navigation"></reference>
amywud0a69a02008-03-27 02:58:48 +0000815 </visibleWhen>
816 </command>
817 <separator name="goToSiblingsEnd" visible="false"></separator>
818 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000819 <menuContribution
820 locationURI="menu:org.eclipse.ui.main.menu?before=window">
821 <menu
822 id="org.eclipse.wst.xml.ui.designMenuId"
823 label="%DesignMenu_name">
824 <separator
825 name="designStart">
826 </separator>
827 <command
828 commandId="org.eclipse.wst.xml.ui.disable.grammar.constraints"
829 icon="icons/full/etool16/constrainon.gif"
830 id="ToggleGrammarConstraints"
amywu81706092008-04-03 06:45:06 +0000831 mnemonic="%Constraints_mnemonic"
amywu19503192008-03-26 05:32:35 +0000832 style="push">
833 <visibleWhen checkEnabled="false">
amywu81706092008-04-03 06:45:06 +0000834 <and>
835 <reference definitionId="org.eclipse.wst.xml.ui.grammar"/>
amywu19503192008-03-26 05:32:35 +0000836 <not>
837 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
838 </not>
839 </and>
840 </visibleWhen>
841 </command>
842 <command
843 commandId="org.eclipse.wst.xml.ui.reload.dependecies"
844 icon="icons/full/etool16/rldgrmr.gif"
845 id="ReloadDependencies"
amywu81706092008-04-03 06:45:06 +0000846 mnemonic="%ReloadDependencies_mnemonic"
amywu19503192008-03-26 05:32:35 +0000847 style="push">
848 <visibleWhen checkEnabled="false">
amywu81706092008-04-03 06:45:06 +0000849 <and>
850 <reference definitionId="org.eclipse.wst.xml.ui.dependencies"/>
amywu19503192008-03-26 05:32:35 +0000851 <not>
852 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
853 </not>
854 </and>
855 </visibleWhen>
856 </command>
857 <separator
858 name="expand"
859 visible="true">
860 </separator>
861
862 <command
863 commandId="sed.tabletree.expandAll"
864 icon="icons/full/etool16/expand_all.gif"
865 id="ExpandAll"
866 style="push">
867 <visibleWhen checkEnabled="false">
868 <and>
amywu81706092008-04-03 06:45:06 +0000869 <reference definitionId="org.eclipse.wst.xml.ui.expand"/>
amywu19503192008-03-26 05:32:35 +0000870 <not>
871 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
872 </not>
873 </and>
874 </visibleWhen>
875 </command>
876 <command
877 commandId="sed.tabletree.collapseAll"
878 icon="icons/full/etool16/collapse_all.gif"
879 id="CollapseAll"
880 style="push">
881 <visibleWhen checkEnabled="false">
882 <and>
amywu81706092008-04-03 06:45:06 +0000883 <reference definitionId="org.eclipse.wst.xml.ui.expand"/>
amywu19503192008-03-26 05:32:35 +0000884 <not>
885 <reference definitionId="org.eclipse.wst.sse.ui.sseActiveContext.definition"/>
886 </not>
887 </and>
888 </visibleWhen>
889 </command>
890
891 <separator
892 name="additions"
893 visible="true">
894 </separator>
895 <separator
896 name="designEnd"
897 visible="false">
898 </separator>
899 </menu>
900 </menuContribution>
nitind5c771fb2008-04-24 04:58:32 +0000901 <menuContribution locationURI="menu:edit?after=additions">
902 <command commandId="org.eclipse.ui.edit.text.contentAssist.proposals" id="XMLContentAssist" style="push">
903 <visibleWhen checkEnabled="false">
904 <reference definitionId="org.eclipse.wst.xml.ui.xmlSourceContributions.definition"></reference>
905 </visibleWhen>
906 </command>
907 </menuContribution>
amywu19503192008-03-26 05:32:35 +0000908 <menuContribution
909 locationURI="popup:org.eclipse.ui.popup.any?after=additions">
910 <menu
911 id="generateMenuId"
912 label="%genMenuLabel">
913 <command
914 commandId="org.eclipse.wst.sse.ui.generate.xml"
915 id="GenerateXML"
916 style="push">
917 <visibleWhen checkEnabled="false">
918 <or>
amywu8812d752008-04-21 17:41:37 +0000919 <iterate ifEmpty="false">
amywu19503192008-03-26 05:32:35 +0000920 <adapt
921 type="org.eclipse.core.resources.IFile">
922 <test
nitind24dfab32008-05-22 16:40:03 +0000923 property="org.eclipse.wst.sse.core.resources.contentTypeId"
amywu19503192008-03-26 05:32:35 +0000924 value="org.eclipse.wst.xsd.core.xsdsource">
925 </test>
926 </adapt>
927 </iterate>
amywu8812d752008-04-21 17:41:37 +0000928 <iterate ifEmpty="false">
amywu19503192008-03-26 05:32:35 +0000929 <adapt
930 type="org.eclipse.core.resources.IFile">
931 <test
nitind24dfab32008-05-22 16:40:03 +0000932 property="org.eclipse.wst.sse.core.resources.contentTypeId"
amywu19503192008-03-26 05:32:35 +0000933 value="org.eclipse.wst.dtd.core.dtdsource">
934 </test>
935 </adapt>
936 </iterate>
937 </or>
938 </visibleWhen>
939 </command>
940 </menu>
941 </menuContribution>
942
943 <menuContribution
944 locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
945 <toolbar
946 id="org.eclipse.wst.xml.ui.design.DesignToolBar">
947 <separator
948 name="sed.tabletree.separator.1"
949 visible="true">
950 </separator>
951 <command
952 commandId="org.eclipse.wst.xml.ui.disable.grammar.constraints"
953 icon="icons/full/etool16/constrainon.gif"
954 id="ToggleGrammarConstraints"
955 style="push"
956 tooltip="%Constraints_name">
957 <visibleWhen
958 checkEnabled="false">
959 <reference
amywu81706092008-04-03 06:45:06 +0000960 definitionId="org.eclipse.wst.xml.ui.grammar">
amywu19503192008-03-26 05:32:35 +0000961 </reference>
962 </visibleWhen>
963 </command>
964 <command
965 commandId="org.eclipse.wst.xml.ui.reload.dependecies"
966 icon="icons/full/etool16/rldgrmr.gif"
967 id="ReloadDependencies"
968 style="push">
969 <visibleWhen
970 checkEnabled="false">
971 <reference
amywu81706092008-04-03 06:45:06 +0000972 definitionId="org.eclipse.wst.xml.ui.dependencies">
amywu19503192008-03-26 05:32:35 +0000973 </reference>
974 </visibleWhen>
975 </command>
976 <separator
977 name="sed.tabletree.separator.2"
978 visible="true">
979 </separator>
980 <command
981 commandId="sed.tabletree.expandAll"
982 icon="icons/full/etool16/expand_all.gif"
983 id="ExpandAll"
984 style="push">
985 <visibleWhen
986 checkEnabled="false">
987 <reference
amywu81706092008-04-03 06:45:06 +0000988 definitionId="org.eclipse.wst.xml.ui.expand">
amywu19503192008-03-26 05:32:35 +0000989 </reference>
990 </visibleWhen>
991 </command>
992 <command
993 commandId="sed.tabletree.collapseAll"
994 icon="icons/full/etool16/collapse_all.gif"
995 id="CollapseAll"
996 style="push">
amywu81706092008-04-03 06:45:06 +0000997 <visibleWhen
amywu19503192008-03-26 05:32:35 +0000998 checkEnabled="false">
999 <reference
amywu81706092008-04-03 06:45:06 +00001000 definitionId="org.eclipse.wst.xml.ui.expand">
amywu19503192008-03-26 05:32:35 +00001001 </reference>
1002 </visibleWhen>
1003 </command>
1004 </toolbar>
1005 </menuContribution>
1006 </extension>
1007
1008 <extension point="org.eclipse.core.expressions.definitions">
1009 <definition id="org.eclipse.wst.xml.ui.xmlSourceContributions.definition">
amywu81706092008-04-03 06:45:06 +00001010 <with variable="activeContexts">
1011 <iterate operator="or">
1012 <equals value="org.eclipse.core.runtime.xml"/>
1013 </iterate>
1014 </with>
1015 </definition>
1016 </extension>
1017
1018 <extension point="org.eclipse.core.expressions.definitions">
1019 <definition id="org.eclipse.wst.xml.ui.core">
1020 <with variable="activeContexts">
1021 <iterate operator="or">
1022 <equals value="org.eclipse.core.runtime.xml"/>
1023 </iterate>
1024 </with>
1025 </definition>
1026 </extension>
1027
1028 <extension point="org.eclipse.core.expressions.definitions">
1029 <definition id="org.eclipse.wst.xml.ui.occurrences">
1030 <with variable="activeContexts">
1031 <iterate operator="or">
1032 <equals value="org.eclipse.wst.xml.occurrences"/>
1033 </iterate>
1034 </with>
1035 </definition>
1036 </extension>
1037
1038 <extension point="org.eclipse.core.expressions.definitions">
1039 <definition id="org.eclipse.wst.xml.ui.comments">
1040 <with variable="activeContexts">
1041 <iterate operator="or">
1042 <equals value="org.eclipse.wst.xml.comments"/>
1043 </iterate>
1044 </with>
1045 </definition>
1046 </extension>
1047
1048 <extension point="org.eclipse.core.expressions.definitions">
1049 <definition id="org.eclipse.wst.xml.ui.cleanup">
1050 <with variable="activeContexts">
1051 <iterate operator="or">
1052 <equals value="org.eclipse.wst.xml.cleanup"/>
1053 </iterate>
1054 </with>
1055 </definition>
1056 </extension>
1057
1058 <extension point="org.eclipse.core.expressions.definitions">
1059 <definition id="org.eclipse.wst.xml.ui.navigation">
1060 <with variable="activeContexts">
1061 <iterate operator="or">
1062 <equals value="org.eclipse.wst.xml.navigation"/>
1063 </iterate>
1064 </with>
1065 </definition>
1066 </extension>
1067
1068 <extension point="org.eclipse.core.expressions.definitions">
1069 <definition id="org.eclipse.wst.xml.ui.selection">
1070 <with variable="activeContexts">
1071 <iterate operator="or">
1072 <equals value="org.eclipse.wst.xml.selection"/>
1073 </iterate>
1074 </with>
1075 </definition>
1076 </extension>
1077
1078 <extension point="org.eclipse.core.expressions.definitions">
1079 <definition id="org.eclipse.wst.xml.ui.dependencies">
amywud0a69a02008-03-27 02:58:48 +00001080 <or>
1081 <with variable="activeEditorId">
1082 <equals value="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"></equals>
1083 </with>
amywu81706092008-04-03 06:45:06 +00001084 <with variable="activeContexts">
1085 <iterate operator="or">
1086 <equals value="org.eclipse.wst.xml.dependencies"/>
1087 </iterate>
1088 </with>
amywud0a69a02008-03-27 02:58:48 +00001089 </or>
amywu19503192008-03-26 05:32:35 +00001090 </definition>
1091 </extension>
amywu81706092008-04-03 06:45:06 +00001092
1093 <extension point="org.eclipse.core.expressions.definitions">
1094 <definition id="org.eclipse.wst.xml.ui.grammar">
1095 <or>
1096 <with variable="activeEditorId">
1097 <equals value="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"></equals>
1098 </with>
1099 <with variable="activeContexts">
1100 <iterate operator="or">
1101 <equals value="org.eclipse.wst.xml.grammar"/>
1102 </iterate>
1103 </with>
1104 </or>
1105 </definition>
1106 </extension>
1107
1108 <extension point="org.eclipse.core.expressions.definitions">
1109 <definition id="org.eclipse.wst.xml.ui.expand">
1110 <or>
1111 <with variable="activeEditorId">
1112 <equals value="org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart"></equals>
1113 </with>
1114 <with variable="activeContexts">
1115 <iterate operator="or">
1116 <equals value="org.eclipse.wst.xml.expand"/>
1117 </iterate>
1118 </with>
1119 </or>
1120 </definition>
1121 </extension>
1122
amywu19503192008-03-26 05:32:35 +00001123 <extension
1124 point="org.eclipse.ui.handlers">
1125 <handler
1126 class="org.eclipse.wst.xml.ui.internal.handlers.CleanupdocumentHandler"
1127 commandId="org.eclipse.wst.sse.ui.cleanup.document">
1128 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001129 <reference definitionId="org.eclipse.wst.xml.ui.cleanup"/>
amywu19503192008-03-26 05:32:35 +00001130 </activeWhen>
1131 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001132 <reference definitionId="org.eclipse.wst.xml.ui.cleanup"/>
amywu19503192008-03-26 05:32:35 +00001133 </enabledWhen>
1134 </handler>
1135 <handler
1136 class="org.eclipse.wst.xml.ui.internal.handlers.ToggleCommentHandler"
1137 commandId="org.eclipse.wst.sse.ui.toggle.comment">
1138 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001139 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001140 </activeWhen>
1141 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001142 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001143 </enabledWhen>
1144 </handler>
1145 <handler
1146 class="org.eclipse.wst.xml.ui.internal.handlers.AddBlockCommentHandler"
1147 commandId="org.eclipse.wst.sse.ui.add.block.comment">
1148 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001149 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001150 </activeWhen>
1151 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001152 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001153 </enabledWhen>
1154 </handler>
1155 <handler
1156 class="org.eclipse.wst.xml.ui.internal.handlers.RemoveBlockCommentHandler"
1157 commandId="org.eclipse.wst.sse.ui.remove.block.comment">
1158 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001159 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001160 </activeWhen>
1161 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001162 <reference definitionId="org.eclipse.wst.xml.ui.comments"/>
amywu19503192008-03-26 05:32:35 +00001163 </enabledWhen>
1164 </handler>
1165 <handler
amywud0a69a02008-03-27 02:58:48 +00001166 class="org.eclipse.wst.xml.ui.internal.handlers.StructuredSelectEnclosingXMLHandler"
1167 commandId="org.eclipse.wst.sse.ui.structure.select.enclosing">
1168 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001169 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001170 </activeWhen>
1171 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001172 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001173 </enabledWhen>
1174 </handler>
1175 <handler
1176 class="org.eclipse.wst.xml.ui.internal.handlers.StructuredSelectNextXMLHandler"
1177 commandId="org.eclipse.wst.sse.ui.structure.select.next">
1178 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001179 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001180 </activeWhen>
1181 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001182 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001183 </enabledWhen>
1184 </handler>
1185 <handler
1186 class="org.eclipse.wst.xml.ui.internal.handlers.StructuredSelectPreviousXMLHandler"
1187 commandId="org.eclipse.wst.sse.ui.structure.select.previous">
1188 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001189 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001190 </activeWhen>
1191 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001192 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001193 </enabledWhen>
1194 </handler>
1195 <handler
1196 class="org.eclipse.wst.sse.ui.internal.handlers.StructuredSelectHistoryHandler"
1197 commandId="org.eclipse.wst.sse.ui.structure.select.last">
1198 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001199 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001200 </activeWhen>
1201 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001202 <reference definitionId="org.eclipse.wst.xml.ui.selection"/>
amywud0a69a02008-03-27 02:58:48 +00001203 </enabledWhen>
1204 </handler>
1205 <handler
amywu19503192008-03-26 05:32:35 +00001206 class="org.eclipse.wst.xml.ui.internal.handlers.XMLFindOccurencesHandler"
1207 commandId="org.eclipse.wst.sse.ui.search.find.occurrences">
1208 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001209 <reference definitionId="org.eclipse.wst.xml.ui.occurrences"/>
amywu19503192008-03-26 05:32:35 +00001210 </activeWhen>
1211 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001212 <reference definitionId="org.eclipse.wst.xml.ui.occurrences"/>
amywu19503192008-03-26 05:32:35 +00001213 </enabledWhen>
1214 </handler>
amywud0a69a02008-03-27 02:58:48 +00001215<!--
1216 <handler
1217 class="org.eclipse.wst.xml.ui.internal.handlers.GoToMatchingTagHandler"
1218 commandId="org.eclipse.wst.xml.ui.gotoMatchingTag">
1219 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001220 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001221 </activeWhen>
1222 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001223 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001224 </enabledWhen>
1225 </handler>
1226-->
1227 <handler
1228 class="org.eclipse.wst.xml.ui.internal.handlers.NextSiblingNavigationHandler"
1229 commandId="org.eclipse.wst.xml.ui.nextSibling">
1230 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001231 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001232 </activeWhen>
1233 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001234 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001235 </enabledWhen>
1236 </handler>
1237 <handler
1238 class="org.eclipse.wst.xml.ui.internal.handlers.PreviousSiblingNavigationHandler"
1239 commandId="org.eclipse.wst.xml.ui.previousSibling">
1240 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001241 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001242 </activeWhen>
1243 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001244 <reference definitionId="org.eclipse.wst.xml.ui.navigation"/>
amywud0a69a02008-03-27 02:58:48 +00001245 </enabledWhen>
1246 </handler>
amywu19503192008-03-26 05:32:35 +00001247 <handler
1248 class="org.eclipse.wst.xml.ui.internal.handlers.ReloadDependenciesHandler"
1249 commandId="org.eclipse.wst.xml.ui.reload.dependecies">
1250 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001251 <reference definitionId="org.eclipse.wst.xml.ui.dependencies"/>
amywu19503192008-03-26 05:32:35 +00001252 </activeWhen>
1253 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001254 <reference definitionId="org.eclipse.wst.xml.ui.dependencies"/>
amywu19503192008-03-26 05:32:35 +00001255 </enabledWhen>
1256 </handler>
1257 <handler
1258 class="org.eclipse.wst.xml.ui.internal.handlers.ToggleEditModeHandler"
1259 commandId="org.eclipse.wst.xml.ui.disable.grammar.constraints">
1260 <activeWhen>
amywu81706092008-04-03 06:45:06 +00001261 <reference definitionId="org.eclipse.wst.xml.ui.grammar"/>
amywu19503192008-03-26 05:32:35 +00001262 </activeWhen>
1263 <enabledWhen>
amywu81706092008-04-03 06:45:06 +00001264 <reference definitionId="org.eclipse.wst.xml.ui.grammar"/>
amywu19503192008-03-26 05:32:35 +00001265 </enabledWhen>
1266 </handler>
1267 <handler
1268 class="org.eclipse.wst.xml.ui.internal.wizards.NewXMLHandler"
1269 commandId="org.eclipse.wst.sse.ui.generate.xml">
1270 </handler>
1271 <handler
1272 class="org.eclipse.wst.xml.ui.internal.handlers.ExpandAllHandler"
1273 commandId="sed.tabletree.expandAll">
1274 <activeWhen>
1275 <not>
1276 <with variable="activeContexts">
1277 <iterate operator="or">
1278 <equals value="org.eclipse.wst.sse.ui.structuredTextEditorScope"/>
1279 </iterate>
1280 </with>
1281 </not>
1282 </activeWhen>
1283 </handler>
1284 <handler
1285 class="org.eclipse.wst.xml.ui.internal.handlers.CollapseAllHandler"
1286 commandId="sed.tabletree.collapseAll">
1287 <activeWhen>
1288 <not>
1289 <with variable="activeContexts">
1290 <iterate operator="or">
1291 <equals value="org.eclipse.wst.sse.ui.structuredTextEditorScope"/>
1292 </iterate>
1293 </with>
1294 </not>
1295 </activeWhen>
1296 </handler>
1297 </extension>
1298
1299 <extension
1300 point="org.eclipse.ui.commands">
1301 <command
1302 id="org.eclipse.wst.sse.ui.generate.xml"
1303 name="%_UI_ACTION_CREATE_XML">
1304 </command>
1305 <command
1306 description="%ReloadDependencies_description"
1307 id="org.eclipse.wst.xml.ui.reload.dependecies"
1308 name="%ReloadDependencies_name">
1309 </command>
1310 <command
1311 description="%Constraints_description"
1312 id="org.eclipse.wst.xml.ui.disable.grammar.constraints"
1313 name="%Constraints_name">
1314 </command>
1315 <command
1316 id="sed.tabletree.expandAll"
1317 name="%ExpandAll_name">
1318 </command>
1319 <command
1320 id="sed.tabletree.collapseAll"
1321 name="%CollapseAll_name">
1322 </command>
1323 </extension>
nitind52fe70b2008-05-15 21:52:16 +00001324
1325 <!-- Define theme -->
1326 <extension
1327 point="org.eclipse.ui.themes">
1328 <theme
1329 id="org.eclipse.ui.ide.systemDefault">
1330 <colorOverride
1331 id="tagAttributeName"
1332 value="COLOR_LIST_FOREGROUND">
1333 </colorOverride>
1334 <colorOverride
1335 id="tagAttributeValue"
1336 value="COLOR_LIST_FOREGROUND">
1337 </colorOverride>
1338 <colorOverride
1339 id="commentBorder"
1340 value="COLOR_LIST_SELECTION">
1341 </colorOverride>
1342 <colorOverride
1343 id="commentText"
1344 value="COLOR_LIST_SELECTION">
1345 </colorOverride>
1346 <colorOverride
1347 id="declBoder"
1348 value="COLOR_LIST_FOREGROUND">
1349 </colorOverride>
1350 <colorOverride
1351 id="doctypeName"
1352 value="COLOR_LIST_FOREGROUND">
1353 </colorOverride>
1354 <colorOverride
1355 id="doctypeExternalPubref"
1356 value="COLOR_LIST_FOREGROUND">
1357 </colorOverride>
1358 <colorOverride
1359 id="doctypeExternalId"
1360 value="COLOR_WIDGET_NORMAL_SHADOW">
1361 </colorOverride>
1362 <colorOverride
1363 id="doctypeExtrenalSysref"
1364 value="COLOR_LIST_FOREGROUND">
1365 </colorOverride>
1366 <colorOverride
1367 id="tagBorder"
1368 value="COLOR_LIST_FOREGROUND">
1369 </colorOverride>
1370 <colorOverride
1371 id="tagName"
1372 value="COLOR_LIST_FOREGROUND">
1373 </colorOverride>
1374 <colorOverride
1375 id="piBorder"
1376 value="COLOR_LIST_FOREGROUND">
1377 </colorOverride>
1378 <colorOverride
1379 id="cdataBorder"
1380 value="COLOR_LIST_FOREGROUND">
1381 </colorOverride>
1382 <colorOverride
1383 id="cdataText"
1384 value="COLOR_LIST_FOREGROUND">
1385 </colorOverride>
1386 <colorOverride
1387 id="entityReference"
1388 value="COLOR_LIST_FOREGROUND">
1389 </colorOverride>
1390 </theme>
1391 <colorDefinition
1392 id="tagAttributeName"
1393 isEditable="false"
1394 label="%Colors.tagAttributeName"
1395 value="127, 0, 127">
1396 </colorDefinition>
1397 <colorDefinition
1398 id="tagAttributeValue"
1399 isEditable="false"
1400 label="%Colors.tagAttributeValue"
1401 value="42, 0, 255">
1402 </colorDefinition>
1403 <colorDefinition
1404 id="commentBorder"
1405 isEditable="false"
1406 label="%Colors.commentBorder"
1407 value="63, 95, 191">
1408 </colorDefinition>
1409 <colorDefinition
1410 id="commentText"
1411 isEditable="false"
1412 label="%Colors.commentText"
1413 value="63, 95, 191">
1414 </colorDefinition>
1415 <colorDefinition
1416 id="declBoder"
1417 isEditable="false"
1418 label="%Colors.declBorder"
1419 value="0, 128, 128">
1420 </colorDefinition>
1421 <colorDefinition
1422 id="doctypeName"
1423 isEditable="false"
1424 label="%Colors.doctypeName"
1425 value="0, 128, 128">
1426 </colorDefinition>
1427 <colorDefinition
1428 id="doctypeExternalPubref"
1429 isEditable="false"
1430 label="%Colors.doctypeExternalPubref"
1431 value="0, 128, 128">
1432 </colorDefinition>
1433 <colorDefinition
1434 id="doctypeExternalId"
1435 isEditable="false"
1436 label="%Colors.doctypeExternalId"
1437 value="128, 128, 128">
1438 </colorDefinition>
1439 <colorDefinition
1440 id="doctypeExtrenalSysref"
1441 isEditable="false"
1442 label="%Colors.doctypeExtrenalSysref"
1443 value="63, 127, 95">
1444 </colorDefinition>
1445 <colorDefinition
1446 id="tagBorder"
1447 isEditable="false"
1448 label="%Colors.tagBorder"
1449 value="0, 128, 128">
1450 </colorDefinition>
1451 <colorDefinition
1452 id="tagName"
1453 isEditable="false"
1454 label="%Colors.tagName"
1455 value="63, 127, 127">
1456 </colorDefinition>
1457 <colorDefinition
1458 id="piBorder"
1459 isEditable="false"
1460 label="%Colors.piBorder"
1461 value="0, 128, 128">
1462 </colorDefinition>
1463 <colorDefinition
1464 id="cdataBorder"
1465 isEditable="false"
1466 label="%Colors.cdataBorder"
1467 value="0, 128, 128">
1468 </colorDefinition>
1469 <colorDefinition
1470 id="cdataText"
1471 isEditable="false"
1472 label="%Colors.cdataText"
1473 value="0, 0, 0">
1474 </colorDefinition>
1475 <colorDefinition
1476 id="entityReference"
1477 isEditable="false"
1478 label="%Colors.entityReference"
1479 value="42, 0, 255">
1480 </colorDefinition>
1481 </extension>
amywu19503192008-03-26 05:32:35 +00001482
amywua46ee322008-04-24 02:05:28 +00001483 <!-- Enable the FormatHandler for XML Content Type -->
1484 <extension point="org.eclipse.ui.handlers">
1485 <handler
1486 class="org.eclipse.wst.sse.ui.internal.handlers.FormatHandler"
1487 commandId="org.eclipse.wst.sse.ui.format">
1488 <activeWhen>
1489 <reference definitionId="org.eclipse.wst.xml.ui.xmlContentType.definition"></reference>
1490 </activeWhen>
1491 <enabledWhen>
1492 <reference definitionId="org.eclipse.wst.xml.ui.xmlContentType.definition"></reference>
1493 </enabledWhen>
1494 </handler>
1495 </extension>
1496
1497 <!-- Set up a definition for XML Content Types -->
1498 <extension point="org.eclipse.core.expressions.definitions">
1499 <definition id="org.eclipse.wst.xml.ui.xmlContentType.definition">
1500 <or>
1501 <iterate ifEmpty="false">
1502 <adapt type="org.eclipse.core.resources.IFile">
1503 <test property="org.eclipse.wst.sse.core.resources.contentTypeId"
1504 value="org.eclipse.wst.xml.core.xmlsource"/>
1505 </adapt>
1506 </iterate>
1507 <iterate ifEmpty="false">
1508 <adapt type="org.eclipse.core.resources.IFile">
1509 <test property="org.eclipse.wst.sse.core.resources.contentTypeId"
1510 value="org.eclipse.core.runtime.xml"/>
1511 </adapt>
1512 </iterate>
1513 </or>
1514 </definition>
1515 </extension>
amywu41e7a7b2007-10-30 22:43:07 +00001516</plugin>