public void loadLibrary() {
        final String libraryFilePath = dlgLibrary.open();
        if (libraryFilePath != null) {
            Yaml yaml = new Yaml();
            InputStream stream = null;
            
            try {
                stream = new FileInputStream(libraryFilePath);
            } catch (FileNotFoundException ex) {
                showMessage(Messages.ERROR_FILE_NOT_FOUND + libraryFilePath, "Error");
            }
            try {
                library = (Library) yaml.load(stream);
                updateExpandBarElements(library.getLibrary().values());
                String message = Messages.LIBRARY_FILE_SELECTED + libraryFilePath;
                status(message);
                schemeEditorPrepare();
                signalEditorPrepare();
                le_view.setText(yaml.dump(library));
            } catch(Exception ex) {
                showMessage(Messages.ERROR_WRONG_LIBRARY_DOCUMENT + libraryFilePath, "Error");    
                ex.printStackTrace();
            }
        } else {
            status(Messages.LIBRARY_FILE_NOT_SELECTED);
        }
    }