Package org.eclipse.wst.validation

Examples of org.eclipse.wst.validation.ValidationFramework


   *
   * @param folder
   *            a folder to enable validation for
   */
  public void enableValidation(IFolder folder) {
    ValidationFramework vf = ValidationFramework.getDefault();
    vf.enableValidation(folder);
  }
View Full Code Here


   * @throws CoreException
   *             if any of the folders does not exist or is in a closed
   *             project
   */
  public void disableValidation(IFolder folder) throws CoreException {
    ValidationFramework vf = ValidationFramework.getDefault();

    // clean up the state of all subfolders
    for (IFolder subfolder : getAllSubfolders(folder)) {
      vf.enableValidation(subfolder);
    }

    if (!isInLibraryFolder(folder)) {
      // disable the given folder only if no parent folder is a library
      // folder yet
      vf.disableValidation(folder);
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.validation.ValidationFramework

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.