|validation of a file with a new extension "myxml" [message #646474]
||Fri, 24 December 2010 17:15
Registered: March 2010
I created an editor based on StructuredTextEditor
I tried to add the extension org.eclipse.core.contenttype.contentTypes
and next I configured a second one org.eclipse.wst.sse.ui.sourcevalidation in order to have an ,as you type, validation
I also implemented the IValidator interface.
here is the declaration of my plugin extension points :
I juste don't knwo why the validation dosn't work at all!
may be it's because my editor file extension is myxml?
|Re: validation of a file with a new extension "myxml" [message #648872 is a reply to message #646474]
||Fri, 14 January 2011 19:08
| Nitin Dahyabhai
Registered: July 2009
On 12/24/2010 12:15 PM, Alain wrote:|
> I juste don't knwo why the validation dosn't work at all!
> may be it's because my editor file extension is myxml?
> any ideas?
> thank you
Source Validation isn't an inherited behavior in quite the same way that
the viewer configuration is: if you define any source validator
specifically for your content type, no source validators are inherited
from its base types. In your case it means that the normal XML source
validation will not be used on your content type unless you recontribute
it as your own extension to your content type specifically. This
strategy was chosen to help deal with XSL files, where an XSL-specific
validator could work properly but a normal XML validation would report a
number of problems.
Eclipse WTP Source Editing and JSDT
Eclipse WTP, IBM
Powered by FUDForum
. Page generated in 0.05252 seconds