Yes, there is new API to do this.

Please see: org.eclipse.wst.validation.ValidationFramework

        /**
         * Suspends, or undoes the suspension of, validation on all 
projects in the workbench. If
         * "suspend" is true then validation is suspended and if it's 
"false" then validation is not suspended.
         * The value of this variable is not persisted.
         * <p>
         * Be VERY CAREFUL when you use this method! Turn validation back 
on in a finally block because
         * if the code which suspended validation crashes, the user has no 
way to reset the suspension.
         * The user will have to shut down and restart the workbench to 
get validation to work again.
         */
        public void suspendAllValidation(boolean suspend) {
                _suspendAllValidation = suspend;
        }

Gary Karasiuk, RAD Performance Analyst
[EMAIL PROTECTED]
TL-969-3985, external: (905)-413-3985




"Cameron Bateman" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
02/13/2008 01:30 PM
Please respond to
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>; Please respond 
to
"General discussion of project-wide or architectural issues." 
<[email protected]>


To
"[email protected]" <[email protected]>
cc

Subject
[wtp-dev] Disabling validation in JUnit tests






We have for some time using the code below under the belief that it would 
disable build validation, however stack traces I'm seeing in our JUnit 
output lead me to believe that validation is running.  Are there other 
things that need to be done to disable validation in builds?
 
final GlobalConfiguration config = new 
GlobalConfiguration(ConfigurationManager.getManager
().getGlobalConfiguration());
config.setDisableAllValidation(true);
config.passivate();
config.store();
 
--Cam_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

_______________________________________________
wtp-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/wtp-dev

Reply via email to