Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to turn on validation on a WTP XML editor?
How to turn on validation on a WTP XML editor? [message #226314] Fri, 09 January 2009 18:33 Go to next message
Frank Du is currently offline Frank Du
Messages: 91
Registered: July 2009
Member
Hey, all,

I override the validators for wtp xml editor. Then I use the extension
point to add it:

org.eclipse.wst.validation.validator

However, it seems that some configuration still needed to make the
validator work. Where is the place we turn on a customized validator? Is
it somewhere in sourceViewerConfiguration?

Any hint will be highly appreciated! thanks very much!

Have a nice day!
Frank
Re: How to turn on validation on a WTP XML editor? [message #226322 is a reply to message #226314] Fri, 09 January 2009 21:26 Go to previous messageGo to next message
Frank Du is currently offline Frank Du
Messages: 91
Registered: July 2009
Member
I finally figured it out. The project nature is configured properly. The
validation builder is configured properly.

But very weird, it got fixed after adding the dependency
org.eclipse.ui.externaltools.

Not sure why the plug-in is needed.

Thanks,
Frank


Frank Du wrote:

> Hey, all,

> I override the validators for wtp xml editor. Then I use the extension
> point to add it:

> org.eclipse.wst.validation.validator

> However, it seems that some configuration still needed to make the
> validator work. Where is the place we turn on a customized validator? Is
> it somewhere in sourceViewerConfiguration?

> Any hint will be highly appreciated! thanks very much!

> Have a nice day!
> Frank
Re: How to turn on validation on a WTP XML editor? [message #226553 is a reply to message #226322] Tue, 13 January 2009 16:28 Go to previous message
Eclipse User
Originally posted by: wuamy.ca.ibm.com

I agree that it's very weird that it got fixed after adding the dependency
org.eclipse.ui.externaltools. That should not be necessary.

The validation extension point you mentioned is actually the older
validation framework. I would recommend you using the new v2 validation
framework instead.

And the extension point is:
org.eclipse.wst.validation.validatorV2

Here's a presentation on the framework:
http://www.eclipse.org./webtools/common/validation/New-VF-20 07-12-11.pdf
(and the validator code also be Javadoc'd)
Previous Topic:WTP menus targetIDs list ?
Next Topic:How can i validate a WST WSDL model programitically
Goto Forum:
  


Current Time: Fri Oct 24 16:51:53 GMT 2014

Powered by FUDForum. Page generated in 0.07443 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software