contextMenu.setVisible(true);
}
private void menuAboutToShow(IMenuManager manager)
{
manager.add(new LabelOnly(Messages.LabelTaxonomies));
for (final Taxonomy t : client.getTaxonomies())
{
Action action = new Action(t.getName())
{
@Override
public void run()
{
taxonomy = t;
if (clientSnapshot != null)
internalSetInput(clientSnapshot.groupByTaxonomy(taxonomy));
else
internalSetInput(portfolioSnapshot.groupByTaxonomy(taxonomy));
}
};
action.setChecked(t.equals(taxonomy));
manager.add(action);
}
manager.add(new Separator());
manager.add(new LabelOnly(Messages.LabelColumns));
support.menuAboutToShow(manager);
}