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

(-)autoupdate/src/org/netbeans/modules/autoupdate/catalog/ModuleBean.java (-2 / +7 lines)
Lines 78-83 Link Here
78
            err.log("invalid, forget it...");
78
            err.log("invalid, forget it...");
79
            return;
79
            return;
80
        }
80
        }
81
        // avoid the ZipException: No such file or directory when read from non-existing jar file
82
        if (! module.isFixed () && ( module.getJarFile () == null || ! module.getJarFile ().exists ())) {
83
            err.log("standard module w/o jar file is invalid, forget it...");
84
            return;
85
        }
81
        // Set fields. Called inside read mutex.
86
        // Set fields. Called inside read mutex.
82
        codeName = module.getCodeName();
87
        codeName = module.getCodeName();
83
        codeNameBase = module.getCodeNameBase();
88
        codeNameBase = module.getCodeNameBase();
Lines 271-277 Link Here
271
        // Inside event thread after a change.
276
        // Inside event thread after a change.
272
        err.log("firing changes: module=" + module);
277
        err.log("firing changes: module=" + module);
273
        supp.firePropertyChange(null, null, null);
278
        supp.firePropertyChange(null, null, null);
274
        ModuleSelectionPanel.getGUI (false).setWaitingState (false, false);
275
    }
279
    }
276
    
280
    
277
    // ModuleNode uses these as keys, so make sure even if recreated after change
281
    // ModuleNode uses these as keys, so make sure even if recreated after change
Lines 395-407 Link Here
395
            // Something changed and now we are in the event thread.
399
            // Something changed and now we are in the event thread.
396
            // (Either list of modules or pending changes or both.)
400
            // (Either list of modules or pending changes or both.)
397
            supp.firePropertyChange(null, null, null);
401
            supp.firePropertyChange(null, null, null);
402
            ModuleSelectionPanel.getGUI (false).setWaitingState (false, true);
398
        }
403
        }
399
        
404
        
400
        public void propertyChange(PropertyChangeEvent evt) {
405
        public void propertyChange(PropertyChangeEvent evt) {
401
            if (SwingUtilities.isEventDispatchThread()) throw new IllegalStateException();
406
            if (SwingUtilities.isEventDispatchThread()) throw new IllegalStateException();
402
            err.log("got changes: evt=" + evt);
407
            err.log("got changes: evt=" + evt);
403
            ModuleSelectionPanel.getGUI (false).setWaitingState (true, true);
404
            if (ModuleManager.PROP_MODULES.equals(evt.getPropertyName())) {
408
            if (ModuleManager.PROP_MODULES.equals(evt.getPropertyName())) {
409
                ModuleSelectionPanel.getGUI (false).setWaitingState (true, true);
405
                // Later on. Something changed. Again in read mutex.
410
                // Later on. Something changed. Again in read mutex.
406
                Map modules2Beans = new HashMap(modules.length * 4 / 3 + 1);
411
                Map modules2Beans = new HashMap(modules.length * 4 / 3 + 1);
407
                for (int i = 0; i < modules.length; i++) {
412
                for (int i = 0; i < modules.length; i++) {

Return to bug 69972