try { loadedProject=new Project(); SortedBugCollection col=new SortedBugCollection(); col.readXML(fileName,loadedProject); List<String> possibleDirectories=loadedProject.getSourceDirList(); MainFrame.getInstance().setSourceFinder(new SourceFinder()); MainFrame.getInstance().getSourceFinder().setSourceBaseList(possibleDirectories);
try {  SortedBugCollection col=new SortedBugCollection(); col.readXML(file,project); List<String> possibleDirectories=project.getSourceDirList(); MainFrame.getInstance().setSourceFinder(new SourceFinder()); MainFrame.getInstance().getSourceFinder().setSourceBaseList(possibleDirectories);
	public static BugSet loadBugs(String fileName)	{		try 		{			loadedProject=new Project();					SortedBugCollection col=new SortedBugCollection();			col.readXML(fileName,loadedProject);			List<String> possibleDirectories=loadedProject.getSourceDirList();			MainFrame.getInstance().setSourceFinder(new SourceFinder());			MainFrame.getInstance().getSourceFinder().setSourceBaseList(possibleDirectories);			return loadBugsHelper(col);		} catch (IOException e) {			JOptionPane.showMessageDialog(null,"This file contains no bug data");		} catch (DocumentException e) {			JOptionPane.showMessageDialog(null,"This file does not have the correct format; it may be corrupt.");		}		return null;	}