This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
for (ProviderModel.Category cat : ProviderModel.getInstance().getCategories()) {
if (!CommandEvaluator.RECENT.equals(cat.getName())) {
JRadioButtonMenuItem item = new JRadioButtonMenuItem(cat.getDisplayName(), cat == evalCat);
String text = cat.getDisplayName();
if (null!=cat.getCommandPrefix()){
text +=" - "+cat.getCommandPrefix();
}
JRadioButtonMenuItem item = new JRadioButtonMenuItem(text, cat == evalCat);
item.putClientProperty(CATEGORY, cat);
item.addActionListener(this);
pm.add(item);