StructuredTextEditor validation [message #646330] |
Thu, 23 December 2010 06:31  |
Eclipse User |
|
|
|
Hello,
I created a source page (StructuredTextEditor) on a MultiPageEditorPart. I specify its IEditorInput as an IStorageEditorInput
my editor files has the extension *.myxhtml
...
IStorage storage = new StringStorage(contentString);
IStorageEditorInput input = new StringInput(storage);
sourcePage = new StructuredTextEditor();
sourcePage.setEditorPart(this);
int index = addPage(sourcePage, input);
setPageText(index, "SourceXML");
doc = sourcePage.getDocumentProvider().getDocument(input);
...
anytime, I can change the content of the editor by a valid xhtml text:
the auto completion is perfect, cause I added the extension point :
<extension point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution
id="myproject.editor">
<public
publicId="http://www.example.org/xhtml"
uri="xsd/myTestXSD.xsd">
</public>
</catalogContribution>
</extension>
My concern is to validate the text content, according to my XSD of course.
I don't know well how to use the extension org.eclipse.wst.sse.ui.sourcevalidation, and I don't know if I have to implement a validator because an XML validator could do the job.
any Ideas? Thank you.
|
|
|
|
|
Re: StructuredTextEditor validation [message #730014 is a reply to message #729681] |
Tue, 27 September 2011 09:30  |
Eclipse User |
|
|
|
I can't seem to find even 1 "googleable" article or eclipse doc on "or be using the org.eclipse.wst.xml.core.externalSchemaLocations extension point"
do you have any example you could share, would be greatly appreciated
|
|
|
Powered by
FUDForum. Page generated in 0.03512 seconds