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 27395 - Should be able to add files to project without specifying the purpose, add the directory the user intended to add
Summary: Should be able to add files to project without specifying the purpose, add th...
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-17 18:12 UTC by Petr Jiricka
Modified: 2003-12-11 14:14 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 Petr Jiricka 2002-09-17 18:12:18 UTC
When adding a directory to the project using the Add To 
Project action, wizard asks how the files in this 
directory should be used. If the user does not select 
anything, the Finish button is not enabled.

This means that the user is not allowed to put things in 
project which are just "files" (e.g. documentation files).

I believe the correct thing to do would be to add these 
files, and only show them in the physical view.


Secondly, if the user selects Java sources, and then adds 
one of the Java Sources Roots offered by the next step of 
the wizard, then this sources root will be added, but not 
the original directory that the user selected for 
addition. 
So a completely different directory than originally 
requested will be added, which is a significant usability 
issue.
Comment 1 Petr Jiricka 2002-10-17 09:27:14 UTC
More data on this. Citing an e-mail by Dirk Ruiz addresed 
to Pavel B., Martin R., Hanz J., Arseniy K. and myself 
(subject Proposed Cuts, dated Oct 16):

"If the file has been added to the project via the "Add 
Files/Folders" menu item,
then it will be seen under the Sources node.  (This is the 
case where there is
one project home, and the user had subdirectories that 
haven't been added to the
project.  For example, maybe she copied them in using cp -
r.)  So, I don't see
why we need organizers to do this."

This suggests that all files that the user adds should be 
visible under the Sources node after they have been added, 
which is currently not the case.

Comment 2 Vitezslav Stejskal 2002-11-28 17:48:28 UTC
This is almost done (according to the uispec), the only missing part
is using contents recognizers for chosen folders. This will be added soon.
Comment 3 Vitezslav Stejskal 2002-12-10 14:07:05 UTC
The recognizers are now used as a part of default add-to-project
wizard provided by infrastructure.
Comment 4 Jan Becicka 2003-08-21 14:54:57 UTC
Verified
Comment 5 Jan Becicka 2003-11-25 14:22:37 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.