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.
NB 6.7 FCS , JDK 6u14 64b, Ubuntu 9.04 64b Steps to reproduce: - run IDE with new userdir - create sample Java project (e.g. Mars Rover Viewer) - wait until project is opened (keep Navigator opened) - select another Java File -> wait cursor is shown for ~500ms and disappears I do not think we need to show cursor for this operation, it doesn't block user while working in Projects view (invoke popup/open file/ ....) ... BTW: Navigator itself displays "Please Wait..." and it's enough -> from my point of view. see attached snapshot
Created attachment 84060 [details] Profiler snapshot
This is the problematic stack trace where the busy cursor gets there: java.lang.Exception at java.awt.Component.setCursor(Component.java:2568) at org.openide.explorer.view.TreeView.doShowWaitCursor(TreeView.java:880) at org.openide.explorer.view.TreeView.showWaitCursor(TreeView.java:872) at org.openide.explorer.view.TreeView.prepareWaitCursor(TreeView.java:908) at org.openide.explorer.view.TreeView.access$800(TreeView.java:143) at org.openide.explorer.view.TreeView$TreePropertyListener.treeWillExpand(TreeView.java:1419) at javax.swing.JTree.fireTreeWillExpand(JTree.java:2302) at javax.swing.JTree.setExpandedState(JTree.java:3000) at javax.swing.JTree.expandPath(JTree.java:1742) at javax.swing.JTree.expandRow(JTree.java:1757) at org.openide.explorer.view.TreeView.expandAll(TreeView.java:594) at org.netbeans.modules.java.navigation.ClassMemberPanelUI$MyBeanTreeView.expandAll(ClassMemberPanelUI.java:477) at org.netbeans.modules.java.navigation.ClassMemberPanelUI$3.run(ClassMemberPanelUI.java:181) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:117) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Marking this as P3.
David, P2/3 doesn't matter ... but please fix this for 6.8
I cannot fix this in 6.8 as it depends on 169353. Changing to "future" and removing the keyword.
Is the problem really in expanding (as stated in issue 169353)? The problem reported by Marian is just about selecting. I'd say wait cursor for expanding is ok, but not for selecting.
It is about expanding. When you select a file in projects the *other* explorer bellow (Navigator) changes its root node and tries to expand the root node to show you the methods, fields etc. BTW that's why I have pasted the stack trace to the comment which shows it clearly how it gets there (via TreeView.expandAll).
http://hg.netbeans.org/jet-main/rev/5ab7a270b5a0
Applied to CSL as well: http://hg.netbeans.org/jet-main/rev/43034a05eb5c
*** Issue 70708 has been marked as a duplicate of this issue. ***
v/c