Add back unallocated files to dir dree

Dir tree will now load first 10k Content children, be they volumes,
layout files, files, dirs, etc.
This commit is contained in:
Dick Fickling 2012-07-23 19:44:25 -04:00
parent 81e22f1c2b
commit d2f20a78d9

View File

@ -42,13 +42,13 @@ class ContentChildren extends AbstractContentChildren {
List<Content> children = ContentHierarchyVisitor.getChildren(parent);
// To not display LayoutFiles
Iterator<Content> it = children.iterator();
while(it.hasNext()) {
Content child = it.next();
if(child instanceof LayoutFile) {
it.remove();
}
}
// Iterator<Content> it = children.iterator();
// while(it.hasNext()) {
// Content child = it.next();
// if(child instanceof LayoutFile) {
// it.remove();
// }
// }
setKeys(children.subList(0, Math.min(children.size(), MAX_CHILD_COUNT)));
}