Example #1
0
 /**
  * Set the factory path for a given project or for the workspace. Does not perform any validation
  * on the path.
  *
  * @param jproj the project, or null to set the factory path for the workspace.
  * @param path a factory path, or null to reset the factory path to the default.
  */
 public static void setFactoryPath(IJavaProject jproj, IFactoryPath path) throws CoreException {
   FactoryPath fp = (FactoryPath) path;
   FactoryPathUtil.setFactoryPath(jproj, fp);
   // Project-specific factory path files are resources, so changes
   // get picked up by the resource listener.  Workspace changes aren't.
   if (jproj == null) {
     AnnotationProcessorFactoryLoader.getLoader().resetAll();
   }
 }