Batch Validation and non-Java Projectshttps://www.eclipse.org/forums/index.php/mv/msg/65625/206291/#msg_206291
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi. :)<br>
<br>
I have took a look at previous messages, but I could not find answers
to my questions.<br>
It's about batch validation.<br>
<br>
I extended the WST XML editor to adapt it for a specific XML language.<br>
I have "as-you-type" validation through XSD files and a new entry in
the catalog.<br>
<br>
Now, I would like to add batch validation, by using an EMF model (whose
meta-model was generated from the previous XSD files and which got
extra-constraints). Actually, what I want is to validate my file each
time the file is saved. <br>
<br>
I looked at the <a
href=" http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. wst.doc.isv/reference/extension-points/common/org_eclipse_ws t_validation_validator.html">org.eclipse.wst.validation.validator</a>
extension, but it says...<br>
<blockquote type="cite">
<h6 class="CaptionFigColumn" id="header">Description:&nbsp; </h6>
This extension point give the ability to create a new validator that
can validate resources in a <u>Java Project</u>.</blockquote>
<br>
Why just "Java Projects" ? <br>
Does this mean that if the resources to validate are not part of a Java
project but of a simple Eclipse project, it will not work ? Is it
currently like this or is it going to be like this once it is stable ?
And if so, is there any foreseen extension to run batch validation in
non-Java projects ? <br>
<br>
What I had in mind consisted in defining a validator (through <a
href=" http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. wst.doc.isv/reference/extension-points/common/org_eclipse_ws t_validation_validator.html">org.eclipse.wst.validation.validator</a>)
which would have delegated the validation to an EMF diagnostician. I
have also found an example of validation using this extension in a
tutorial from the EclipseCon website ( <a
href="http://www.eclipsecon.org/2006/Sub.do?id=180">http://www.eclipsecon.org/2006/Sub.do?id=180</a>
). But the quoted text above makes me worried since my projects are not
Java Project and do not have a specific nature. <br>
<br>
In case where there would be no extension for what I want, is there
anyone here who might give me some hints about how to run my batch
validation ?<br>
<br>
<br>
Best regards,<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Vincent.<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Vincent Zurczak
EBM WebSourcing
+ 33 (0) 4 76 61 52 62</pre>
</body>
</html>]]>Vincent Zurczak2008-01-02T15:33:49-00:00Re: Batch Validation and non-Java Projectshttps://www.eclipse.org/forums/index.php/mv/msg/65625/206339/#msg_206339
By default the Validation builder, which runs the validation framework and
performs validate on save, etc., is only defined for Java projects. You
can manually define this builder for any project type by opening the
project's .project file and adding the following builder declaration
within the buildSpec element: