blob: 61db455a3470fe9e0291ed3fe4430908bbc2ea9a [file] [log] [blame]
david_williams96213482004-11-11 09:07:12 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin
4 id="org.eclipse.wst.xml.ui"
nitind23739892004-12-06 05:51:11 +00005 name="%pluginName"
david_williams96213482004-11-11 09:07:12 +00006 version="1.0.0"
nitind23739892004-12-06 05:51:11 +00007 provider-name="%providerName"
david_williams425ffe72004-12-07 21:46:39 +00008 class="org.eclipse.wst.xml.ui.internal.XMLUIPlugin">
david_williams96213482004-11-11 09:07:12 +00009
10 <runtime>
11 <library name="xmleditor.jar">
12 <export name="*"/>
13 </library>
14 </runtime>
15 <requires>
david_williams96213482004-11-11 09:07:12 +000016 <import plugin="org.eclipse.ui.ide"/>
17 <import plugin="org.eclipse.ui.views"/>
18 <import plugin="org.eclipse.jface.text"/>
19 <import plugin="org.eclipse.ui.workbench.texteditor"/>
20 <import plugin="org.eclipse.ui.editors"/>
21 <import plugin="org.eclipse.wst.sse.ui"/>
22 <import plugin="org.eclipse.wst.dtd.ui"/>
23 <import plugin="org.eclipse.wst.sse.core"/>
24 <import plugin="org.eclipse.ui"/>
25 <import plugin="org.eclipse.wst.common.contentmodel"/>
26 <import plugin="org.eclipse.core.resources"/>
27 <import plugin="org.eclipse.core.runtime"/>
28 <import plugin="org.eclipse.wst.common.encoding"/>
29 <import plugin="org.eclipse.wst.xml.uriresolver.ui"/>
csalterc9583c62004-11-17 05:09:13 +000030 <import plugin="org.eclipse.wst.common.uriresolver"/>
david_williams96213482004-11-11 09:07:12 +000031 <import plugin="org.eclipse.wst.xml.uriresolver"/>
32 <import plugin="org.eclipse.wst.xml.core"/>
csalterc9583c62004-11-17 05:09:13 +000033 <import plugin="org.eclipse.wst.common.ui"/>
david_williams96213482004-11-11 09:07:12 +000034 </requires>
35
36
37 <extension
38 point="org.eclipse.ui.editors">
39 <editor
40 name="%XML_Source_Page_Editor.name"
41 icon="icons/sourceEditor.gif"
david_williamsc9158692004-12-09 05:34:34 +000042 extensions="tld, nst, xmi, dadx, wsdl, xsl"
david_williams96213482004-11-11 09:07:12 +000043 contributorClass="org.eclipse.wst.xml.ui.actions.ActionContributorXML"
44 class="org.eclipse.wst.xml.ui.StructuredTextEditorXML"
45 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
46 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML2">
47 </editor>
48 <!-- Separate editor definition for xml source page to mark it as the default editor -->
49 <editor
50 name="%XML_Source_Page_Editor.name"
51 icon="icons/sourceEditor.gif"
52 extensions="xml"
53 default="true"
54 contributorClass="org.eclipse.wst.xml.ui.actions.ActionContributorXML"
55 class="org.eclipse.wst.xml.ui.StructuredTextEditorXML"
56 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
57 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML">
58 </editor>
59 </extension>
60 <extension
61 point="org.eclipse.wst.sse.ui.extendedconfiguration">
nitind4039c302004-12-28 19:58:41 +000062 <configuration
63 type="textviewerconfiguration"
david_williams96213482004-11-11 09:07:12 +000064 class="org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML"
nitind4039c302004-12-28 19:58:41 +000065 target="org.eclipse.wst.xml.core.xmlsource"/>
66 <configuration
67 type="contentoutlineconfiguration"
david_williams96213482004-11-11 09:07:12 +000068 class="org.eclipse.wst.xml.ui.views.contentoutline.XMLContentOutlineConfiguration"
nitind4039c302004-12-28 19:58:41 +000069 target="org.eclipse.wst.xml.core.xmlsource"/>
70 <configuration
71 type="propertysheetconfiguration"
david_williams96213482004-11-11 09:07:12 +000072 class="org.eclipse.wst.xml.ui.views.properties.XMLPropertySheetConfiguration"
nitind4039c302004-12-28 19:58:41 +000073 target="org.eclipse.wst.xml.core.xmlsource"/>
74 <configuration
75 type="spellchecktarget"
david_williams96213482004-11-11 09:07:12 +000076 class="org.eclipse.wst.xml.ui.XMLSpellCheckTarget"
nitind4039c302004-12-28 19:58:41 +000077 target="org.eclipse.wst.xml.core.xmlsource"/>
78 <configuration
79 type="sourceeditingtexttools"
david_williams96213482004-11-11 09:07:12 +000080 class="org.eclipse.wst.xml.ui.extensions.XMLSourceEditingTextTools"
nitind4039c302004-12-28 19:58:41 +000081 target="org.eclipse.wst.xml.core.xmlsource"/>
82 <configuration
83 type="characterpairmatcher"
david_williams96213482004-11-11 09:07:12 +000084 class="org.eclipse.wst.xml.ui.text.XMLDocumentRegionEdgeMatcher"
nitind4039c302004-12-28 19:58:41 +000085 target="org.eclipse.wst.xml.core.xmlsource"/>
86 <definition
87 type="preferencepages"
88 value="org.eclipse.wst.sse.ui.preferences/org.eclipse.wst.sse.ui.preferences.xml"
89 target="org.eclipse.wst.xml.core.xmlsource"/>
david_williams96213482004-11-11 09:07:12 +000090 </extension>
91 <extension
92 point="org.eclipse.core.filebuffers.annotationModelCreation">
93 <factory
94 contentTypeId="org.eclipse.wst.xml.core.xmlsource"
95 class="org.eclipse.wst.sse.ui.StructuredResourceMarkerAnnotationModelFactory"/>
96 </extension>
97 <extension
98 point="org.eclipse.wst.sse.ui.adapterFactoryDescription">
99 <adapterFactoryDescription
100 class="org.eclipse.wst.xml.ui.registry.AdapterFactoryProviderForXML">
101 <contentType id="org.eclipse.wst.xml.core.xmlsource"/>
102 </adapterFactoryDescription>
103 </extension>
104 <extension
105 point="org.eclipse.wst.sse.ui.embeddedAdapterFactoryProvider">
106 <embeddedAdapterFactoryProvider
107 class="org.eclipse.wst.xml.ui.registry.AdapterFactoryProviderForEmbeddedXML">
108 </embeddedAdapterFactoryProvider>
109 </extension>
110 <extension
111 point="org.eclipse.ui.preferencePages">
112<!-- XML PREFERENCE PAGES -->
113 <page
114 name="%XML_Files.name"
115 category="org.eclipse.wst.sse.ui.preferences"
116 class="org.eclipse.wst.xml.ui.preferences.XMLFilesPreferencePage"
117 id="org.eclipse.wst.sse.ui.preferences.xml">
118 </page>
119 <page
120 name="%XML_Source.name"
121 category="org.eclipse.wst.sse.ui.preferences.xml"
122 class="org.eclipse.wst.xml.ui.preferences.XMLSourcePreferencePage"
123 id="org.eclipse.wst.sse.ui.preferences.xml.source">
124 </page>
125 <page
126 name="%XML_Templates.name"
127 category="org.eclipse.wst.sse.ui.preferences.xml"
128 class="org.eclipse.wst.xml.ui.preferences.XMLTemplatePreferencePage"
129 id="org.eclipse.wst.sse.ui.preferences.xml.templates">
130 </page>
131 <page
132 name="%XML_Styles.name"
133 category="org.eclipse.wst.sse.ui.preferences.xml"
134 class="org.eclipse.wst.xml.ui.preferences.XMLColorPage"
135 id="org.eclipse.wst.sse.ui.preferences.xml.colors">
136 </page>
137 </extension>
138<!-- Editor actionsets -->
139 <extension
140 point="org.eclipse.ui.actionSetPartAssociations">
141 <actionSetPartAssociation
142 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
143 <part
144 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML">
145 </part>
146 <part
147 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML2">
148 </part>
149 </actionSetPartAssociation>
150 <actionSetPartAssociation
151 targetID="org.eclipse.ui.NavigateActionSet">
152 <part
153 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML">
154 </part>
155 <part
156 id="org.eclipse.wst.xml.ui.StructuredTextEditorXML2">
157 </part>
158 </actionSetPartAssociation>
159 </extension>
csalterce40c6d2004-11-19 21:15:10 +0000160
david_williams96213482004-11-11 09:07:12 +0000161<!-- add a default open on action for xml content type -->
162 <extension
163 point="org.eclipse.wst.sse.ui.openon">
164 <openon
165 class="org.eclipse.wst.xml.ui.openon.DefaultOpenOnXML"
166 id="org.eclipse.wst.xml.ui.openon.DefaultOpenOnXML">
167 <contenttypeidentifier
168 id="org.eclipse.wst.xml.core.xmlsource">
169 </contenttypeidentifier>
170 </openon>
171 </extension>
172<!-- Templates -->
173 <extension
174 point="org.eclipse.ui.editors.templates">
175 <contextType
nitind23739892004-12-06 05:51:11 +0000176 name="%All_XML_context_type_Extension_Element.name"
david_williams96213482004-11-11 09:07:12 +0000177 class="org.eclipse.wst.xml.ui.templates.TemplateContextTypeXML"
178 id="xml_all">
179 </contextType>
180 <contextType
nitind23739892004-12-06 05:51:11 +0000181 name="%XML_Tag_context_type_Extension_Element.name"
david_williams96213482004-11-11 09:07:12 +0000182 class="org.eclipse.wst.xml.ui.templates.TemplateContextTypeXMLTag"
183 id="xml_tag">
184 </contextType>
185 <contextType
nitind23739892004-12-06 05:51:11 +0000186 name="%XML_Attribute_context_type_Extension_Element.name"
david_williams96213482004-11-11 09:07:12 +0000187 class="org.eclipse.wst.xml.ui.templates.TemplateContextTypeXMLAttribute"
188 id="xml_attribute">
189 </contextType>
190 <contextType
nitind23739892004-12-06 05:51:11 +0000191 name="%XML_Attribute_value_context_type_Extension_Element.name"
david_williams96213482004-11-11 09:07:12 +0000192 class="org.eclipse.wst.xml.ui.templates.TemplateContextTypeXMLAttributeValue"
193 id="xml_attribute_value">
194 </contextType>
195 <include
196 file="templates/xmldefault-templates.xml"
197 translations="templates/xmldefault-templates.properties">
198 </include>
199 </extension>
200
201
202
203
204
205 <extension
206 point="org.eclipse.ui.editors">
207 <editor
208 name="%XML_Editor.name"
209 icon="icons/xmldoc.gif"
210 extensions="xml, tld, nst, xmi"
211 contributorClass="org.eclipse.wst.xml.internal.ui.XMLMultiPageEditorActionBarContributor"
212 class="org.eclipse.wst.xml.internal.ui.XMLMultiPageEditorPart"
213 id="org.eclipse.wst.xml.internal.ui.XMLMultiPageEditorPart">
214 </editor>
215 </extension>
216<!-- Editor actionsets -->
217 <extension
218 point="org.eclipse.ui.actionSetPartAssociations">
219 <actionSetPartAssociation
220 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
221 <part
222 id="org.eclipse.wst.xml.internal.ui.XMLMultiPageEditorPart">
223 </part>
224 </actionSetPartAssociation>
225 <actionSetPartAssociation
226 targetID="org.eclipse.ui.NavigateActionSet">
227 <part
228 id="org.eclipse.wst.xml.internal.ui.XMLMultiPageEditorPart">
229 </part>
230 </actionSetPartAssociation>
231 </extension>
232
csalterce40c6d2004-11-19 21:15:10 +0000233
234
csalter703f8832004-11-11 22:33:56 +0000235<!-- ================================================== -->
236<!-- Contribute a 'New Wizard' for XML files -->
237<!-- ================================================== -->
238 <extension
239 point="org.eclipse.ui.newWizards">
240 <category
nitind96cebe62004-11-30 20:53:38 +0000241 name="%_UI_WIZARD_NEW_XML"
csalterce40c6d2004-11-19 21:15:10 +0000242 id="org.eclipse.wst.XMLCategory">
csalter703f8832004-11-11 22:33:56 +0000243 </category>
244 <wizard
245 name="%_UI_WIZARD_NEW_XML"
246 icon="icons/XMLFile.gif"
csalterce40c6d2004-11-19 21:15:10 +0000247 category="org.eclipse.wst.XMLCategory"
csalter703f8832004-11-11 22:33:56 +0000248 class="org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard"
249 id="org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard">
250 <description>
251 %_UI_CREATE_NEW_XML_FILE
252 </description>
253 <selection
254 class="org.eclipse.core.resources.IResource">
255 </selection>
256 </wizard>
257 </extension>
david_williams96213482004-11-11 09:07:12 +0000258
csalter703f8832004-11-11 22:33:56 +0000259<!-- =============================================================================== -->
260<!-- Allow the 'New XML' wizard to be accessed via the 'Generate' menu on a XSD file -->
261<!-- =============================================================================== -->
262 <extension
263 point="org.eclipse.ui.popupMenus">
264 <objectContribution
265 objectClass="org.eclipse.core.resources.IFile"
266 nameFilter="*.xsd"
csalterce40c6d2004-11-19 21:15:10 +0000267 id="org.eclipse.wst.xmlwizard.createXMLFromXSD">
csalter703f8832004-11-11 22:33:56 +0000268 <menu
269 label="%genMenuLabel"
270 path="additions"
271 id="generateXMLArtifacts">
272 <separator name="xml"/>
273 </menu>
274 <action
275 label="%_UI_ACTION_CREATE_XML"
276 class="org.eclipse.wst.xml.ui.internal.wizards.XMLImportActionDelegate"
277 menubarPath="generateXMLArtifacts/xml"
278 enablesFor="1"
csalterce40c6d2004-11-19 21:15:10 +0000279 id="org.eclipse.wst.xmlwizard.createXMLFromXSDAction">
csalter703f8832004-11-11 22:33:56 +0000280 </action>
281 </objectContribution>
282 </extension>
283
284<!-- =============================================================================== -->
285<!-- Allow the 'New XML' wizard to be accessed via the 'Generate' menu on a DTD file -->
286<!-- =============================================================================== -->
287 <extension
288 point="org.eclipse.ui.popupMenus">
289 <objectContribution
290 objectClass="org.eclipse.core.resources.IFile"
291 nameFilter="*.dtd"
csalterce40c6d2004-11-19 21:15:10 +0000292 id="org.eclipse.wst.xmlwizard.createXMLFromDTD">
nitind4039c302004-12-28 19:58:41 +0000293 <menu
294 label="%genMenuLabel"
295 path="additions"
296 id="generateXMLArtifacts">
297 <separator name="xml"/>
298 </menu>
csalter703f8832004-11-11 22:33:56 +0000299 <action
300 label="%_UI_ACTION_CREATE_XML"
301 class="org.eclipse.wst.xml.ui.internal.wizards.XMLImportActionDelegate"
302 menubarPath="generateXMLArtifacts/xml"
303 enablesFor="1"
csalterce40c6d2004-11-19 21:15:10 +0000304 id="org.eclipse.wst.xmlwizard.createXMLFromDTDAction">
csalter703f8832004-11-11 22:33:56 +0000305 </action>
306 </objectContribution>
307 </extension>
308
309<!-- =============================================================================== -->
310<!-- Contribute a New->Example... entry for Editing and Validating XML files -->
311<!-- =============================================================================== -->
nitind96cebe62004-11-30 20:53:38 +0000312
313 <!-- define the XMLSamples project wizard -->
csalterce40c6d2004-11-19 21:15:10 +0000314 <extension point="org.eclipse.ui.newWizards">
csalter703f8832004-11-11 22:33:56 +0000315 <category
nitind96cebe62004-11-30 20:53:38 +0000316 name="%_UI_WIZARD_NEW_XML"
csalter703f8832004-11-11 22:33:56 +0000317 parentCategory="org.eclipse.ui.Examples"
318 id="org.eclipse.wst.xml.examples">
nitind96cebe62004-11-30 20:53:38 +0000319 </category>
csalter703f8832004-11-11 22:33:56 +0000320 <wizard
321 name="%XMLExample.name"
nitind96cebe62004-11-30 20:53:38 +0000322 class="org.eclipse.wst.common.ui.wizards.ExampleProjectCreationWizard"
323 category="org.eclipse.ui.Examples/org.eclipse.wst.xml.examples"
csalterce40c6d2004-11-19 21:15:10 +0000324 id="org.eclipse.wst.xml.ui.XMLExampleProjectCreationWizard"
csalter703f8832004-11-11 22:33:56 +0000325 project="true"
csalterce40c6d2004-11-19 21:15:10 +0000326 icon="icons/newSampleProject_wiz.gif">
csalter703f8832004-11-11 22:33:56 +0000327 <description>
328 %XMLExampleProjectCreationWizard.description
csalterce40c6d2004-11-19 21:15:10 +0000329 </description>
nitind96cebe62004-11-30 20:53:38 +0000330 </wizard>
csalterce40c6d2004-11-19 21:15:10 +0000331 </extension>
332
nitind96cebe62004-11-30 20:53:38 +0000333 <!-- configure the XMLSamples project wizard -->
csalterce40c6d2004-11-19 21:15:10 +0000334 <extension point="org.eclipse.wst.common.ui.exampleProjectCreationWizard"
nitind96cebe62004-11-30 20:53:38 +0000335 id="XMLExampleProjectCreationWizardExtension">
336 <wizard
337 id="org.eclipse.wst.xml.ui.XMLExampleProjectCreationWizard"
338 banner="icons/newSampleProject_wizbanner.gif">
339 <projectsetup
340 pagetitle="%XMLExampleProjectCreationWizard.pagetitle"
341 name="%XMLExampleProjectCreationWizard.projectname"
342 label="%XMLExampleProjectCreationWizard.label"
343 pagedescription="%XMLExampleProjectCreationWizard.pagedescription"
344 open="readme.html">
345 <import
346 dest=""
347 src="examples/EditingAndValidatingXML.zip"/>
348 </projectsetup>
349 </wizard>
350 </extension>
csalterce40c6d2004-11-19 21:15:10 +0000351
david_williams96213482004-11-11 09:07:12 +0000352</plugin>