}
});
}
private void buildBookmarkMenu() {
UXDropDownMenu bookmarkMenu = new UXDropDownMenu(menu);
bookmarkMenu.setCaption("Bookmarks");
UXMenuButton bookmarkManager = new UXMenuButton(bookmarkMenu);
bookmarkManager.setCaption("Bookmark manager");
bookmarkManager.setClickAction(new UXAbstractAction() {
@Override
public void doAction() {
BookmarkController.instance().openManagerWindow(menu.getShell());
}
});
new UXMenuSeparator(bookmarkMenu);
saveBookmark = new UXMenuButton(bookmarkMenu);
saveBookmark.setEnabled(false);
saveBookmark.setCaption("Save bookmark");
attachIcon("bookmark_add.png", saveBookmark);
saveBookmark.setClickAction(new UXAbstractAction() {
@Override
public void doAction() {
TabPanelController.instance().bookmarkCurrentReq();
}
});
bookmarksListMenu = new UXDropDownMenu(bookmarkMenu);
bookmarksListMenu.setCaption("Bookmarks");
this.factoryBookmarkMenu(BookmarkService.instance().getRootFolder(), bookmarksListMenu);
}