public void onClick(ClickEvent event) {
hide();
if (selectionHandler != null) {
ArrayList<DocumentServiceEntry> files = tree.getSelectedEntries();
if (files.size() > 0) {
selectionHandler.onSelection(new FileSelectionEvent(files.get(0)));
}
}
}
});
cancel = new Button("Cancel", new ClickHandler() {