LibraryFrame frame = new LibraryFrame(file);
PatchEdit.showWaitDialog(); AbstractLibraryFrame frame = new LibraryFrame(file);
    static void openFrame(File file) {        LibraryFrame frame = new LibraryFrame(file);        try {	    // Does this need to be before open?	    frame.setVisible(true);	    frame.open(file);	    JSLDesktop.add(frame);	} catch (Exception e) {	    frame.dispose();	    SceneFrame frame2 = new SceneFrame(file);	    try {		frame2.setVisible(true);		frame2.open(file);		JSLDesktop.add(frame2);	    } catch (Exception e2) {		frame2.dispose();		ErrorMsg.reportError("Error", "Error Loading Library", e2);		return;	    }	    try {		frame2.setSelected(true);	    } catch (PropertyVetoException e2) {		ErrorMsg.reportStatus(e2);	    }	}        try {	    frame.setSelected(true);	} catch (PropertyVetoException e) {	    ErrorMsg.reportStatus(e);	}    }