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 28466
Collapse All | Expand All

(-)NbPresenter.java (-7 / +13 lines)
Lines 933-945 Link Here
933
            
933
            
934
            ActionListener al = getButtonListener();
934
            ActionListener al = getButtonListener();
935
            if (al != null) {
935
            if (al != null) {
936
                
936
                try {
937
                if (pressedOption == evt.getSource()) {
937
                    if (pressedOption == evt.getSource()) {
938
                    al.actionPerformed(evt);
938
                        al.actionPerformed(evt);
939
                } else {
939
                    } else {
940
                    al.actionPerformed(new ActionEvent(
940
                        al.actionPerformed(new ActionEvent(
941
                    pressedOption, evt.getID(), evt.getActionCommand(), evt.getModifiers()
941
                        pressedOption, evt.getID(), evt.getActionCommand(), evt.getModifiers()
942
                    ));
942
                        ));
943
                    }
944
                } catch (IllegalStateException ex) {
945
                    // a signal to not evaluate the closing options
946
                    // show the warning to user
947
                    org.openide.ErrorManager.getDefault ().notify (ex);
948
                    return;
943
                }
949
                }
944
            }
950
            }
945
            
951
            

Return to bug 28466