}
private void initWorker() {
final com.intellij.openapi.project.Project project = IdeaUtilImpl.getProject(_dataContext);
final Module module = IdeaUtilImpl.getModule(_dataContext);
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() + "'...");
}