ProgressMonitorDialog progress = new ProgressMonitorDialog(FindbugsPlugin.getShell()); progress.run(true, true, r);
runFindBugs.setUser(true); runFindBugs.schedule(); } catch (CoreException e1) {  e1.printStackTrace();
	private void work(final IResource resource)	{		try {			final Collection files = filesInResource(resource);					IRunnableWithProgress r = new IRunnableWithProgress() {				public void run(IProgressMonitor pm) throws InvocationTargetException {					try {						FindBugsWorker worker = new FindBugsWorker(resource.getProject(), pm);						worker.work(files);					}					catch (CoreException ex) {						throw new InvocationTargetException(ex);					}				}			};					ProgressMonitorDialog progress = new ProgressMonitorDialog(FindbugsPlugin.getShell());			progress.run(true, true, r);		}		catch (CoreException e) {			e.printStackTrace();		}		catch (InvocationTargetException e) {			e.printStackTrace();		}		catch (InterruptedException e) {			e.printStackTrace();		}	}