blob: cb77ce434af8e2f225678cb4dcdd94a8bffed2a3 [file] [log] [blame]
csalterd5a99d42004-11-24 21:13:42 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin
4 id="org.eclipse.wst.xsd.ui"
5 name="%_UI_PLUGIN_NAME"
6 version="1.0.0"
7 provider-name="Eclipse.org"
8 class="org.eclipse.wst.xsd.ui.internal.XSDEditorPlugin">
9
10 <runtime>
11 <library name="xsdeditor.jar">
12 <export name="*"/>
13 </library>
14 </runtime>
15 <requires>
16 <import plugin="org.eclipse.core.runtime.compatibility"/>
17
18 <import plugin="org.eclipse.wst.xml.uriresolver"/>
19 <import plugin="org.eclipse.wst.sse.ui"/>
20 <import plugin="org.eclipse.wst.sse.core"/>
21 <import plugin="org.eclipse.wst.xml.core"/>
22 <import plugin="org.eclipse.wst.xml.ui"/>
csalterd5a99d42004-11-24 21:13:42 +000023 <import plugin="org.eclipse.wst.common.ui"/>
24
25 <import plugin="org.eclipse.jface.text"/>
26 <import plugin="org.eclipse.xsd"/>
27 <import plugin="org.eclipse.gef"/>
28 <import plugin="org.eclipse.jface"/>
29 <import plugin="org.eclipse.ui.editors"/>
30 <import plugin="org.eclipse.ui.workbench.texteditor"/>
31 <import plugin="org.eclipse.ui"/>
32 <import plugin="org.eclipse.ui.views"/>
33 <import plugin="org.eclipse.ui.ide"/>
34 <import plugin="org.eclipse.core.resources"/>
35 <import plugin="org.eclipse.wst.common.ui.properties"/>
36 <import plugin="org.eclipse.xsd.edit"/>
37 <import plugin="org.eclipse.emf.edit"/>
38 <import plugin="org.eclipse.emf.edit.ui"/>
csalterc45c92f2005-02-11 03:38:52 +000039 <import plugin="org.eclipse.wst.validation"/>
csalterb6801bb2005-02-17 19:45:41 +000040
41 <import plugin="org.eclipse.ltk.core.refactoring" />
42 <import plugin="org.eclipse.ltk.ui.refactoring" />
david_williamsdce4ddd2005-03-18 05:35:37 +000043 </requires>
csalterd5a99d42004-11-24 21:13:42 +000044
45
46 <extension
47 point="org.eclipse.ui.editors">
48 <editor
49 name="%_UI_EDITOR_NAME"
50 default="true"
51 icon="icons/XSDFile.gif"
52 extensions="xsd"
53 contributorClass="org.eclipse.wst.xsd.ui.internal.XSDActionBarContributor"
54 class="org.eclipse.wst.xsd.ui.internal.XSDEditor"
55 id="org.eclipse.wst.xsd.ui.XSDEditor">
56 </editor>
57 </extension>
58<!-- drop targets for XSDTextEditor-->
59 <extension
60 point="org.eclipse.wst.sse.ui.dropTargetTransfers">
61 <dropTargetContribution
62 targetID="org.eclipse.wst.xsd.ui.internal.XSDTextEditor"
63 id="org.eclipse.wst.xsd.ui.ExtendedTransfers">
64 <transfer
65 priority="mid"
66 singleton="true"
67 class="org.eclipse.swt.dnd.FileTransfer"
68 method="getInstance"
69 id="org.eclipse.swt.dnd.FileTransfer">
70 </transfer>
71 <dropAction
72 class="org.eclipse.wst.sse.ui.extension.FileDropAction"
73 transferID="org.eclipse.swt.dnd.FileTransfer"
74 id="org.eclipse.wst.sse.ui.extension.FileDropAction">
75 </dropAction>
76 <transfer
77 priority="low"
78 singleton="true"
79 class="org.eclipse.swt.dnd.TextTransfer"
80 method="getInstance"
81 id="org.eclipse.swt.dnd.TextTransfer">
82 </transfer>
83 <dropAction
84 class="org.eclipse.wst.sse.ui.extension.TextDropAction"
85 transferID="org.eclipse.swt.dnd.TextTransfer"
86 id="corg.eclipse.wst.sse.ui.extension.TextDropAction">
87 </dropAction>
88 </dropTargetContribution>
89 </extension>
90
91 <extension point="org.eclipse.ui.newWizards">
92 <wizard id = "org.eclipse.wst.xsd.ui.internal.wizards.NewXSDWizard"
93 name = "%_UI_WIZARD_NEW_XSD"
94 class = "org.eclipse.wst.xsd.ui.internal.wizards.NewXSDWizard"
95 category = "org.eclipse.wst.XMLCategory"
96 icon = "icons/XSDFile.gif">
97 <description>%_UI_CREATE_A_NEW_SCHEMA</description>
98 <selection class = "org.eclipse.core.resources.IResource" />
99 </wizard>
100 </extension>
101
102 <extension point="org.eclipse.ui.preferencePages">
103 <page
104 name="%_UI_XML_SCHEMA_PREFERENCE"
105 category="org.eclipse.wst.sse.ui.preferences"
106 class="org.eclipse.wst.xsd.ui.internal.preferences.XSDPreferencePage"
107 id="org.eclipse.wst.xsd.ui.internal.preferences.XSDPreferencePage">
108 </page>
109 </extension>
nitindc570b4e2005-01-18 23:40:06 +0000110 <extension point="org.eclipse.wst.sse.ui.extendedconfiguration">
111 <definition
112 type="preferencepages"
nitindc9c4f6e2005-01-26 05:42:56 +0000113 value="org.eclipse.wst.xsd.ui.internal.preferences.XSDPreferencePage"
nitindc570b4e2005-01-18 23:40:06 +0000114 target="org.eclipse.wst.xsd.ui.internal.XSDEditor.source" />
115 </extension>
csalterd5a99d42004-11-24 21:13:42 +0000116
117 <!-- ==================================================== -->
118<!-- Support help on the tags -->
119<!-- ==================================================== -->
120<!-- <extension
david_williamsc06c86f2005-03-18 18:23:41 +0000121 point="org.eclipse.wst.xml.core.internal.contentmodel.annotationFiles">
csalterd5a99d42004-11-24 21:13:42 +0000122 <annotationFile
123 location="/w3c/schemaForCodeAssist-annotations.xml"
124 publicId="http://www.w3.org/2001/XMLSchema">
125 </annotationFile>
126 </extension>
127-->
128 <extension
129 point="org.eclipse.wst.common.ui.properties.propertyContributor">
130 <propertyContributor
131 contributorId="org.eclipse.wst.xsd.ui.internal.XSDEditor"
132 sectionDescriptorProvider="org.eclipse.wst.xsd.ui.internal.properties.section.XSDSectionDescriptorProvider"
133 labelProvider="org.eclipse.wst.xsd.ui.internal.properties.section.XSDSectionLabelProvider">
134 <propertyCategory
135 category="general">
136 </propertyCategory>
137 <propertyCategory
138 category="namespace">
139 </propertyCategory>
140 <propertyCategory
141 category="other">
142 </propertyCategory>
143 <propertyCategory
144 category="attributes">
145 </propertyCategory>
146 <propertyCategory
147 category="enumerations">
148 </propertyCategory>
149 <propertyCategory
150 category="documentation">
151 </propertyCategory>
152 <propertyCategory
153 category="facets">
154 </propertyCategory>
155 </propertyContributor>
156 </extension>
157 <extension
158 point="org.eclipse.wst.common.ui.properties.propertyTabs">
159 <propertyTabs
160 contributorId="org.eclipse.wst.xsd.ui.internal.XSDEditor">
161 <propertyTab
162 label="%_UI_LABEL_GENERAL"
163 category="general"
164 id="com.ibm.xmlwebservices.general">
165 </propertyTab>
166 <propertyTab
167 label="%_UI_LABEL_NAMESPACE"
168 category="namespace"
169 afterTab="com.ibm.xmlwebservices.general"
170 id="com.ibm.xmlwebservices.namespace">
171 </propertyTab>
172 <propertyTab
173 label="%_UI_LABEL_OTHER"
174 category="other"
175 id="com.ibm.xmlwebservices.other">
176 </propertyTab>
177 <propertyTab
178 label="%_UI_LABEL_ATTRIBUTES"
179 category="attributes"
180 id="com.ibm.xmlwebservices.attributes">
181 </propertyTab>
182 <propertyTab
183 label="%_UI_LABEL_ENUMERATIONS"
184 category="enumerations"
185 id="com.ibm.xmlwebservices.enumerations">
186 </propertyTab>
187 <propertyTab
188 label="%_UI_LABEL_DOCUMENTATION"
189 category="documentation"
190 id="com.ibm.xmlwebservices.documentation">
191 </propertyTab>
192 <propertyTab
193 label="%_UI_SECTION_ADVANCED_ATTRIBUTES"
194 category="facets"
195 id="com.ibm.xmlwebservices.facets">
196 </propertyTab>
197 </propertyTabs>
198 </extension>
199
david_williams6afcaef2004-12-20 03:46:21 +0000200 <!--
csalterd5a99d42004-11-24 21:13:42 +0000201 <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
202 <catalogContributor catalogId="default">
203 <mappingInfo key="http://www.w3.org/2001/XMLSchema" uri="w3c/XMLSchema.xsd"/>
204 </catalogContributor>
david_williams6afcaef2004-12-20 03:46:21 +0000205 </extension>
206 -->
csalterd5a99d42004-11-24 21:13:42 +0000207
csalterc45c92f2005-02-11 03:38:52 +0000208 <!-- intialize xsd reconcile validator -->
209 <extension
paveryf918eb22005-03-29 18:26:53 +0000210 point="org.eclipse.wst.sse.ui.sourcevalidation">
csalterc45c92f2005-02-11 03:38:52 +0000211 <validator
212 scope="total"
paveryf918eb22005-03-29 18:26:53 +0000213 class="org.eclipse.wst.xsd.ui.reconcile.DelegatingSourceValidatorForXSD"
214 id="org.eclipse.wst.xsd.ui.reconcile.DelegatingSourceValidatorForXSD">
csalterc45c92f2005-02-11 03:38:52 +0000215 <contentTypeIdentifier
216 id="org.eclipse.wst.xsd.contentmodel.xsdsource">
217 <partitionType
paveryf918eb22005-03-29 18:26:53 +0000218 id="org.eclipse.wst.xml.XML_DEFAULT">
csalterc45c92f2005-02-11 03:38:52 +0000219 </partitionType>
220 </contentTypeIdentifier>
221 </validator>
222 </extension>
csalterb6801bb2005-02-17 19:45:41 +0000223
224 <extension point="org.eclipse.ui.contexts">
225 <context id="org.eclipse.wst.xsd.ui.text.editor.context"
226 name="%context.text.editor.xsd.name"
227 parentId="org.eclipse.ui.textEditorScope"/>
228 </extension>
229
230 <extension point="org.eclipse.ui.commands">
231 <command name="%command.xsd.refactor.rename.element.name"
232 description="%command.xsd.refactor.rename.element.description"
233 categoryId="org.eclipse.ui.category.edit"
234 id="org.eclipse.wst.xsd.ui.refactor.rename.element">
235 </command>
236 <keyBinding keySequence="Alt+Shift+R"
237 contextId="org.eclipse.wst.xsd.ui.text.editor.context"
238 commandId="org.eclipse.wst.xsd.ui.refactor.rename.element"
239 keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
240 </keyBinding>
241 </extension>
242
csaltere2ddc8f2005-02-23 14:53:42 +0000243 <extension point="org.eclipse.ui.commands">
csalterb6801bb2005-02-17 19:45:41 +0000244 <command name="%command.xsd.refactor.makeElementGlobal.element.name"
245 description="%command.xsd.refactor.makeElementGlobal.element.description"
246 categoryId="org.eclipse.ui.category.edit"
247 id="org.eclipse.wst.xsd.ui.refactor.makeElementGlobal">
248 </command>
249 <keyBinding
250 contextId="org.eclipse.wst.xsd.ui.text.editor.context"
251 commandId="org.eclipse.wst.xsd.ui.refactor.makeElementGlobal"
252 keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
253 </keyBinding>
254 </extension>
csaltere2ddc8f2005-02-23 14:53:42 +0000255
256 <extension point="org.eclipse.ui.commands">
257 <command name="%command.xsd.refactor.makeTypeGlobal.element.name"
258 description="%command.xsd.refactor.makeTypeGlobal.element.description"
259 categoryId="org.eclipse.ui.category.edit"
260 id="org.eclipse.wst.xsd.ui.refactor.makeTypeGlobal">
261 </command>
262 <keyBinding
263 contextId="org.eclipse.wst.xsd.ui.text.editor.context"
264 commandId="org.eclipse.wst.xsd.ui.refactor.makeTypeGlobal"
265 keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration">
266 </keyBinding>
267 </extension>
csalterb6801bb2005-02-17 19:45:41 +0000268
269 <!--extension
270 point="org.eclipse.ltk.core.refactoring.renameParticipants">
271 <renameParticipant
272 name="%xsd.resource.rename.participant.name"
273 class="org.eclipse.wst.xsd.ui.internal.refactor.rename.XSDResourceRenameParticipant"
274 id="org.eclipse.wst.xsd.ui.refactoring.XSDResourceRenameParticipant">
275 <enablement>
276 <with
277 variable="element">
278 <instanceof
279 value="org.eclipse.core.resources.IResource">
280 </instanceof>
281 </with>
282 </enablement>
283 </renameParticipant>
284 </extension-->
285
286 <!--
287 The following extension to the file context menu is temporary until resource
288 navigator will provide allow to extend refactor menu
289 -->
290<!--
291 <extension point="org.eclipse.ui.popupMenus">
292 <objectContribution
293 objectClass="org.eclipse.core.resources.IFile"
294 nameFilter="*.xsd"
295 id="org.wst.xsd.ui.rename">
296 <menu id="refactorXSDResource" path="additions" label="%refactoring.menu.label">
297 <separator name="refactor"/>
298 </menu>
299 <action
300 label="%refactoring.renameAction.label"
301 menubarPath="refactorXSDResource/refactor"
302 class="org.eclipse.wst.xsd.ui.internal.refactor.actions.RenameResourceActionDelegate"
303 enablesFor="1"
304 id="org.eclipse.wst.xsd.ui.refactoring.actions.RenameResource">
305 </action>
306 </objectContribution>
307 </extension>
308 -->
309
csalterd5a99d42004-11-24 21:13:42 +0000310</plugin>