Flattened Packages in Scope View versus Project view

I really like the Scope Views that 6.0 is introducing. One question I have though is when in a scoped view, when you have "flatten packages" turned on, why is the full path shown rather then the package. For example in Project view I would see:

com.foo
com.foo.bar

When in a scoped view I see the file structure:

/src/java/com/foo
/src/java/com/foo/bar

(You can also see the attached screen shots.)

I personally find the flatten packages as shown in the Project view much better. I tried creating a custom view, where I see there is an option to "Show file structure" or not. In the settings preview, with it turned on, I am seeing the file structure (/src/java/com/foo), and when I turn this off, it shows packages (com.foo). But when I exit and actually use the view, I am getting the file structure even though I created it with "show file structure" turned off. Is this a bug? Also, are the built-in/default scope views editable? I did not see any place to so such.



Attachment(s):
flattenedPackagesInScopeView.png
2 comments

Hello,

I really like the Scope Views that 6.0 is introducing. One question I
have though is when in a scoped view, when you have "flatten packages"
turned on, why is the full path shown rather then the package. For
example in Project view I would see:

com.foo
com.foo.bar
When in a scoped view I see the file structure:

/src/java/com/foo
/src/java/com/foo/bar
(You can also see the attached screen shots.)


Scopes View doesn't distinguish any content roots etc that's why it doesn't
exclude src from "flattening". Request JIRA please? ;)

I personally find the flatten packages as shown in the Project view
much better. I tried creating a custom view, where I see there is an
option to "Show file structure" or not. In the settings preview, with
it turned on, I am seeing the file structure (/src/java/com/foo), and
when I turn this off, it shows packages (com.foo). But when I exit and
actually use the view, I am getting the file structure even though I
created it with "show file structure" turned off. Is this a bug?


Scopes View works with files only. It doesn't 'know' about packages etc.
We've introduce it to show e.g. jsp files. Without 'file structure on' you
would see no jsps at all or all jsps in default pakage. It is not convenient
...

>Also,

are the built-in/default scope views editable? I did not see any place
to so such.


They are indeed not modifiable.

Thank you.




0

Hi Anna,

Thanks for your reply.

Scopes View doesn't distinguish any content roots etc
that's why it doesn't exclude src from "flattening".
Request JIRA please? ;)


I have done so: http://www.jetbrains.net/jira/browse/IDEA-9578

Thank you.

0

Please sign in to leave a comment.