{ updateDesignationDisplay(); BugSet bs=BugLoader.redoAnalysisKeepComments(curProject);  if (bs!=null) { displayer.clearCache();  ((BugTreeModel) tree.getModel()).getOffListenerList(); ((BugTreeModel)tree.getModel()).changeSet(bs); curProject=BugLoader.getLoadedProject(); } setCursor(new Cursor(Cursor.DEFAULT_CURSOR)); setProjectChanged(true); }
{ BugTreeModel model=(BugTreeModel)tree.getModel();  BugTreeModel.pleaseWait(); MainFrame.this.setRebuilding(true); Project project = new Project(); BugSet bs=BugLoader.loadBugs(project, extraFinalReferenceToXmlFile); MainFrame.this.setRebuilding(false); if (bs!=null) { editProjectMenuItem.setEnabled(true); displayer.clearCache(); model.getOffListenerList(); updateDesignationDisplay(); model.changeSet(bs); curProject=project; projectDirectory=dir; curProject.setProjectFileName(projectDirectory.getName()); MainFrame.this.setTitle("FindBugs: " + project.getProjectFileName()); MainFrame.getInstance().updateStatusBar(); } }
			public void run()			{				updateDesignationDisplay();				BugSet bs=BugLoader.redoAnalysisKeepComments(curProject);								if (bs!=null)				{					displayer.clearCache();					//Dont clear data, the data's correct, just get the tree off the listener lists.					((BugTreeModel) tree.getModel()).getOffListenerList();					((BugTreeModel)tree.getModel()).changeSet(bs);					curProject=BugLoader.getLoadedProject();				}				setCursor(new Cursor(Cursor.DEFAULT_CURSOR));				setProjectChanged(true);			}