Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Batch Validation and non-Java Projects
Batch Validation and non-Java Projects [message #206291] Wed, 02 January 2008 15:33 Go to next message
Vincent Zurczak is currently offline Vincent Zurczak
Messages: 140
Registered: July 2009
Senior Member
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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>
Re: Batch Validation and non-Java Projects [message #206339 is a reply to message #206291] Wed, 02 January 2008 18:13 Go to previous messageGo to next message
Lawrence Mandel is currently offline Lawrence Mandel
Messages: 486
Registered: July 2009
Senior Member
Hi Vincent,

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:


<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>

Lawrence Mandel
-
Co-author Eclipse Web Tools Platform: Developing Java Web Applications
http://www.eclipsewtp.org
Re: Batch Validation and non-Java Projects [message #206370 is a reply to message #206339] Thu, 03 January 2008 10:39 Go to previous message
Vincent Zurczak is currently offline Vincent Zurczak
Messages: 140
Registered: July 2009
Senior Member
Thank you for your reply. :)
It works well now.


lmandel@ca.ibm.com wrote:
> Hi Vincent,
>
> 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:
>
>
> <buildCommand>
> <name>org.eclipse.wst.validation.validationbuilder</name>
> <arguments>
> </arguments>
> </buildCommand>
>
> Lawrence Mandel
> -
> Co-author Eclipse Web Tools Platform: Developing Java Web Applications
> http://www.eclipsewtp.org
>
>


--
Vincent Zurczak
EBM WebSourcing
+ 33 (0) 4 76 61 52 62
Previous Topic:Tomcat plugin for eclipse
Next Topic:HTML/jsp design with WTP
Goto Forum:
  


Current Time: Sat Oct 25 22:12:16 GMT 2014

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

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