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 192602 - [70cat] Moving Java files from one package to another collapses the project tree in Java webapp
Summary: [70cat] Moving Java files from one package to another collapses the project t...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Mac OS X
: P4 normal with 1 vote (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-28 18:44 UTC by host
Modified: 2016-07-07 08:56 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 host 2010-11-28 18:44:04 UTC
When I move a with a move from one Java package to another then the "Move class" window appears. When I click there now "Refactor" the class is correctly moved to the new location BUT the whole opened tree in the project window is collapsed.
Comment 1 Marian Mirilovic 2010-11-29 07:39:42 UTC
This is dup of already reported issue, I guess
Comment 2 Jan Becicka 2010-11-29 13:14:49 UTC
It works for me. Please provide exact steps to reproduce.
Comment 3 host 2010-11-29 13:24:38 UTC
I cannot reproduce this issue in a regular Java project either. BUT I can always reproduce this issue in the current Java Web Application project I am working in. In this project I only have one source folder in which I have moved classes from one subpackage to another. What happens is that the class is correctly moved but directly after that (after a short "flash") the whole project tree collapses.
Comment 4 host 2010-11-30 19:04:34 UTC
I forgot to mention one important aspect: The project I am having the described trouble with is under Subversion revision contol.

So I can reproduce the collapsing also always in the following way:
- I have moved a class from one package to another (and, of course, the tree collapses as described)
- I reopen the tree
- I do a "Revert Modifications..." from the Subversion menu
- The tree collapses again
Comment 5 David Konecny 2010-11-30 19:37:45 UTC
host, can you reproduce it also on Web Application project on plain local filesystem? I tried but I cannot.

Honza, Marian, are you aware of any fix in J2SE project which perhaps just was not transplanted to Web project?
Comment 6 Marian Mirilovic 2010-12-01 11:27:09 UTC
(In reply to comment #5)
> Honza, Marian, are you aware of any fix in J2SE project which perhaps just was
> not transplanted to Web project?

I have no idea, perhaps Honza ?
Comment 7 Jan Becicka 2010-12-01 14:26:22 UTC
I don't maintain J2SE projects.
Comment 8 David Konecny 2012-04-16 22:50:30 UTC
I cannot reproduce this on latest 7.2 dev build on Ubuntu. I tried it on a project from Subversion but everything works fine and nothing is collapsed.
Comment 9 host 2012-04-17 07:25:21 UTC
I have reopened the issue since I have just tested it on the latest 7.2 dev build and the problem still persists for me: I can reproduce it in the scenario where I have a web application that is under SVN versioning control.

In either the src and a test class tree, e.g. go onto a class in the tree, select it and copy it. Now paste the class into another package. The tree of the target package collapses up to the package (level) where you paste the class.
Comment 10 David Konecny 2012-04-17 20:23:08 UTC
Then the problem must be OSX specific and I cannot reproduce it on Ubuntu.
Comment 11 host 2012-04-19 11:26:28 UTC
It seems that you are right: I had the chance to try out the exact scenario on a Windows Server 2008 machine. ...and there the very same copy process works as expected without the collapsing of the tree.
Comment 12 Martin Balin 2016-07-07 08:56:31 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss