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.
When displaying a larger hierarchy, e.g. displaying a filesystem hierarchy with all nodes expanded and mousing over Strings to display TooltipTexts and sometimes clicking in the table, the UI stalls longer and longer trying to display the tooltiptext of the string and never recovers. I've reproduced this on different platforms (XP, OS X) and with different models. For reproducing the bug you can use this in your TopComponent's constructor: outlineView = new OutlineView(); FileObject fo = FileUtil.getConfigRoot(); try { DataObject dao = DataObject.find(fo); Node root = dao.getNodeDelegate(); outlineView.setProperties(root.getPropertySets()[0].getProperties()); explorermanager.setRootContext(root); } catch (DataObjectNotFoundException ex) { Exceptions.printStackTrace(ex); } add(outlineView, BorderLayout.CENTER); and to expand all nodes: @Override protected void componentShowing() { super.componentShowing(); if (firsttime) { firsttime = false; expandAllNodes(explorermanager.getRootContext()); } } private void expandAllNodes(Node root) { outlineView.expandNode(root); Children children = root.getChildren(); Node[] childNodes = children.getNodes(); for (int i = 0; i < childNodes.length; i++) { Node node = childNodes[i]; expandAllNodes(node); } } Workaround: 1. Disabling editors fixes the above problem, but it's not really a workaround, because you're loosing functionality 2. Use TreeTableView - also not really a workaround
I need to know which release of NetBeans RCP are you using. Furhermore, I don't see what is a problem is? Is it slow? Or a deadlock? Thanks
Tested with 6.7.1 and 6.8 m1. It first blocks the application for short intervalls, like 2 or 3 second which get longer every time until the application doesn't respond anymore. I.e. it doesn't respond on mouseclick, dioesn't repaint on resize, etc. while using lots of CPU.
I'm evaluating it...
I created a OutlineView TopComponent using your snippets and worked pretty good and not so slow. A possible slowness might be caused by generating display names of some nodes(based by XML content where get display name caused parsing XML content). So, in my point of view there is no OutlineView performance problem. If I'm wrong, I need a snapshot of heapstack - use profiler's button on right size of IDE toolbar (or Alt-Shift-Y) in NetBeans IDE 6.8 M2. Thanks
Did you follow the steps I described clicking and mouse over? Maybe it's important to scroll in the hierarchie as well... Unfortunately the way to reproduce this is much harder to describe than to show :-). I'm also asking because I (and others) were able to reproduce this across different versions, OSes machines and totally different Node hierarchies and it consistently fails after a very short time (around 30 seconds). It won't be possible to create a snapshot when the application uses the "final state". But I'll try to do it a few moments before that...