From: <cpm...@us...> - 2008-02-14 01:12:40
|
Revision: 5187 http://pcgen.svn.sourceforge.net/pcgen/?rev=5187&view=rev Author: cpmeister Date: 2008-02-13 17:12:46 -0800 (Wed, 13 Feb 2008) Log Message: ----------- readding treeview Modified Paths: -------------- branches/cdom/code/src/java/pcgen/gui/utils/treeview/TreeViewFactory.java Modified: branches/cdom/code/src/java/pcgen/gui/utils/treeview/TreeViewFactory.java =================================================================== --- branches/cdom/code/src/java/pcgen/gui/utils/treeview/TreeViewFactory.java 2008-02-14 01:11:31 UTC (rev 5186) +++ branches/cdom/code/src/java/pcgen/gui/utils/treeview/TreeViewFactory.java 2008-02-14 01:12:46 UTC (rev 5187) @@ -225,11 +225,11 @@ private static <T> PObjectNode buildView(PriorityQueue<TreeViewPath<T>> pathqueue) { PObjectNode root = new PObjectNode(); - Map<TreePath, PObjectNode> nodeMap = new HashMap<TreePath, PObjectNode>(pathqueue.size() * 2); + Map<TreeViewPath<T>, PObjectNode> nodeMap = new HashMap<TreeViewPath<T>, PObjectNode>(pathqueue.size() * 2); while (!pathqueue.isEmpty()) { PObjectNode last = null; - for (TreePath path = pathqueue.poll(); path != null; path = path.getParentPath()) + for (TreeViewPath<T> path = pathqueue.poll(); path != null; path = path.getParentPath()) { PObjectNode node = nodeMap.get(path); if (node == null) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |