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.

View | Details | Raw Unified | Return to bug 220051
Collapse All | Expand All

(-)a/spi.quicksearch/src/org/netbeans/modules/quicksearch/AbstractQuickSearchComboBar.java (-1 / +5 lines)
Lines 258-264 Link Here
258
258
259
        for (ProviderModel.Category cat : ProviderModel.getInstance().getCategories()) {
259
        for (ProviderModel.Category cat : ProviderModel.getInstance().getCategories()) {
260
            if (!CommandEvaluator.RECENT.equals(cat.getName())) {
260
            if (!CommandEvaluator.RECENT.equals(cat.getName())) {
261
                JRadioButtonMenuItem item = new JRadioButtonMenuItem(cat.getDisplayName(), cat == evalCat);
261
                String text = cat.getDisplayName();
262
                if (null!=cat.getCommandPrefix()){
263
                    text +=" - "+cat.getCommandPrefix();
264
                }
265
                JRadioButtonMenuItem item = new JRadioButtonMenuItem(text, cat == evalCat);
262
                item.putClientProperty(CATEGORY, cat);
266
                item.putClientProperty(CATEGORY, cat);
263
                item.addActionListener(this);
267
                item.addActionListener(this);
264
                pm.add(item);
268
                pm.add(item);

Return to bug 220051