System.out.println("Resource: " + fileName  + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE));
if (DEBUG) { System.out.println( "Resource: " + fileName + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE)); }
	public void work(Collection files) throws CoreException {		int count = 0;		if (files != null) {			if (this.monitor != null) {				this.monitor.beginTask("FindBugs", files.size());			}			String findBugsHome = FindbugsPlugin.getFindBugsEnginePluginLocation();			if (DEBUG) {				System.out.println("Looking for detecors in: " + findBugsHome);			}			System.setProperty("findbugs.home", findBugsHome);			BugReporter bugReporter = new Reporter(this.project, this.monitor);			bugReporter.setPriorityThreshold(Detector.LOW_PRIORITY);			edu.umd.cs.findbugs.Project findBugsProject =				new edu.umd.cs.findbugs.Project();			FindBugs findBugs = new FindBugs(bugReporter, findBugsProject);			Iterator iter = files.iterator();			while (iter.hasNext()) {				// get the resource				IResource res = (IResource) iter.next();				if (isJavaArtifact(res)) {					res.deleteMarkers(						FindBugsMarker.NAME,						true,						IResource.DEPTH_INFINITE);				}								if (isClassFile(res)) {					// add this file to the work list:					String fileName = res.getLocation().toOSString();										res.refreshLocal(IResource.DEPTH_INFINITE, null);					System.out.println("Resource: " + fileName  + ": in synch: " + res.isSynchronized(IResource.DEPTH_INFINITE));					findBugsProject.addJar(fileName);				}			}			try {				findBugs.execute();			}			catch (IOException e) {				e.printStackTrace();			}			catch (InterruptedException e) {				e.printStackTrace();			}			//			Iterator iter = files.iterator();			//			while (iter.hasNext()) {			//				// get the resource			//				IResource res = (IResource) iter.next();			//							//				// advance progress monitor			//				if (monitor != null && count % MONITOR_INTERVAL == 0) {			//					monitor.worked(MONITOR_INTERVAL);			//					monitor.subTask("Performing bug check on: " + res.getName());			//					if (monitor.isCanceled())			//						break;			//				}			//							//				// visit resource			//				res.accept(new FindBugsVisitor());			//				count++;			//			}		}		else {			if (DEBUG) {				System.out.println("No files to build");			}		}	}