use of com.talosvfx.talos.editor.widgets.ui.EditableLabel in project talos by rockbite.
the class AssetListPopup method traversePath.
private void traversePath(FileHandle path, int currDepth, int maxDepth, FilteredTree.Node node) {
if (path.isDirectory() && currDepth <= maxDepth) {
FileHandle[] list = path.list(ProjectExplorerWidget.fileFilter);
for (int i = 0; i < list.length; i++) {
FileHandle listItemHandle = list[i];
ProjectExplorerWidget.RowWidget widget = new ProjectExplorerWidget.RowWidget(listItemHandle, false);
EditableLabel label = widget.getLabel();
final FilteredTree.Node newNode = new FilteredTree.Node(listItemHandle.path(), widget);
newNode.setObject(listItemHandle.path());
node.add(newNode);
if (listItemHandle.isDirectory()) {
traversePath(list[i], currDepth++, maxDepth, newNode);
}
}
}
}
Aggregations