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 40152 - Cannot expand newly created subfolder with KB
Summary: Cannot expand newly created subfolder with KB
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: A11Y, RANDOM, REGRESSION
: 48613 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-17 00:00 UTC by Jesse Glick
Modified: 2008-12-22 17:12 UTC (History)
0 users

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 Jesse Glick 2004-02-17 00:00:11 UTC
In NB 3.5.1, select sampledir root, press Ctrl-N,
choose Folder, type "foo/bar/baz", Finish. "foo"
and "bar" folders are expanded, "baz" folder is
selected, all is well.

In a dev build, I try the same. First, "foo" is
not expanded or selected - maybe a bug, but OK.
However when I move the selection with the KB to
"foo" and press Right to expand it, nothing
happens. If I click on the expand handle once,
nothing happens; clicking again expands it (and
"bar" too), showing "baz". After that, it responds
normally.
Comment 1 Jiri Rechtacek 2004-02-22 10:06:48 UTC
It have to be investigated what's wrong and fixed in 3.6, I add a
label STARTED to don't be left in 3.6.
Comment 2 Jesse Glick 2004-02-22 20:39:28 UTC
Can you reproduce it too?
Comment 3 Jiri Rechtacek 2004-02-22 21:06:11 UTC
Yes, I can, it's pretty easy. I'm going to increase the priority if
needed.
Comment 4 Jiri Rechtacek 2004-02-26 10:26:06 UTC
Evaluation: JTree supposes a node is expanded => does not expand node
(because is "expanded"). If you collapse node and expand again it
works. A problem is in TreeView.treeExpanded where post and cancel RP
task.
Comment 5 Jiri Rechtacek 2004-04-23 10:46:11 UTC
Assigned to new owner.
Comment 6 Jesse Glick 2004-07-23 00:42:37 UTC
Observed in 040722 (1.5.0 b58) in Files tab.
Comment 7 Jesse Glick 2004-10-12 20:27:06 UTC
Another issue which I think is the same:

041011 custom, JDK 1.5.0. Had nbbuild/javadoctools/apichanges.xsl open
in the editor. Pressed C-S-3. Favorites tab has nb_all as a favorite
dir, but nothing was expanded.

If I click on the expand handle for nb_all, nothing happens. Click
again and it expands - now showing the full path to apichanges.xsl
(and now C-S-3 works).
Comment 8 Petr Nejedly 2004-10-13 15:22:16 UTC
Reproduced in latest dev. 
Reproducible only when invoking "New" on top-level node (e.g. project
node in the Files view), never on the src node.
Comment 9 Petr Nejedly 2004-10-14 09:42:57 UTC
In fact, it is random, but likely enough to reproduce.
The problem is timing, sometimes the expand request comes before
visualizers manage to notify the addition.
Comment 10 Petr Nejedly 2004-10-15 15:24:07 UTC
openide/src/org/openide/explorer/view/TreeView.java,v1.175
openide/src/org/openide/explorer/view/VisualizerNode.java,v1.45
Comment 11 Jesse Glick 2004-10-15 19:56:04 UTC
*** Issue 48613 has been marked as a duplicate of this issue. ***
Comment 12 Tomas Danek 2005-07-14 18:28:23 UTC
this bug seems to be out of date, no such problem in 4.2 latest dev, verifying