{ 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(); updateDesignation(); model.changeSet(bs); curProject=project; projectDirectory=dir; curProject.setProjectFileName(projectDirectory.getName()); MainFrame.this.setTitle("FindBugs: " + project.getProjectFileName()); MainFrame.getInstance().updateStatusBar(); } }
{ updateDesignation(); 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); }
						public void run()						{							BugTreeModel model=(BugTreeModel)tree.getModel();//									Debug.println("please wait called by open menu item");							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();								updateDesignation();								model.changeSet(bs);								curProject=project;								projectDirectory=dir;								curProject.setProjectFileName(projectDirectory.getName());								MainFrame.this.setTitle("FindBugs: " + project.getProjectFileName());								MainFrame.getInstance().updateStatusBar();							}						}