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 43912 - Target chooser in New File wizard must check for existing file name
Summary: Target chooser in New File wizard must check for existing file name
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-27 10:50 UTC by Milan Kuchtiak
Modified: 2006-03-24 09:56 UTC (History)
0 users

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 Milan Kuchtiak 2004-05-27 10:50:47 UTC
You have this folder structure

src[folder]
  a[folder]
   b[folder]
    -A.xml

- open the XML wizard from "src/a" folder.
- write "src/a/b" to Folder text field
- write "A" to File Name text field

No error message appears.

When you finish the wizard A2.xml is created.

This is different behaviour than if you open the
XML wizard from "src/a/b" folder. In that case,
the error message for file duplicity is working.
Comment 1 Jesse Glick 2004-05-27 11:44:05 UTC
This particular example is probably influenced by the fact that the
XML Document template uses a custom wizard iterator. However it seems
the generic target chooser does not check this either; at least for
build.xml it did not do it for me. Need to check various cases.
Comment 2 Jiri Rechtacek 2004-05-27 14:40:11 UTC
fixed.

Checking in
projects/projectui/src/org/netbeans/modules/project/ui/SimpleTargetChooserPanel.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/SimpleTargetChooserPanel.java,v
 <--  SimpleTargetChooserPanel.java
new revision: 1.13; previous revision: 1.12
Comment 3 Marian Mirilovic 2005-12-20 15:46:18 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. Thanks in advance.