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 32180 - Parent node not expanded when create via wizard
Summary: Parent node not expanded when create via wizard
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Explorer (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: RANDOM, REGRESSION
Depends on:
Blocks:
 
Reported: 2003-03-21 01:09 UTC by ssffleming
Modified: 2008-12-23 11:35 UTC (History)
2 users (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 ssffleming 2003-03-21 01:09:40 UTC
This is a very recent regression seen in S1S.
Testing using S1S build 030319 on windows, JDK 1.4.1

Steps to reproduce:

1.  Install S1S
2.  Delete any existing user dir.
3.  Start IDE
4.  Mount a few jars
5.  Mount a directory
6.  Mount another directory with a sub folder
7.  Select the folder
8.  Context menu New, All Templates...
9.  Select template J2EE/EJB module
10.  In wizard Next, Finish

You see the folder will not be automatically expanded
as it should be.  Expanding the folder shows the module
was created correctly.

If you do this a second time the folder is expanded.

This bug is P2 because automated tests rely on correct
behavior and are not easily updated.  Also users will
be confused by the unexpected behavior.
Comment 1 Jiri Rechtacek 2003-03-21 09:46:22 UTC
It's reproducible in Mar21 dev build.
It seems necessary for reproduction:
1. first start (clean userdir)
2. mount new local filesystem
3. select a subfolder
4. select some template of object which won't open in editor (i.e. Web
Module Group)
Note: it's seen only on first use this template.

I'll investigate more.

Because of it doesn't block IDE usability nor persist with multiple
use, it doesn't seem as showstopper for me, will be solved in 4.0
Comment 2 Marian Mirilovic 2003-03-21 09:54:46 UTC
I still cannot reproduce it. 
Comment 3 Jiri Rechtacek 2003-03-21 13:43:25 UTC
Investigated: there is a timing problem in processing
NbMainExplorer.operationCreateFromTemplate(). If a folder contain many
unrecognized files, a finding returns null ==> no node is selected. I
don't think is a regression, because its code is stable for long time.
Comment 4 Jiri Rechtacek 2003-03-21 14:59:21 UTC
Steve, I reverting my task words. It's a regression even in stable
code :-)
Description: NbMainExplorer listens on data object operation, posts a
task on each one event. If a previous task is waiting still, then it's
canceled. Why is appears just now? Because, the Recent list was added
to NewTemplateAction, there is created a shadow (2nd operation event,
which cancels 1st event, create object from template). Why random?
Because event's processing is depended on count objects in folder.
Fix: the events on hidden are ignored, because it totally useless
selected nodes on hidden filesystem.
Steve, BIG thanks for rapidly issue detection. I'm going to fix in
main trunk and in release35 also.
Comment 5 Jiri Rechtacek 2003-03-21 15:06:44 UTC
fixed in maintrunk, will be fixed in release35
Comment 6 Jiri Rechtacek 2003-03-21 16:50:57 UTC
fix merged to release35 branch.
Comment 7 Marian Mirilovic 2003-04-03 13:12:27 UTC
The right test template is Webmodule Group.

verified in [nb3.5](200304022350)