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 175220 - projects view collapses folders
Summary: projects view collapses folders
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
: 177096 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-22 15:50 UTC by Filip Zamboj
Modified: 2010-01-25 06:50 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
an example of non wanted folder collapse (8.16 MB, video/x-msvideo)
2009-10-23 17:05 UTC, Filip Zamboj
Details
messages log (118.14 KB, text/plain)
2009-10-23 17:08 UTC, Filip Zamboj
Details
folder collapse (5.25 MB, video/x-msvideo)
2009-10-27 21:11 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-10-22 15:50:18 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200910212001)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01

projects view collapses all folders when 

a. adding new file to subfolder 
b. deleting file from subfolder 
c. copy&paste file from subfolder 

Moreover, it ends up with selection on pretty much different file than the one created. Project is versioned with
mercurial. 

It's very annoying
Comment 1 Stanislav Aubrecht 2009-10-23 11:37:41 UTC
can't reproduce with nb 091022, jdk 1.6.0_14, win vista

please provide exact steps to reproduce, thanks
Comment 2 Filip Zamboj 2009-10-23 16:59:50 UTC
sure, sorry ... 

I realized, I can't reproduce in so many cases as I reproduced before but I definitely reproduced when a module
activation is needed. But I am sure it happened even if module was activated already. I know ppisl reproduced as well,
so adding him on cc. 

I'll attach video where you can see what happened. I describe steps here anyway: 

1. open versioned project (i didn't try on not versioned project). I opened php.editor from netbeans. 
2. choose some subfolder
3. create a file for that is not a module activated. For unit tests in php.editor you need php files. 
4. your folders will be collapsed. They are collapsed all sometimes, sometimes only few ... 
Comment 3 Filip Zamboj 2009-10-23 17:05:10 UTC
Created attachment 89989 [details]
an example of non wanted folder collapse
Comment 4 Filip Zamboj 2009-10-23 17:08:18 UTC
Created attachment 89990 [details]
messages log
Comment 5 Petr Pisl 2009-10-26 11:28:57 UTC
I can confirm this behaviou as well. It's usually when I do copy a paste to the same folder and if I do this at the
first time, then the project view is collapsed. 
Comment 6 Filip Zamboj 2009-10-27 21:07:30 UTC
I will attach another example, that is reproducible. 

1. commit via svn 
2. delete something in subfolder 
Comment 7 Filip Zamboj 2009-10-27 21:11:39 UTC
Created attachment 90156 [details]
folder collapse
Comment 8 Filip Zamboj 2009-11-03 14:02:46 UTC
is this issue still incomplete for you? thanks
Comment 9 Antonin Nebuzelsky 2009-11-03 16:29:22 UTC
Tomasi, evaluate this issue from Explorer point of view and reassign to projects/ui if this is projects view specific.
Comment 10 Petr Pisl 2009-11-03 22:16:00 UTC
Today I have similar behavior, when I copy paste test file from php.editor/test/unit/data/testfiles/indent/ to the same
folder. 

To reproduce, open the php.editor module and browse the mentioned folder in the project view (Unit Test
Data/testfiles/indent). Expand indent folder in project view, scroll down and select a test file that is almost down. It
doesn't have to be the last one in the folder, but you shouldn't see the indent folder in the explorer. Copy the file
(CTRL+C) and scroll up and select the indent folder. Paste the file to the same folder. 

The behavior is different. Sometimes the project view is collapsed at all, sometimes the test folder is collapsed.
Sometimes the indent folder is still selected and sometimes the new pasted file is selected. Often it happens that all
files are selected after the paste.  

I can reproduce this with NB6.8 Beta. 
Comment 11 t_h 2009-11-09 08:36:16 UTC
Reproducible, more keys refreshed than necessary.
Comment 12 Jiri Skrivanek 2009-11-24 06:15:59 UTC
Fixed. Thanks to Petr Pisl for reproducible test case!
core-main #b149b7f1c4db
Comment 13 Jiri Skrivanek 2009-11-24 06:16:36 UTC
*** Bug 177096 has been marked as a duplicate of this bug. ***
Comment 14 Quality Engineering 2009-11-25 16:56:22 UTC
Integrated into 'main-golden', will be available in build *200911251400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b149b7f1c4db
User: Jiri Skrivanek <jskrivanek@netbeans.org>
Log: #175220 - Children keys represented by FolderChildrenPair must not be changed while node/data object is garbage collected. It means DataObjectPool.countRegistration(fo) must not be called when finalizing Item but only when node/data object is deleted/destroyed/changed.
Comment 15 Tomas Danek 2010-01-25 06:50:37 UTC
Filipe, can you take a look at this?
i was not able to reproduce collapsing, but not going to verify, since after pasting lot of files are selected (i spotted the same when i tried in 6.8)

tested in 

Product Version: NetBeans IDE Dev (Build 201001190201)
Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb)
Userdir: /Users/tomas/.netbeans/dev