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

(-)a/editor.settings.storage/src/org/netbeans/modules/editor/settings/storage/MimeTypesTracker.java (-1 / +5 lines)
Lines 46-51 Link Here
46
import java.beans.PropertyChangeSupport;
46
import java.beans.PropertyChangeSupport;
47
import java.util.Collections;
47
import java.util.Collections;
48
import java.util.HashMap;
48
import java.util.HashMap;
49
import java.util.HashSet;
49
import java.util.List;
50
import java.util.List;
50
import java.util.Map;
51
import java.util.Map;
51
import java.util.Set;
52
import java.util.Set;
Lines 219-224 Link Here
219
            rebuild();
220
            rebuild();
220
        }
221
        }
221
    });
222
    });
223
224
    private final Set<FileObject> jarda = new HashSet<FileObject>();
222
    
225
    
223
    private void rebuild() {
226
    private void rebuild() {
224
        PropertyChangeEvent event = null;
227
        PropertyChangeEvent event = null;
Lines 243-249 Link Here
243
            if (isBaseFolder) {
246
            if (isBaseFolder) {
244
                // Clear the cache
247
                // Clear the cache
245
                newMimeTypes = new HashMap<String, String>();
248
                newMimeTypes = new HashMap<String, String>();
246
                
249
                jarda.clear();
247
                // Go through mime type types
250
                // Go through mime type types
248
                FileObject [] types = folder.getChildren();
251
                FileObject [] types = folder.getChildren();
249
                for(int i = 0; i < types.length; i++) {
252
                for(int i = 0; i < types.length; i++) {
Lines 251-256 Link Here
251
                        continue;
254
                        continue;
252
                    }
255
                    }
253
256
257
                    jarda.add(types[i]);
254
                    // Go through mime type subtypes
258
                    // Go through mime type subtypes
255
                    FileObject [] subTypes = types[i].getChildren();
259
                    FileObject [] subTypes = types[i].getChildren();
256
                    for(int j = 0; j < subTypes.length; j++) {
260
                    for(int j = 0; j < subTypes.length; j++) {

Return to bug 172043