*/
public void updateRootNode(boolean save) {
mRootNode.removeAllActions();
mRootNode.getMutableTreeNode().setIcon(IconLoader.getInstance().getIconFromTheme("apps", "appointment", 16));
Action editReminders = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ReminderListDialog dlg = new ReminderListDialog(MainFrame.getInstance(), mReminderList);
UiUtilities.centerAndShow(dlg);
}
};
editReminders.putValue(Action.SMALL_ICON, IconLoader.getInstance().getIconFromTheme("apps", "appointment", 16));
editReminders.putValue(Action.NAME, mLocalizer.ellipsisMsg("buttonText", "Edit reminder list"));
Action openSettings = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
MainFrame.getInstance().showSettingsDialog(SettingsItem.REMINDER);
}
};
openSettings.putValue(Action.SMALL_ICON, TVBrowserIcons.preferences(TVBrowserIcons.SIZE_SMALL));
openSettings.putValue(Action.NAME, Localizer.getLocalization(Localizer.I18N_SETTINGS));
mRootNode.addAction(editReminders);
mRootNode.addAction(null);
mRootNode.addAction(openSettings);