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 49675 - UI unresponsive when source packages are expanded
Summary: UI unresponsive when source packages are expanded
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords: PERFORMANCE
Depends on: 29828
Blocks: 41535
  Show dependency tree
 
Reported: 2004-09-29 10:17 UTC by navneet
Modified: 2006-06-03 23:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description navneet 2004-09-29 10:17:16 UTC
I have a Web project which I have created using
sources on a remote network mapped drive.

There are about 4500 files that are compiles when
i run the javac ant task.

When I expand the source node in the project, the
UI does not repaint itself for atleast 10-15 minutes.

I would expect it to atleast show me a status
saying that it is parsing the source files or
waiting to do something.
Comment 1 Petr Hrebejk 2004-09-29 10:29:47 UTC
Sorry, if the network is slow then loading the fileobjects /
dataobjects takes long. I can't do much with it. 
The only possibility is to show wait cursor or wait node during
loading the files. 
Comment 2 navneet 2004-09-29 10:33:19 UTC
The network is not slow. Its Netbeans thats reading all the files
before it responds.

I would expect atleast a dialog/message status telling me that the IDE
is trying to load read the directories.

Currently it just blanks out and looks as if the application is "hung"

Also, the view where all the files are shown in a flat view is
probably causing this for me. Can I change that ?
Comment 3 Petr Hrebejk 2004-09-29 10:55:42 UTC
Just to clarify. The flatened package view (i.e. the Projects Tab) is
slower than the tree view of files (Files Tab) because it has to
traverse the whole tree to create the list. 

1) Form the bug report I'm not sure where you are experiencing the
problem. If in the Project Tab then you reported that agains right
module. If in both you will prbably have to file another issue against
datasystems.

2) How long does it take if the sorces are on local disk? Nothing
agains your network, but networks are generaly slower than local disk
access.

3) Don't expect me adding any progres dialogs. As I said the only
thing I might do is to ad a wait node and/or wait cursor.
Comment 4 navneet 2004-09-29 11:07:59 UTC
Yes I am talking of the flattened view ( the one with the package
names on it ).

On the local disk this takes about half the time, but then even that
is too much for my project :(

Too sad you can't add a dialog or status somewhere and re-paint the
GUI atleast. Currently the window just shows a title bar and nothing
else for the next 10 minutes.
Comment 5 Petr Hrebejk 2004-09-29 11:16:47 UTC
I of course meant that the UI should be responsive (repainted) when
showing wait cursor. I just mean that a dialog is a bit too
heavyweight for people who do not have such a large source trees.
Comment 6 navneet 2004-09-29 11:20:06 UTC
Thats should be good. Thanx.
Comment 7 Jesse Glick 2004-09-29 11:56:59 UTC
PackageViewChildren ought to compute package nodes asynchronously and
display them as they are found, perhaps with some kind of intermediate
notification of progress. Issue #29828 required for it to really work
properly.

However the reporter should seriously reconsider using a slow network
drive to store project source files, if at all possible. Far better to
use a local disk, and share sources using version control.
Comment 8 navneet 2004-09-29 12:38:44 UTC
Moving to another drive is not an option here.
Comment 9 Petr Hrebejk 2004-10-12 11:45:58 UTC
Checking in
java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java;
/cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v
 <--  PackageViewChildren.javanew revision: 1.45; previous revision: 1.44
done