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 114799 - Default folder is empty for new XML file
Summary: Default folder is empty for new XML file
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on: 115499 116567
Blocks:
  Show dependency tree
 
Reported: 2007-09-05 17:47 UTC by tonybeckham
Modified: 2007-10-02 18:32 UTC (History)
0 users

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 tonybeckham 2007-09-05 17:47:24 UTC
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709050000) 
Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 
System: Mac OS X version 10.4.10 running on i386; MacRoman; en_US (nb)

Problem:
When creating a new XML document the folder field is empty so the new document does not appear in the projects view and
only under the file view.

This is true for any new XML type except the loan sample, purchase order sample, and new schema


Steps:
-Create a new project (java, web, bpel anything)
-Right click the project node in projects view
-select new->other->xml
-Choose a type other than the 2 samples or a new schema
-you will see that the folder field is blank so whatever you create will not be available in projects view only files view.
Comment 1 tonybeckham 2007-09-05 17:51:09 UTC
The default src folder actually is there for XSLT, BPEL module, and SQLapp.
Still, java app, web app and composite app have the blank default folder field. 
Comment 2 Samaresh Panda 2007-09-14 00:13:04 UTC
This is a generic problem. It doesn't happen on sample schemas because we have customized it. Ideally it should be taken
care of by the wizard framework. The wizard shouldn't let create files when the target folder is empty.

If they don't fix it, it needs to be fixed in all wizard extensions, which is bad. The same problem was raised with
sample schemas. See related issue: 98643. In any case, I'll file a bug on the wizard framework.
Comment 3 Samaresh Panda 2007-09-14 18:22:40 UTC
I kind of agree with the updates in 115499 and I don't really think this as a bug. I mean this is how it is and there is
no generic way to fix it. There was a rush to fix 98643 and we fixed it for sample schemas (just so that some tests
could be run) and I feel that we shouldn't have fixed that there as well, just to be consistent with everything else.

I'll leave it to the iteam to decide.
Comment 4 Samaresh Panda 2007-09-17 17:19:34 UTC
Marking the target milestone as 6.0, purely to mark the issue as evaluated.
Comment 5 Sonali Kochar 2007-10-02 18:32:38 UTC
The new XML wizard is working as designed. Please also see #116567

Changing it to enhancement.