#49: Expand a few configuration levels by default

This commit is contained in:
Brendan Robert 2024-07-10 16:00:50 -05:00
parent 88cd03a9e6
commit 39dd9d81b5

View File

@ -99,6 +99,16 @@ public class ConfigurationUIController {
String current = getCurrentNodePath();
getExpandedNodes("", deviceTree.getRoot(), expanded);
deviceTree.setRoot(Configuration.BASE);
for (ConfigNode node : Configuration.BASE.getChildren()) {
String prefix = node.name;
expanded.add(prefix);
for (ConfigNode child : node.getChildren()) {
expanded.add(prefix + DELIMITER + child.toString());
for (ConfigNode grandchild : node.getChildren()) {
expanded.add(prefix + DELIMITER + child.toString() + DELIMITER + grandchild.toString());
}
}
}
setExpandedNodes("", deviceTree.getRoot(), expanded);
setCurrentNodePath(current);
}