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.
}
protected Node[] createNodes (Object key) {
FileSystem fs = (FileSystem)key;
DataFolder df = (DataFolder)key;
DataFolder df = createRoot (fs);
Node n = new RootFolderNode (df, df.createNodeChildren (getDS ().filter));
n = org.netbeans.core.ui.MountNode.customize (n, fs);
try {
n = org.netbeans.core.ui.MountNode.customize (n, df.getPrimaryFile ().getFileSystem ());
} catch (FileStateInvalidException fsie) {
fsie.printStackTrace ();
return new Node[] { n };
// root will remain null and will be accepted
// (as that seems safer than not accepting it)
if ((root == null) || getDS().filter.acceptDataObject(root)) {
if ((root instanceof DataFolder) && getDS().filter.acceptDataObject(root)) {
list.add(o);
list.add(root);