@Override public void setModel (T[] nodes, EditorCookie[] editorCookies, Object modelData) { this.editorCookies = editorCookies; this.nodes = nodes; em.setRootContext((Node) modelData); for (T n : nodes) { view.expandNode(toTreeNode(n)); } }
private static Node[] getChildren(Node n, OutlineView outlineView, boolean canExpand) { if (outlineView != null) { if (!outlineView.isExpanded(n)) { if (canExpand) { outlineView.expandNode(n); } else { return n.getChildren().getNodes(true); } } return getChildrenInDisplayedOrder(n, outlineView); } else { return n.getChildren().getNodes(true); } }
view.expandNode(dropNode); SwingUtilities.invokeLater(new Runnable() { public void run() {