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

(-)src/org/netbeans/modules/settings/convertors/SerialDataConvertor.java (+15 lines)
Lines 164-169 Link Here
164
        }
164
        }
165
165
166
        SerialDataConvertor.SettingsInstance si = createInstance(inst);
166
        SerialDataConvertor.SettingsInstance si = createInstance(inst);
167
        
168
        boolean recreate = false;
169
        if (instance.getCachedInstance() != null) {
170
            if (instance.getCachedInstance() instanceof org.openide.options.SystemOption) {
171
                recreate = true;
172
            }
173
        }
167
        if (isModuleEnabled(si)) {
174
        if (isModuleEnabled(si)) {
168
            instance = si;
175
            instance = si;
169
            lkpContent.set(Arrays.asList(new Object [] { this, si }), null);
176
            lkpContent.set(Arrays.asList(new Object [] { this, si }), null);
Lines 173-178 Link Here
173
        }
180
        }
174
        
181
        
175
        lkpContent.add(this, node);
182
        lkpContent.add(this, node);
183
        
184
        if (isModuleEnabled(si) && recreate) {
185
            try {
186
                instance.instanceCreate();
187
            } catch (Exception ex) {
188
                ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ex);
189
            }
190
        }
176
    }
191
    }
177
    
192
    
178
    public void propertyChange(PropertyChangeEvent evt) {
193
    public void propertyChange(PropertyChangeEvent evt) {

Return to bug 34155