*
* @return the created menu.
*/
private JMenu buildArticlesMenu()
{
MenuBuilder bld = createBuilder("articles");
JMenu menu = bld.getMenu();
menu.add(ActionManager.get(ActionsTable.CMD_ARTICLE_WHATIS));
bld.addSeparator();
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_MARK_READ));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_MARK_UNREAD));
bld.addSeparator();
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_BROWSE));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_COPY_LINK));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_SEND_LINK));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_POST_TO_BLOG));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_TWEET_THIS));
bld.addSeparator();
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_PROPERTIES));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_TAGS));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_PIN_UNPIN));
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_DISCOVER));
bld.addSeparator();
bld.add(ActionManager.get(ActionsTable.CMD_ARTICLE_GOTO_NEXT_UNREAD));
bld.addSeparator();
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_ALL));
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_UNREAD));
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_PINNED));
if (SentimentsFeature.isAvailable())
{
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_POSITIVE));
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_NEGATIVE));
bld.addToggle((ToggleAction)ActionManager.get(ActionsTable.CMD_ARTICLE_SHOW_NON_NEGATIVE));
}
bld.addSeparator();
bld.add(buildViewModeSubmenu());
bld.add(buildTextSizeSubmenu());
return bld.getMenu();
}