From da82ce61a8ba91af16d6da043c9f931a927a79ea Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 15 Mar 2016 14:11:38 +0100 Subject: [client] cleanup debug stuff --- .../java/org/openslx/dozmod/gui/control/JCheckBoxTree.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'dozentenmodul/src/main/java') diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java index 21460ba2..bdb3e360 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java @@ -100,16 +100,13 @@ public class JCheckBoxTree extends JTree { // Hack to get rid of leaf nodes with an expand button // first expand all nodes for (int i = 0; i < this.getRowCount(); i++) { - System.out.println("Open: " + i); this.expandRow(i); } // Now collapse again if it's not first level for (int i = 0; i > this.getRowCount(); i++) { TreePath path = this.getPathForRow(i); - if (path.getPathCount() > 1) { - System.out.println("Collpasing: " + path); + if (path.getPathCount() > 1) this.collapseRow(i); - } } } // Preselection stuff @@ -119,14 +116,10 @@ public class JCheckBoxTree extends JTree { for (TreePath path : paths) { if (path != null) { checkSubTree(path, check); - if (check) { - System.out.println("Checking: " + path); + if (check) this.expandPath(path); - } } } - // here we still have all but the first level nodes collapsed - // so we need to expand the nodes we just checked... } // New method that returns only the checked paths (totally ignores original @@ -149,7 +142,6 @@ public class JCheckBoxTree extends JTree { TreePath path = it.getKey(); CheckedNode cn = it.getValue(); if (cn.hasChildren && cn.allChildrenSelected && !isCollapsed(path)) { -// System.out.println("Collapsing: " + path); collapsePath(path); } } -- cgit v1.2.3-55-g7522