e.printStackTrace(System.err);
}
//text.setText(snipReader.snippetFile.getName().replace(".xml",""));
preview.setText(toPreview.toString());
} else if(element instanceof SnipEx) {
SnipEx sx = (SnipEx)element;
//text.setText(sx.toString());
preview.setText(sx.getSource().toString());
} else if(element instanceof Library) {
Library lib = (Library)element;
//text.setText(lib.getName());
preview.setText(lib.getDescription());