mirror of
https://github.com/badvision/jace.git
synced 2025-01-01 05:29:49 +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();
|
String current = getCurrentNodePath();
|
||||||
getExpandedNodes("", deviceTree.getRoot(), expanded);
|
getExpandedNodes("", deviceTree.getRoot(), expanded);
|
||||||
deviceTree.setRoot(Configuration.BASE);
|
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);
|
setExpandedNodes("", deviceTree.getRoot(), expanded);
|
||||||
setCurrentNodePath(current);
|
setCurrentNodePath(current);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user