Type Hierarchy across source folders [message #209356] |
Sat, 09 July 2005 00:06  |
Eclipse User |
|
|
|
Originally posted by: bbgdl-2003-.yahoo.com
I have a project with the source in several directories, e.g.
project/src/dao/com/community and project/test/dao/com/community
I'd like to open a Type Hierarchy on the package com.community and see
the classes that are in both project/src/dao/com/community and
project/test/dao/com/community.
Can I do this? Is there some limitation in the Hierarchy that prevents
this?
Thanks, Bruce
|
|
|
|
Re: Type Hierarchy across source folders [message #209418 is a reply to message #209402] |
Sat, 09 July 2005 23:53   |
Eclipse User |
|
|
|
Originally posted by: BruceBGordon.xxx.org
Communication is so hard (LOL). Let me try to be clearer. I want to see
all the types in (for example) project/src/dao/com/community and
project/test/dao/com/community in the Hierarchy view. I like viewing the
types hierarchically. So if there were 3 types in the first path, and 1 in
the second, then I'd like to see all 4 in the Hierarchy view. In my case
both paths have the same package, but what I really want is to be able to
arbitrarily choose the unit to display in the Hieararchy-be it Project,
one or more packages, or 1 or more types. Thanks, Bruce
Bruce Gordon wrote:
I have a project with the source in several directories, e.g.
project/src/dao/com/community and project/test/dao/com/community
I'd like to open a Type Hierarchy on the package com.community and see
the classes that are in both project/src/dao/com/community and
project/test/dao/com/community.
Can I do this? Is there some limitation in the Hierarchy that prevents
this?
Thanks, Bruce
Your question is a little confusing. You say that you want to open a
package in the Type Hierarchy. However, the Type Hierarchy if for
displaying types not packages.
My guess is you are talking about the Types view in the Java Browsing
Perspective. If this is the case, selecting the project instead of a
source folder in the Projects view will list all instances of packages in
the Packages view. Selecting the com.community package will then show all
classes in both source folders.
|
|
|
Re: Type Hierarchy across source folders [message #209464 is a reply to message #209418] |
Sun, 10 July 2005 12:01   |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
You question still doesn't make sense. The Hierarchy view displays a
Type and all of its super/sub classes. It doesn't display all Types in
a package, so you can't be talking about the hierarchy view. You are
going to use more detail to explain what you are doing/seeing and what
you want to see.
Bruce Gordon wrote:
> Communication is so hard (LOL). Let me try to be clearer. I want to see
> all the types in (for example) project/src/dao/com/community and
> project/test/dao/com/community in the Hierarchy view. I like viewing the
> types hierarchically. So if there were 3 types in the first path, and 1
> in the second, then I'd like to see all 4 in the Hierarchy view. In my
> case both paths have the same package, but what I really want is to be
> able to arbitrarily choose the unit to display in the Hieararchy-be it
> Project, one or more packages, or 1 or more types. Thanks, Bruce
>
> Bruce Gordon wrote:
>
> I have a project with the source in several directories, e.g.
> project/src/dao/com/community and project/test/dao/com/community
> I'd like to open a Type Hierarchy on the package com.community and
> see the classes that are in both project/src/dao/com/community and
> project/test/dao/com/community.
>
> Can I do this? Is there some limitation in the Hierarchy that
> prevents this?
>
> Thanks, Bruce
>
>
> Your question is a little confusing. You say that you want to open a
> package in the Type Hierarchy. However, the Type Hierarchy if for
> displaying types not packages.
>
> My guess is you are talking about the Types view in the Java Browsing
> Perspective. If this is the case, selecting the project instead of a
> source folder in the Projects view will list all instances of packages
> in the Packages view. Selecting the com.community package will then
> show all classes in both source folders.
>
|
|
|
|
|
Re: Type Hierarchy across source folders [message #209634 is a reply to message #209464] |
Mon, 11 July 2005 20:14   |
Eclipse User |
|
|
|
Originally posted by: BruceBGordon.xxx.org
David, you can indeed see the type hierarchy for an entire package if that
package resides in a single source directory. I'm viewing it as we speak
with multiple types displayed in the type hierarchy. E.g Object/a/b *and*
Object/x/y where x and a are peers-unrelated except for the common parent.
To do this simply select a package, open the context menuand and select
hierarchy. My problem is that this doesn't work if the package contains
types from multiple source paths. Regards, -Bruce
David Wegener wrote:
> You question still doesn't make sense. The Hierarchy view displays a
> Type and all of its super/sub classes. It doesn't display all Types in
> a package, so you can't be talking about the hierarchy view. You are
> going to use more detail to explain what you are doing/seeing and what
> you want to see.
> Bruce Gordon wrote:
>> Communication is so hard (LOL). Let me try to be clearer. I want to see
>> all the types in (for example) project/src/dao/com/community and
>> project/test/dao/com/community in the Hierarchy view. I like viewing the
>> types hierarchically. So if there were 3 types in the first path, and 1
>> in the second, then I'd like to see all 4 in the Hierarchy view. In my
>> case both paths have the same package, but what I really want is to be
>> able to arbitrarily choose the unit to display in the Hieararchy-be it
>> Project, one or more packages, or 1 or more types. Thanks, Bruce
>>
>> Bruce Gordon wrote:
>>
>> I have a project with the source in several directories, e.g.
>> project/src/dao/com/community and project/test/dao/com/community
>> I'd like to open a Type Hierarchy on the package com.community and
>> see the classes that are in both project/src/dao/com/community and
>> project/test/dao/com/community.
>>
>> Can I do this? Is there some limitation in the Hierarchy that
>> prevents this?
>>
>> Thanks, Bruce
>>
>>
>> Your question is a little confusing. You say that you want to open a
>> package in the Type Hierarchy. However, the Type Hierarchy if for
>> displaying types not packages.
>>
>> My guess is you are talking about the Types view in the Java Browsing
>> Perspective. If this is the case, selecting the project instead of a
>> source folder in the Projects view will list all instances of packages
>> in the Packages view. Selecting the com.community package will then
>> show all classes in both source folders.
>>
|
|
|
|
|
Re: Type Hierarchy across source folders [message #209760 is a reply to message #209753] |
Tue, 12 July 2005 15:21  |
Eclipse User |
|
|
|
Bruce Gordon wrote:
> Thanks Markus. This is news to me since I rarely used the
> PackageExplorer. From the JavaBrowsing perspective the hierarchy option
> is disabled for a package with source in 2 folders. Your technique
> worked. Thanks again, -Bruce.
> (BTW, Do you think this is a bug that should be reported?)
If you would like to see this fixed, please file a bug report. There's no
guarantee that it will be implemented, but it should not be too difficult.
Markus
BTW: another workaround is to select only one source folder in the Projects
view and then open the type hierarchy on the (non-combined) package from the
Packages view.
|
|
|
Powered by
FUDForum. Page generated in 0.16511 seconds