PatchEdit.showWaitDialog("Loading " + file + " ...");
    static void openFrame(File file) {        PatchEdit.showWaitDialog("Loading " + file + " ...");        AbstractLibraryFrame frame;        if (file.exists()) {            // try LibraryFrame then SceneFrame            frame = new LibraryFrame(file);            try {                frame.open(file);            } catch (Exception e) {                frame = new SceneFrame(file);                try {                    frame.open(file);                } catch (Exception e1) {                    PatchEdit.hideWaitDialog();                    ErrorMsg.reportError("Error", "Error Loading Library:\n "                            + file.getAbsolutePath(), e1);                    return;                }            }        } else {            PatchEdit.hideWaitDialog();            ErrorMsg.reportError("Error", "File Does Not Exist:\n" + file.getAbsolutePath() );            return;        }        PatchEdit.hideWaitDialog();        addLibraryFrame(frame);    }