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.
I have a General/Java Application project with two source roots for tests. The other source-root was named "src2" so I wanted to rename it to "test2". As it was not possible through the projects view, I switched to the files view and renamed it there. After switching back the projects view, the source root was not renamed but disappeared. I had to open the project's properties, remove "src2" from the source roots list and add "test2". I expected that, the files view in the IDE would work in sync with the projects view at least for such simple operations as rename.
A dupe of something else I think.
Oops, it's probably my back to me.
After discussion with Tomas, we decided to pass this issue to Jano to decide what's the right behavior. The problem is: 1) user created a project and specifies that the sources are in folder a 2) Then he goes and renames the a to b. ?) Should the definition of the project be automatically changed to contain sources in b? It may or may not be desirable. User may really want to change the project definition or the user may just want to store existing sources into b and copy new ones into a) I personally would vote for not to change things in the project definition when the files layout changes.
Ultimately it would be nice to have the refactoring UI integrate this properly, so that you could Ref->Rename the source root and have the project def change to match, after seeing a preview.
Overall I agree that it should work as Ondra described. OTOH, I think this is an enhancement of the current behavior --> enhancement.