Examples of FindBugsWorker


Examples of org.twodividedbyzero.idea.findbugs.core.FindBugsWorker

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (Boolean.valueOf(preferences.getProperty(FindBugsPreferences.TOOLWINDOW_TO_FRONT))) {
      IdeaUtilImpl.activateToolWindow(getPluginInterface(project).getInternalToolWindowId(), _dataContext);
    }

    final FindBugsWorker worker = new FindBugsWorker(project, module);

    // set aux classpath
    final VirtualFile[] files = IdeaUtilImpl.getProjectClasspath(_dataContext);
    worker.configureAuxClasspathEntries(files);

    // set source dirs
    final VirtualFile[] sourceRoots = IdeaUtilImpl.getModulesSourceRoots(_dataContext);
    worker.configureSourceDirectories(sourceRoots);

    // set class files
    final VirtualFile compilerOutpath = IdeaUtilImpl.getCompilerOutputPath(module);
    if (compilerOutpath == null) {
      FindBugsPluginImpl.showToolWindowNotifier(project, "Compiler output path for module can not be null. check your module/project settings", MessageType.ERROR);
      return;
    }

    final String outPath = compilerOutpath.getPresentableUrl();
    worker.configureOutputFiles(outPath);
    worker.work("Running FindBugs analysis for module'" + module.getName() + "'...");

  }
View Full Code Here

Examples of org.twodividedbyzero.idea.findbugs.core.FindBugsWorker

    final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
    if (Boolean.valueOf(preferences.getProperty(FindBugsPreferences.TOOLWINDOW_TO_FRONT))) {
      IdeaUtilImpl.activateToolWindow(getPluginInterface(project).getInternalToolWindowId(), _dataContext);
    }

    final FindBugsWorker worker = new FindBugsWorker(project, module);

    // set aux classpath
    final VirtualFile[] files = IdeaUtilImpl.getProjectClasspath(_dataContext);
    worker.configureAuxClasspathEntries(files);

    // set source dirs
    final VirtualFile[] sourceRoots = IdeaUtilImpl.getModulesSourceRoots(_dataContext);
    worker.configureSourceDirectories(sourceRoots);

    // set class files
    final Iterable<String> classes = findClasses(project, scope);
    worker.configureOutputFiles(classes);
    worker.work("Running FindBugs analysis...");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.