private void work ( final IProject project , final String fileName ) { FindBugsJob runFindBugs = new FindBugsJob ( "Loading XML data from " + fileName + "..." , project ) { @ Override protected void runWithProgress ( IProgressMonitor monitor ) throws CoreException { FindBugsWorker worker = new FindBugsWorker ( project , monitor ) ; worker . loadXml ( fileName ) ; } } ; runFindBugs . setRule ( project ) ; runFindBugs . scheduleInteractive ( ) ; }
Run a FindBugs import on the given project displaying a progress monitor .