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 142852 - [65cat] Location selector in New Groovy Class Wizard is wrong
Summary: [65cat] Location selector in New Groovy Class Wizard is wrong
Status: RESOLVED FIXED
Alias: None
Product: groovy
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-04 21:55 UTC by goeh
Modified: 2008-10-30 14:24 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 goeh 2008-08-04 21:55:53 UTC
[ BUILD # : 200808021401 ]
[ JDK VERSION : 1.6.0_06 ]

If you right-click on "Groovy Source Packages" and selects New > New
Groovy Class, the wizard comes up with a "Location" selector only
containing "Java Source Packages". If you click Finish, a groovy file
will be created in src/java.

The same also happens when you right-click on other folders, for
example grails-app/jobs (location for quartz scheduler jobs) and
selected New > Other > Groovy > New Groovy Class.

It's impossible to create new Groovy Classes (other than Domain,
Services, Controllers) in the right place with build 200808021401.
Comment 1 martin_adamek 2008-08-05 12:52:24 UTC
For Groovy Source Packages it is fixed in issue 142562. Other use-cases will be fixed soon. Anyway, according to bug priority guidelines, this is not a P1.
Comment 2 fmcypriano 2008-08-08 12:53:21 UTC
In my opinion the location options should allow me to choose all the directories of my project.

I need a new Url Mapping class, it should be saved under the configuration directory, but I can't choose any other
location except Groovy Source Packages or Java Source Packages.
Comment 3 martin_adamek 2008-08-12 16:07:29 UTC
Fixed.
http://hg.netbeans.org/main/raw-rev/d5845fd2f1d3
Comment 4 Quality Engineering 2008-08-14 15:48:56 UTC
Integrated into 'main-golden', available in build *200808141419* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/d5845fd2f1d3
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #142852: [65cat] Location selector in New Groovy Class Wizard is wrong
Comment 5 goeh 2008-08-20 22:41:31 UTC
It is still not possible to create Groovy Classes in grails-app/jobs folder. The jobs folder is not even visible in
project explorer anymore (build #200808201401)
The quartz plugin creates a folder called grails-app/jobs. The folder contains plain old Groovy classes that are
executed by the quartz scheduler.
You must switch to the Files tab to see the jobs, but it's not possible to create new Groovy Classes there using the
wizard because the location selector will not let you specify that location.
Comment 6 martin_adamek 2008-08-21 08:02:08 UTC
Can you please verify that you are not facing filesystem refresh problem from issue 144422 ? It should be pretty easy - restart IDE and try again.
Comment 7 goeh 2008-08-21 22:20:07 UTC
Restart did not help.
The grails-app/jobs folder was created 10 months ago when I started the project, so I don't think it's a refresh problem.
It's just not reachable from the project explorer.
Comment 8 martin_adamek 2008-08-22 09:15:47 UTC
OK, now I see where's the problem, we are not displaying non-standard folders under grails-app. We do so only under project root. I'll add to project view 
also all non-standard folders from grails-app.
Comment 9 martin_adamek 2008-08-22 13:17:52 UTC
Should be fixed.
http://hg.netbeans.org/main/rev/de462260c631
Comment 10 Quality Engineering 2008-08-23 05:19:03 UTC
Integrated into 'main-golden', available in build *200808230201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/de462260c631
User: Martin Adamek <martin_adamek@netbeans.org>
Log: #142852: [65cat] Location selector in New Groovy Class Wizard is wrong