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

(-)openide/dialogs/src/org/openide/Bundle.properties (+2 lines)
Lines 100-102 Link Here
100
#Property - wizard panel image alignment
100
#Property - wizard panel image alignment
101
#NOI18N
101
#NOI18N
102
STRING_WizardImageAlignment=South
102
STRING_WizardImageAlignment=South
103
104
MSG_WizardDescriptor_FinishInProgress=The Finish is being processed...
(-)openide/dialogs/src/org/openide/WizardDescriptor.java (-27 / +40 lines)
Lines 1620-1652 Link Here
1620
            if (ev.getSource() == finishButton) {
1620
            if (ev.getSource() == finishButton) {
1621
                Runnable onValidPerformer = new Runnable() {
1621
                Runnable onValidPerformer = new Runnable() {
1622
                    public void run() {
1622
                    public void run() {
1623
                        // do instantiate
1623
                        cancelButton.setEnabled (false);
1624
                        try {
1624
                        previousButton.setEnabled (false);
1625
                            callInstantiate();
1625
                        nextButton.setEnabled (false);
1626
                        } catch (IOException ioe) {
1626
                        finishButton.setEnabled (false);
1627
                            // notify to log
1627
                        if (wizardPanel != null) wizardPanel.setErrorMessage (NbBundle.getMessage (WizardDescriptor.class, "MSG_WizardDescriptor_FinishInProgress"), Boolean.TRUE); // NOI18N
1628
                            ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ioe);
1628
                        RequestProcessor.getDefault ().post (new Runnable () {
1629
1629
                            public void run () {
1630
                            setValueWithoutPCH(NEXT_OPTION);
1630
                                assert ! SwingUtilities.isEventDispatchThread () : "Cannot invoked within EDT!";
1631
                            updateStateWithFeedback();
1631
                                // do instantiate
1632
1632
                                try {
1633
                            // notify user by the wizard's status line
1633
                                    callInstantiate();
1634
                            putProperty(PROP_ERROR_MESSAGE, ioe.getLocalizedMessage());
1634
                                } catch (IOException ioe) {
1635
1635
                                    // notify to log
1636
                            // if validation failed => cannot move to next panel
1636
                                    ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ioe);
1637
                            return;
1637
1638
                        }
1638
                                    setValueWithoutPCH(NEXT_OPTION);
1639
1639
                                    updateStateWithFeedback();
1640
                        // all is OK
1640
1641
                        // close wizrad
1641
                                    // notify user by the wizard's status line
1642
                        finishOption.fireActionPerformed();
1642
                                    putProperty(PROP_ERROR_MESSAGE, ioe.getLocalizedMessage());
1643
1643
1644
                        Object oldValue = getValue();
1644
                                    // if validation failed => cannot move to next panel
1645
                        setValueWithoutPCH(OK_OPTION);
1645
                                    return;
1646
1646
                                }
1647
                        resetWizard();
1647
                                SwingUtilities.invokeLater (new Runnable () {
1648
1648
                                    public void run () {
1649
                        firePropertyChange(PROP_VALUE, oldValue, OK_OPTION);
1649
                                        // all is OK
1650
                                        // close wizrad
1651
                                        finishOption.fireActionPerformed();
1652
1653
                                        Object oldValue = getValue();
1654
                                        setValueWithoutPCH(OK_OPTION);
1655
1656
                                        resetWizard();
1657
1658
                                        firePropertyChange(PROP_VALUE, oldValue, OK_OPTION);
1659
                                    }
1660
                                });
1661
                            }
1662
                        }); 
1650
                    }
1663
                    }
1651
                };
1664
                };
1652
                lazyValidate(panels.current(), onValidPerformer);
1665
                lazyValidate(panels.current(), onValidPerformer);

Return to bug 62161