[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.107, 1.
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-09-20 14:41:52
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20144/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: more synchronisity Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** GenericTreeView.java 20 Sep 2007 09:39:32 -0000 1.107 --- GenericTreeView.java 20 Sep 2007 14:41:46 -0000 1.108 *************** *** 325,335 **** if (!changing) { changing = true; ! if (Selection.primary().size() == 1) { ! Object selected = Selection.primary().iterator().next(); ! TreePath path = search(root, selected); if (path != null) { ! setSelectionPath(path); } } changing = false; } --- 325,337 ---- if (!changing) { changing = true; ! List<TreePath> paths = new LinkedList(); ! for (Object current : Selection.primary()) { ! TreePath path = search(root, current); if (path != null) { ! paths.add(path); } } + TreePath[] array = paths.toArray(new TreePath[0]); + setSelectionPaths(array); changing = false; } |