|Re: Completion XML schema [message #200567 is a reply to message #200490]
||Tue, 25 September 2007 21:25
| Nitin Dahyabhai
Registered: July 2009
> Hi Nitin,
> first of all, I had this in my plugin.xml :
> <extension point="org.eclipse.wst.sse.ui.editorConfiguration">
> <!-- associating a source viewer configuration to an input's content
> type--> <sourceViewerConfiguration class=
> "org.eclipse.wst.xml.ui.StructuredTextViewerConfigurationXML "
> <!-- associating an outline configuration to an input's content type -->
> class=" org.eclipse.wst.sse.xml.ui.views.contentoutline.XMLContentOu tlineConfiguration "
> <!-- associating a property sheet configuration to multiple content
> types -->
> class=" org.eclipse.wst.xml.ui.views.properties.XMLPropertySheetConf iguration "
None of this should be needed (and since it redefines extensions for
targets that already have classes assigned, it could break
something). IF the input file is recognized as XML or a
sub-content-type of XML, the model should already contain the needed
adapters to have the content model and the editor should
automatically pick up the various XML configuration classes (in both
cases it walks up the content type hierarchy). If you're using the
editor as a page within a multipage editor, be sure to set the
page's site ID to 'ContentTypeIdForXML.ContentTypeID_XML +
".source"' so it knows to pick up some of the UI contributions as well.
> Moreover, as you said, my file refers to the XSD with this :
> <Specification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://..." xsi:schemaLocation="http://... XXX.xsd"
> Nevertheless, I don't have completion in my source page.
> Where is the error?
I'm not an authority on schema references, but the first question is
whether it works in the existing XML Editor.
Structured Source Editing
Eclipse Web Tools Platform
Powered by FUDForum
. Page generated in 0.02208 seconds