* @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);
}
}