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 53769 - a source root disappears from Projects view after renaming through the files-view
Summary: a source root disappears from Projects view after renaming through the files-...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 16:17 UTC by Ondrej Rypacek
Modified: 2010-08-09 16:12 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Rypacek 2005-01-20 16:17:30 UTC
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.
Comment 1 Petr Hrebejk 2005-01-20 16:56:17 UTC
A dupe of something else I think.
Comment 2 Petr Hrebejk 2005-01-20 16:57:19 UTC
Oops, it's probably my back to me.
Comment 3 Petr Hrebejk 2005-01-21 17:30:35 UTC
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.  



Comment 4 Jesse Glick 2005-01-22 21:31:52 UTC
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.
Comment 5 jrojcek 2005-02-28 14:29:12 UTC
Overall I agree that it should work as Ondra described. OTOH, I think this is an 
enhancement of the current behavior --> enhancement.