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.

Bug 167708 - Wait cursor shows while selecting file in projects view
Summary: Wait cursor shows while selecting file in projects view
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Strupl
: 70708 (view as bug list)
Depends on: 169353
  Show dependency tree
Reported: 2009-06-26 16:32 UTC by Marian Mirilovic
Modified: 2010-04-22 10:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Profiler snapshot (11.58 KB, application/octet-stream)
2009-06-26 16:33 UTC, Marian Mirilovic

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2009-06-26 16:32:37 UTC
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
Comment 1 Marian Mirilovic 2009-06-26 16:33:25 UTC
Created attachment 84060 [details]
Profiler snapshot
Comment 2 David Strupl 2009-07-28 15:30:25 UTC
This is the problematic stack trace where the busy cursor gets there:

        at java.awt.Component.setCursor(
        at org.openide.explorer.view.TreeView.doShowWaitCursor(
        at org.openide.explorer.view.TreeView.showWaitCursor(
        at org.openide.explorer.view.TreeView.prepareWaitCursor(
        at org.openide.explorer.view.TreeView.access$800(
        at org.openide.explorer.view.TreeView$TreePropertyListener.treeWillExpand(
        at javax.swing.JTree.fireTreeWillExpand(
        at javax.swing.JTree.setExpandedState(
        at javax.swing.JTree.expandPath(
        at javax.swing.JTree.expandRow(
        at org.openide.explorer.view.TreeView.expandAll(
        at java.awt.event.InvocationEvent.dispatch(
        at java.awt.EventQueue.dispatchEvent(
        at org.netbeans.core.TimableEventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
Comment 3 David Strupl 2009-07-28 15:44:50 UTC
Marking this as P3.
Comment 4 Marian Mirilovic 2009-07-29 13:09:20 UTC
David, P2/3 doesn't matter ... but please fix this for 6.8
Comment 5 David Strupl 2009-09-21 09:43:27 UTC
I cannot fix this in 6.8 as it depends on 169353. Changing to "future" and removing the keyword.
Comment 6 Tomas Pavek 2009-09-21 14:16:47 UTC
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.
Comment 7 David Strupl 2009-09-21 15:07:57 UTC
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).
Comment 8 David Strupl 2009-10-20 13:20:27 UTC
Comment 9 David Strupl 2009-10-20 13:31:49 UTC
Applied to CSL as well:
Comment 10 Marian Mirilovic 2009-10-22 15:00:09 UTC
*** Issue 70708 has been marked as a duplicate of this issue. ***
Comment 11 Marian Mirilovic 2010-04-22 10:40:41 UTC