newFolderBtn = UXButtonFactory.factoryNewFolderButton(shell);
UXFormLayoutUtil.setLeft(newFolderBtn, 0, 2);
UXFormLayoutUtil.setBottom(newFolderBtn, 100, -2);
tree.setEditElementAction(new UXAbstractAction() {
public void doAction() {
if (tree.getSelectedFolder() != null && editFolderAction != null) {
editFolderAction.execute(new UXEvent(null, BookmarkManagerWin.this));
} else if (tree.getSelectedBookmark() != null && editBookmarkAction != null) {
editBookmarkAction.execute(new UXEvent(null, BookmarkManagerWin.this));
}
}
});
tree.setRemoveElementAction(new UXAbstractAction() {
public void doAction() {
if (tree.getSelectedFolder() != null && removeFolderAction != null) {
removeFolderAction.execute(new UXEvent(null, BookmarkManagerWin.this));
} else if (tree.getSelectedBookmark() != null && removeBookmarkAction != null) {
removeBookmarkAction.execute(new UXEvent(null, BookmarkManagerWin.this));