X-Git-Url: https://git.nikiroo.be/?a=blobdiff_plain;f=ui%2FDataTree.java;h=108476eadfc2a4384bc1724a2a0c64ddcbe7fe3f;hb=2da37d38f809da144338309b478f3b2e3287e4f8;hp=e941a71d2ac00a238c0c6fd6a67932b7f08ca080;hpb=f2573c3765c5e2d436c4d2871f3a450ee3ada1ed;p=fanfix.git diff --git a/ui/DataTree.java b/ui/DataTree.java index e941a71..108476e 100644 --- a/ui/DataTree.java +++ b/ui/DataTree.java @@ -65,24 +65,4 @@ public abstract class DataTree { return new DataNode(children, source.getUserData()); } - - // TODO: not in this class: - - public void loadInto(DefaultMutableTreeNode root, String filter) { - DataNode filtered = getRoot(filter); - for (DataNode child : filtered.getChildren()) { - root.add(nodeToNode(child)); - } - } - - private MutableTreeNode nodeToNode(DataNode node) { - // TODO: node.toString - DefaultMutableTreeNode otherNode = new DefaultMutableTreeNode( - node.toString()); - for (DataNode child : node.getChildren()) { - otherNode.add(nodeToNode(child)); - } - - return otherNode; - } }