e.printStackTrace(System.err);
}
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());