This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be useful if the OutlineView (or at least its Outline) could support the expandAll() method available in TableView, for compatibility with TreeTableView. The forum discussion at http://forums.netbeans.org/viewtopic.php?t=24267&postdays=0&postorder=asc&start=0 is relevant here. I have not been able to find a bug related to this, and it appears that the method does not exist in build 201011210001.
I tried to add it to the outline public void expandAll() { ExplorerManager em = ExplorerManager.find(this); if (em != null) { Node node = em.getRootContext(); expandAll(node); } } private void expandAll(Node node) { if (node == null) { return; } expandNode(node); for (Node child : node.getChildren().getNodes()) { expandAll(child); } }
I have also add the setRootVisible method public void setRootVisible(boolean vis){ getOutline().setRootVisible(vis); }
(In reply to comment #2) > I have also add the setRootVisible method > public void setRootVisible(boolean vis){ > getOutline().setRootVisible(vis); > } Where did you add this? I does not appear in the daily build yet...
In my RCP I create a class that extended OutlineView. I cannot commit to NetBeans sources. the code I posted is just a suggested implementation.