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

(-)src/org/netbeans/core/DataSystem.java (-5 / +8 lines)
Lines 233-242 Link Here
233
        }
233
        }
234
234
235
        protected Node[] createNodes (Object key) {
235
        protected Node[] createNodes (Object key) {
236
            FileSystem fs = (FileSystem)key;
236
            DataFolder df = (DataFolder)key;
237
            DataFolder df = createRoot (fs);
238
            Node n = new RootFolderNode (df, df.createNodeChildren (getDS ().filter));
237
            Node n = new RootFolderNode (df, df.createNodeChildren (getDS ().filter));
239
            n = org.netbeans.core.ui.MountNode.customize (n, fs);
238
            try {
239
                n = org.netbeans.core.ui.MountNode.customize (n, df.getPrimaryFile ().getFileSystem ());
240
            } catch (FileStateInvalidException fsie) {
241
                fsie.printStackTrace ();
242
            }
240
            return new Node[] { n };
243
            return new Node[] { n };
241
        }
244
        }
242
245
Lines 259-266 Link Here
259
                        // root will remain null and will be accepted
262
                        // root will remain null and will be accepted
260
                        // (as that seems safer than not accepting it)
263
                        // (as that seems safer than not accepting it)
261
                    }
264
                    }
262
                    if ((root == null) || getDS().filter.acceptDataObject(root)) {
265
                    if ((root instanceof DataFolder) && getDS().filter.acceptDataObject(root)) {
263
                        list.add(o);
266
                        list.add(root);
264
                    }
267
                    }
265
                }
268
                }
266
            }
269
            }

Return to bug 31647