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 120810 - Javascript wizard offers uncomfortable path for new .js
Summary: Javascript wizard offers uncomfortable path for new .js
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on: 204541
Blocks:
  Show dependency tree
 
Reported: 2007-11-01 14:29 UTC by Dan Kolar
Modified: 2011-11-01 19:58 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 Dan Kolar 2007-11-01 14:29:58 UTC
Product Version: NetBeans IDE Dev (Build 20071101073644)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)

1) Have web project opened
2) Invoke File -> New Javascript file

Path filed in Created File field creates file in project folder, but javascript file should be created under Web pages
folder, because in project folder could be accessed only via Files view and all web-related files are created inside Web
pages folder.
Comment 1 Petr Jiricka 2007-11-01 17:52:56 UTC
Agreed. This should behave in a similar manner as for HTML files, which are treated specially in web projects.
Unfortunately, no time to fix this for 6.0.
Comment 2 pslechta 2008-04-08 17:26:34 UTC
This fix may require refactoring: TargetChooserPanel may be generalized to be reused by other languages (JavaScript,
PHP, ...) and moved outside of web.core module...
Comment 3 Denis Anisimov 2009-11-09 00:58:07 UTC
changeset:   151216:a4f846a35f51
user:        Denis Anisimov <ads@netbeans.org>
date:        Sat Nov 07 13:05:54 2009 +0300
summary:     Fix for IZ#120810 - Javascript wizard offers uncomfortable path for new .js
Comment 4 Denis Anisimov 2009-11-09 02:23:22 UTC
Additional fix due not well done refactoring.
The common part of wizard panel is now placed into "ide" module "target.iterator".
It could be used within any module which need similar functionality with several 
SourceGroups ( result wizard could create file inside chosen SourceGroup ).
One needs to implement SPI classes for using this functionality.

This fix removes dependency from Web module which originally present before 
refactoring. Now result module should not have dependencies out the "ide" cluster.

changeset:   152577:b853dfce32b8
tag:         tip
user:        Denis Anisimov <ads@netbeans.org>
date:        Mon Nov 09 12:18:11 2009 +0300
summary:     Additional fix for #120810 - -  Javascript wizard offers uncomfortable path for new .js
Comment 5 Petr Jiricka 2009-11-10 08:39:48 UTC
Hi Denis, thanks - though when testing this, I fould two exceptions: 176420 and 176421. Could you please look at them?