use of name.abuchen.portfolio.ui.util.LabelOnly in project portfolio by buchen.
the class DataSeriesConfig method menuAboutToShow.
@Override
public void menuAboutToShow(IMenuManager manager) {
manager.appendToGroup(DashboardView.INFO_MENU_GROUP_NAME, new LabelOnly(dataSeries.getLabel()));
MenuManager subMenu = new MenuManager(Messages.LabelDataSeries);
subMenu.add(new LabelOnly(dataSeries.getLabel()));
subMenu.add(new Separator());
subMenu.add(new SimpleAction(Messages.MenuSelectDataSeries, a -> doAddSeries(false)));
if (supportsBenchmarks)
subMenu.add(new SimpleAction(Messages.MenuSelectBenchmarkDataSeries, a -> doAddSeries(true)));
manager.add(subMenu);
}
Aggregations