public static void setGenSrcDir(IJavaProject jproject, String dirString) {
   if (!GeneratedSourceFolderManager.validate(jproject, dirString)) {
     throw new IllegalArgumentException(
         "Illegal name for generated source folder: " + dirString); // $NON-NLS-1$
   }
   setString(jproject, AptPreferenceConstants.APT_GENSRCDIR, dirString);
 }
 public static boolean validateGenSrcDir(IJavaProject jproject, String dirName) {
   return GeneratedSourceFolderManager.validate(jproject, dirName);
 }