UXMessages.getInstance()
.showWarningMessage("Please select a bookmark to be able to remove it!");
return;
}
final UXConfirmWindow win =
new UXConfirmWindow(mWin.getShell(), "Bookmark", "You are sure you want to remove bookmark?");
win.setOkAction(new UXAbstractAction() {
@Override
public void doAction() {
try {
BookmarkService.instance().remove(bookmark);
bookmark.getFolder().removeBookmark(bookmark);
mWin.refreshTree();
} catch (ServiceException e) {
UXMessages.getInstance().showErrorMessage(e);
} finally {
win.close();
}
}
});
win.open();
}