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 31645 - Create Folder function at "Target Location" panel works badly in certain cases
Summary: Create Folder function at "Target Location" panel works badly in certain cases
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 10:56 UTC by Alexei Mokeev
Modified: 2008-12-22 17:51 UTC (History)
1 user (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 Alexei Mokeev 2003-03-04 10:56:50 UTC
Steps to reproduce:
1)Start NetBeans with clear user dir(So you will
have premounted <sampledir>/examples
2)Mount some web module, select WEB-INF/classes,
press Ctrl+N
3)Select JSP&Servlets->Servlet and press "Next" button
4)Select WEB-INF/classes in "Target Location" tree
5)In "Folder" textfield type "exams" and notice,
that <sampledir>/examples is selected in "Target
Location" tree
6)Select WEB-INF/classes again and notice, that
"Folder" textfiled is clear. 
So there is no way to create package in such
situations(Only via File->New->Java Package).

Such situations are often, because only partial
match required.
(Reproduced also on other Java templates) 


I think, that "Folder" textfield should not be
cleared at step 6.

Well reproduced with 200303030100 NetBeans dev build.
Comment 1 Jiri Rechtacek 2003-03-05 09:20:02 UTC
I think it's not a bug. The name of folder is constructed with
<parent_folder>/<folder>/.... You can type WEB-INF/classes/exams and
invoke Create. It works for me.
Comment 2 Alexei Mokeev 2003-03-05 10:15:35 UTC
It is just workaround and nothing more.
Why I should type full path instead of new folder name ?

And this workaround do not work if you have 2 web modules.
The WEB-INF of first web module is always preferred.
Reopened.
Comment 3 Jiri Rechtacek 2003-03-05 10:35:04 UTC
No, it's not workaround it's as designed. The field "Folder" describes
the whole name of folder from the filesystem's root to last component
of folder, e.g. examples/texteditor/aaa/bbb/ccc... It's seen when
selecting folders in tree. It you think it's a bad design then file
enhancement/defect against core/property editors (because
DataFolderEditor is used in Template chooser panel). Sure attach UI
keyword to this issue.
Comment 4 Alexei Mokeev 2003-03-05 10:40:55 UTC
Well.
1)<wm>:WEB-INF/classes is the filesystem's root in case of web modules.
Reopened.
Comment 5 Jiri Rechtacek 2003-03-05 12:59:20 UTC
Aha, I see where a problem is. Thanks for explanations. I'll try solve
it ASAP the best in nb3.5 if the time allows :)
Comment 6 Jiri Rechtacek 2003-03-18 14:31:32 UTC
fixed in main trunk. I would like to see it fixed in release35 if the
rules allow.
It's only hotfix which allows create a subfolder direct under root, if
a name of folder is already used by another folder.
In general. there is a badly design of DataFolderEditor, the
completely  synchronization of folder's textfield and tree makes
impossible creating new folders if its name is already used. I'm going
to file a task for ui spec of this editor, it should be newly
implement in next release.
Comment 7 Marian Mirilovic 2003-03-19 08:51:11 UTC
I agree with you Jirka, please fix it in release35 branch.
Comment 8 _ ttran 2003-03-19 16:42:00 UTC
Need to be fixed in release35 -> P1
Comment 9 Jiri Rechtacek 2003-03-19 17:06:22 UTC
fixed in release35 branch
Comment 10 Marian Mirilovic 2003-04-02 13:24:33 UTC
verified in [nb3.5](200304012350)