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 207048 - Grails project doesn't support 'View Java Package As' option
Summary: Grails project doesn't support 'View Java Package As' option
Status: RESOLVED WORKSFORME
Alias: None
Product: groovy
Classification: Unclassified
Component: Grails (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 07:08 UTC by waynezhang
Modified: 2013-03-05 09:21 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 waynezhang 2012-01-09 07:08:48 UTC
Package layout of Grails/Groovy project doesn't respect 'View Java Package As' function. It always displayed Java packages as TREE layout, even it is set to LIST.

If Grails modules are not supported (controllers, services, domains classes, Groovy Source Packages ...), at least Java Source Packages should support this option.
Comment 1 Martin Janicek 2012-01-09 07:20:28 UTC
I've changed the view logic for Grails projects, so it uses package view layout for most of folders (including both Java sources and all Groovy source packages). It still doesn't respect 'View Java Package As' setting but the source of these problems (folders in tree view instead of package view) has been already fixed.
Comment 2 Martin Janicek 2012-01-09 07:21:34 UTC
I'm changing priority to P4, since the 'View Java Package As' setting problem is quite minor.
Comment 3 Rohan Ranade 2013-03-04 23:01:18 UTC
(In reply to comment #2)
> I'm changing priority to P4, since the 'View Java Package As' setting problem
> is quite minor.

I tested the grails project view by setting the view java packages option to tree, reduced list and list. In all cases, the view was adjusted as expected. Unless I am missing something in Martin's comment, I would suggest this bug be closed.

Tested on:
Product Version: NetBeans IDE Dev (Build 20130304-54fcea5b444b)
Java: 1.6.0_41; Java HotSpot(TM) 64-Bit Server VM 20.14-b01-445
Runtime: Java(TM) SE Runtime Environment 1.6.0_41-b02-445-11M4107
System: Mac OS X version 10.8.2 running on x86_64; MacRoman; en_US (nb)
Comment 4 Martin Janicek 2013-03-05 09:21:59 UTC
You are right Rohan. I don't know what I was talking about, everything seems to work now --> Closing as WORKSFORME
Thanks