void sortingChanged() { // PENDING: remember the last sorting to avoid multiple sorting // remenber expanded folders TreeNode tn = (TreeNode) (this.getRoot()); java.util.List<TreePath> list = new ArrayList<TreePath>(); Enumeration<TreePath> en = TreeTableView.this.tree.getExpandedDescendants(new TreePath(tn)); while ((en != null) && en.hasMoreElements()) { TreePath path = en.nextElement(); // bugfix #32328, don't sort whole subtree but only expanded folders Node n = ((VisualizerNode) path.getLastPathComponent ()).node; ((SortedChildren) n.getChildren ()).sortNodes (); list.add(path); } // expand again folders for (int i = 0; i < list.size(); i++) { TreeTableView.this.tree.expandPath(list.get(i)); } }
void sortingChanged() { // PENDING: remember the last sorting to avoid multiple sorting // remenber expanded folders TreeNode tn = (TreeNode)(this.getRoot()); java.util.List list = new ArrayList(); Enumeration en = TreeTableView.this.tree.getExpandedDescendants( new TreePath( tn ) ); while ( en != null && en.hasMoreElements() ) { TreePath path = (TreePath)en.nextElement(); // bugfix #32328, don't sort whole subtree but only expanded folders sortChildren ((VisualizerNode)path.getLastPathComponent (), true); list.add( path ); } // expand again folders for (int i=0; i<list.size(); i++) { TreeTableView.this.tree.expandPath( (TreePath)list.get( i ) ); } }
void sortingChanged() { // PENDING: remember the last sorting to avoid multiple sorting // remenber expanded folders TreeNode tn = (TreeNode)(this.getRoot()); java.util.List list = new ArrayList(); Enumeration en = TreeTableView.this.tree.getExpandedDescendants( new TreePath( tn ) ); while ( en != null && en.hasMoreElements() ) { TreePath path = (TreePath)en.nextElement(); // bugfix #32328, don't sort whole subtree but only expanded folders sortChildren ((VisualizerNode)path.getLastPathComponent (), true); list.add( path ); } // expand again folders for (int i=0; i<list.size(); i++) { TreeTableView.this.tree.expandPath( (TreePath)list.get( i ) ); } }
String getRootDescription() { if ( getRoot() instanceof VisualizerNode ) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode)getRoot()).getShortDescription(); } return ""; // NOI18N }
String getRootDescription() { if ( getRoot() instanceof VisualizerNode ) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode)getRoot()).getShortDescription(); } return ""; // NOI18N }
String getRootDescription() { if (getRoot() instanceof VisualizerNode) { //#37802 commenting this out - unfathomable why you would need //to sort the root's children in order to get its short //description - Tim // sortChildren ((VisualizerNode)getRoot ()); return ((VisualizerNode) getRoot()).getShortDescription(); } return ""; // NOI18N }