mirror of
https://github.com/badvision/jace.git
synced 2024-12-28 11:31:50 +00:00
#49: Expand a few configuration levels by default
This commit is contained in:
parent
88cd03a9e6
commit
39dd9d81b5
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user