Type hierarchy window

Is it correct that the Type Hierarchy Window only shows supertypes of
the selected class? I.e. if place the cursor on a class and type
Ctrl-Alt-H, the window shows me this type and all its ancestors, but not
the descendants of this class? I am looking for a way to see the
complete hierarchy with all descendants of a given base class.

Thanks,
Andreas

11 comments
Comment actions Permalink

Hello Andreas,

no, that's not correct (this feature would nearly useless if this were the
case). There are
toggle buttons 'Supertypes hierarchy' and 'Subtypes hierarchy' that control
what
part of the hierarchy, ancestors or descendants of a given type, the window
shows.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is it correct that the Type Hierarchy Window only shows supertypes of
the selected class? I.e. if place the cursor on a class and type
Ctrl-Alt-H, the window shows me this type and all its ancestors, but
not the descendants of this class? I am looking for a way to see the
complete hierarchy with all descendants of a given base class.

Thanks,
Andreas



0
Comment actions Permalink

Hello Dmitry,

It does not seem to work for me...

Example:
public class A {}
public class B : A { }
public class C : B { }
public class D : C { }

If I place the cursor on B and type Ctrl-Alt-H, the Window
shows me:
Object
...A
......B

If I click the 'Subtypes Hierarchy' button, there is only
one line with B.

If I click the 'Supertypes Hierarchy' button, there is the
hierarchy reversed:
B
...A
......Object

There is nothing I can click to see classes C and D.

Best regards,
Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

Hello Andreas,

no, that's not correct (this feature would nearly useless if this were
the case). There are
toggle buttons 'Supertypes hierarchy' and 'Subtypes hierarchy' that
control what
part of the hierarchy, ancestors or descendants of a given type, the
window shows.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Is it correct that the Type Hierarchy Window only shows supertypes of
>> the selected class? I.e. if place the cursor on a class and type
>> Ctrl-Alt-H, the window shows me this type and all its ancestors, but
>> not the descendants of this class? I am looking for a way to see the
>> complete hierarchy with all descendants of a given base class.
>>
>> Thanks,
>> Andreas



0
Comment actions Permalink

Andreas, I use VS 2003, Build 248 (RC3), and tried this problem with a command prompt project, I copied and pasted the example, and I see the entire heirarchy, although I do have to expand the tree to see it... by default I get all the superclasses, but only the next decendant, unless I click the plus to expand the node, or click "Expand all"

So it may be something with your particular installation... hope this helps

Ciao

0
Comment actions Permalink

Hi Chadwick,

This is really interesting!
I use VS 2005. If I start a fresh command line project, it works.
It seems to be with two of of my class library projects in my solution
where the type hierarchy window does not work properly while it
works with the other projects. I have not been able to isolate the
constructs that cause the problem. It does not work either when
I place my example in a separate namespace within this library.

Best regards,
Andreas

Chadwick Posey schrieb:

Andreas, I use VS 2003, Build 248 (RC3), and tried this problem with a command prompt project, I copied and pasted the example, and I see the entire heirarchy, although I do have to expand the tree to see it... by default I get all the superclasses, but only the next decendant, unless I click the plus to expand the node, or click "Expand all"

So it may be something with your particular installation... hope this helps

Ciao

0
Comment actions Permalink

Hello Chadwick,

that you have to expand nodes in order to view the hierarchy is by design.
The rationale is that
finding all descendants of a type may be time consuming (unlike finding all
supertypes), so discovering
the entire hierarchy at the moment you invoke this feature would delay displaying
the results.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

... although I do have to expand the tree to see it...
by default I get all the superclasses, but only the next decendant,
unless I click the plus to expand the node, or click "Expand all"



0
Comment actions Permalink

Hello Andreas,

could you please post a screenshot illustrating the issue? Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi Chadwick,

This is really interesting!
I use VS 2005. If I start a fresh command line project, it works.
It seems to be with two of of my class library projects in my solution
where the type hierarchy window does not work properly while it
works with the other projects. I have not been able to isolate the
constructs that cause the problem. It does not work either when
I place my example in a separate namespace within this library.
Best regards,
Andreas
Chadwick Posey schrieb:

>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem with
>> a command prompt project, I copied and pasted the example, and I see
>> the entire heirarchy, although I do have to expand the tree to see
>> it... by default I get all the superclasses, but only the next
>> decendant, unless I click the plus to expand the node, or click
>> "Expand all"
>>
>> So it may be something with your particular installation... hope this
>> helps
>>
>> Ciao
>>


0
Comment actions Permalink

Hallo Dmitry,

I am not sure if this newsgroups works with pictures,
so in case you can't see it, here a description.

I am using the previous example:
public class A {}
public class B : A { }
public class C : B { }
public class D : C { }

If I insert that in two of my class library projects,
no matter where and in what namespace, close and
reopen the solution and place the cursor on B and
type Ctrl-Alt-H, the Window shows me:
Object
...-A
......B

If I insert the example in the main project or on the
other class libraries, the type hierarchy window shows
Object
...-A
......-B
.........+C

I found out that the problem shows up after closing and
reopening the solution. After an 'unload project' and
'reload project' it works correctly.

There might be a connection to something we had before:
The two projects causing troubles are placed in a
solution folder.

Andreas


Dmitry Shaporenkov (JetBrains) schrieb:

Hello Andreas,

could you please post a screenshot illustrating the issue? Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Hi Chadwick,
>>
>> This is really interesting!
>> I use VS 2005. If I start a fresh command line project, it works.
>> It seems to be with two of of my class library projects in my solution
>> where the type hierarchy window does not work properly while it
>> works with the other projects. I have not been able to isolate the
>> constructs that cause the problem. It does not work either when
>> I place my example in a separate namespace within this library.
>> Best regards,
>> Andreas
>> Chadwick Posey schrieb:
>>
>>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem with
>>> a command prompt project, I copied and pasted the example, and I see
>>> the entire heirarchy, although I do have to expand the tree to see
>>> it... by default I get all the superclasses, but only the next
>>> decendant, unless I click the plus to expand the node, or click
>>> "Expand all"
>>>
>>> So it may be something with your particular installation... hope this
>>> helps
>>>
>>> Ciao
>>>




0
Comment actions Permalink

Hello Andreas,

thanks for the picture, I can see it. I tried to check the hypothesis with
solution folders,
but has failed so far - even if I try to paste your code into a project under
a solution folder,
the Type Hierarchy looks OK for me.

Could you please tell us if Go To Inheritor (Ctrl-Alt-B) works on that class
where Type Hierarchy is broken?
This would help us to further investigate if something gets wrong with inheritors
search in general or
Type Hierarchy in particular. Thanks in advance.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hallo Dmitry,

I am not sure if this newsgroups works with pictures, so in case you
can't see it, here a description.

I am using the previous example:
public class A {}
public class B : A { }
public class C : B { }
public class D : C { }
If I insert that in two of my class library projects,
no matter where and in what namespace, close and
reopen the solution and place the cursor on B and
type Ctrl-Alt-H, the Window shows me:
Object
...-A
......B
If I insert the example in the main project or on the
other class libraries, the type hierarchy window shows
Object
...-A
......-B
.........+C
I found out that the problem shows up after closing and reopening the
solution. After an 'unload project' and 'reload project' it works
correctly.

There might be a connection to something we had before: The two
projects causing troubles are placed in a solution folder.

Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

>> Hello Andreas,
>>
>> could you please post a screenshot illustrating the issue? Thanks.
>>
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Hi Chadwick,
>>>
>>> This is really interesting!
>>> I use VS 2005. If I start a fresh command line project, it works.
>>> It seems to be with two of of my class library projects in my
>>> solution
>>> where the type hierarchy window does not work properly while it
>>> works with the other projects. I have not been able to isolate the
>>> constructs that cause the problem. It does not work either when
>>> I place my example in a separate namespace within this library.
>>> Best regards,
>>> Andreas
>>> Chadwick Posey schrieb:
>>>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem
>>>> with a command prompt project, I copied and pasted the example, and
>>>> I see the entire heirarchy, although I do have to expand the tree
>>>> to see it... by default I get all the superclasses, but only the
>>>> next decendant, unless I click the plus to expand the node, or
>>>> click "Expand all"
>>>>
>>>> So it may be something with your particular installation... hope
>>>> this helps
>>>>
>>>> Ciao
>>>>


0
Comment actions Permalink

Hello Dmitry,

Ctrl-Alt-B works.

I am sending you a solution that produces the problem
in a separate mail.

Best regards,
Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

Hello Andreas,

thanks for the picture, I can see it. I tried to check the hypothesis
with solution folders,
but has failed so far - even if I try to paste your code into a project
under a solution folder,
the Type Hierarchy looks OK for me.
Could you please tell us if Go To Inheritor (Ctrl-Alt-B) works on that
class where Type Hierarchy is broken?
This would help us to further investigate if something gets wrong with
inheritors search in general or
Type Hierarchy in particular. Thanks in advance.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Hallo Dmitry,
>>
>> I am not sure if this newsgroups works with pictures, so in case you
>> can't see it, here a description.
>>
>> I am using the previous example:
>> public class A {}
>> public class B : A { }
>> public class C : B { }
>> public class D : C { }
>> If I insert that in two of my class library projects,
>> no matter where and in what namespace, close and
>> reopen the solution and place the cursor on B and
>> type Ctrl-Alt-H, the Window shows me:
>> Object
>> ...-A
>> ......B
>> If I insert the example in the main project or on the
>> other class libraries, the type hierarchy window shows
>> Object
>> ...-A
>> ......-B
>> .........+C
>> I found out that the problem shows up after closing and reopening the
>> solution. After an 'unload project' and 'reload project' it works
>> correctly.
>>
>> There might be a connection to something we had before: The two
>> projects causing troubles are placed in a solution folder.
>>
>> Andreas
>>
>> Dmitry Shaporenkov (JetBrains) schrieb:
>>
>>> Hello Andreas,
>>>
>>> could you please post a screenshot illustrating the issue? Thanks.
>>>
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> Hi Chadwick,
>>>>
>>>> This is really interesting!
>>>> I use VS 2005. If I start a fresh command line project, it works.
>>>> It seems to be with two of of my class library projects in my
>>>> solution
>>>> where the type hierarchy window does not work properly while it
>>>> works with the other projects. I have not been able to isolate the
>>>> constructs that cause the problem. It does not work either when
>>>> I place my example in a separate namespace within this library.
>>>> Best regards,
>>>> Andreas
>>>> Chadwick Posey schrieb:
>>>>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem
>>>>> with a command prompt project, I copied and pasted the example, and
>>>>> I see the entire heirarchy, although I do have to expand the tree
>>>>> to see it... by default I get all the superclasses, but only the
>>>>> next decendant, unless I click the plus to expand the node, or
>>>>> click "Expand all"
>>>>>
>>>>> So it may be something with your particular installation... hope
>>>>> this helps
>>>>>
>>>>> Ciao
>>>>>


0
Comment actions Permalink

Hello Dmitry,

The mail came back. Can you give me
directions how I can send you the solution?

Thanks,
Andreas

Andreas Hofer schrieb:

Hello Dmitry,

Ctrl-Alt-B works.

I am sending you a solution that produces the problem
in a separate mail.

Best regards,
Andreas

Dmitry Shaporenkov (JetBrains) schrieb:

>> Hello Andreas,
>>
>> thanks for the picture, I can see it. I tried to check the hypothesis
>> with solution folders,
>> but has failed so far - even if I try to paste your code into a project
>> under a solution folder,
>> the Type Hierarchy looks OK for me.
>> Could you please tell us if Go To Inheritor (Ctrl-Alt-B) works on that
>> class where Type Hierarchy is broken?
>> This would help us to further investigate if something gets wrong with
>> inheritors search in general or
>> Type Hierarchy in particular. Thanks in advance.
>>
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>
>>> Hallo Dmitry,
>>>
>>> I am not sure if this newsgroups works with pictures, so in case you
>>> can't see it, here a description.
>>>
>>> I am using the previous example:
>>> public class A {}
>>> public class B : A { }
>>> public class C : B { }
>>> public class D : C { }
>>> If I insert that in two of my class library projects,
>>> no matter where and in what namespace, close and
>>> reopen the solution and place the cursor on B and
>>> type Ctrl-Alt-H, the Window shows me:
>>> Object
>>> ...-A
>>> ......B
>>> If I insert the example in the main project or on the
>>> other class libraries, the type hierarchy window shows
>>> Object
>>> ...-A
>>> ......-B
>>> .........+C
>>> I found out that the problem shows up after closing and reopening the
>>> solution. After an 'unload project' and 'reload project' it works
>>> correctly.
>>>
>>> There might be a connection to something we had before: The two
>>> projects causing troubles are placed in a solution folder.
>>>
>>> Andreas
>>>
>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>
>>>> Hello Andreas,
>>>>
>>>> could you please post a screenshot illustrating the issue? Thanks.
>>>>
>>>> Regards,
>>>> Dmitry Shaporenkov
>>>> JetBrains, Inc
>>>> http://www.jetbrains.com
>>>> "Develop with pleasure!"
>>>>> Hi Chadwick,
>>>>>
>>>>> This is really interesting!
>>>>> I use VS 2005. If I start a fresh command line project, it works.
>>>>> It seems to be with two of of my class library projects in my
>>>>> solution
>>>>> where the type hierarchy window does not work properly while it
>>>>> works with the other projects. I have not been able to isolate the
>>>>> constructs that cause the problem. It does not work either when
>>>>> I place my example in a separate namespace within this library.
>>>>> Best regards,
>>>>> Andreas
>>>>> Chadwick Posey schrieb:
>>>>>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem
>>>>>> with a command prompt project, I copied and pasted the example, and
>>>>>> I see the entire heirarchy, although I do have to expand the tree
>>>>>> to see it... by default I get all the superclasses, but only the
>>>>>> next decendant, unless I click the plus to expand the node, or
>>>>>> click "Expand all"
>>>>>>
>>>>>> So it may be something with your particular installation... hope
>>>>>> this helps
>>>>>>
>>>>>> Ciao
>>>>>>
>>

0
Comment actions Permalink

Hello Andreas,

just send it via e-mail to dsha at jetbrains.com. Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

The mail came back. Can you give me
directions how I can send you the solution?
Thanks,
Andreas
Andreas Hofer schrieb:

>> Hello Dmitry,
>>
>> Ctrl-Alt-B works.
>>
>> I am sending you a solution that produces the problem in a separate
>> mail.
>>
>> Best regards,
>> Andreas
>> Dmitry Shaporenkov (JetBrains) schrieb:
>>
>>> Hello Andreas,
>>>
>>> thanks for the picture, I can see it. I tried to check the
>>> hypothesis
>>> with solution folders,
>>> but has failed so far - even if I try to paste your code into a
>>> project
>>> under a solution folder,
>>> the Type Hierarchy looks OK for me.
>>> Could you please tell us if Go To Inheritor (Ctrl-Alt-B) works on
>>> that
>>> class where Type Hierarchy is broken?
>>> This would help us to further investigate if something gets wrong
>>> with
>>> inheritors search in general or
>>> Type Hierarchy in particular. Thanks in advance.
>>> Regards,
>>> Dmitry Shaporenkov
>>> JetBrains, Inc
>>> http://www.jetbrains.com
>>> "Develop with pleasure!"
>>>> Hallo Dmitry,
>>>>
>>>> I am not sure if this newsgroups works with pictures, so in case
>>>> you can't see it, here a description.
>>>>
>>>> I am using the previous example:
>>>> public class A {}
>>>> public class B : A { }
>>>> public class C : B { }
>>>> public class D : C { }
>>>> If I insert that in two of my class library projects,
>>>> no matter where and in what namespace, close and
>>>> reopen the solution and place the cursor on B and
>>>> type Ctrl-Alt-H, the Window shows me:
>>>> Object
>>>> ...-A
>>>> ......B
>>>> If I insert the example in the main project or on the
>>>> other class libraries, the type hierarchy window shows
>>>> Object
>>>> ...-A
>>>> ......-B
>>>> .........+C
>>>> I found out that the problem shows up after closing and reopening
>>>> the
>>>> solution. After an 'unload project' and 'reload project' it works
>>>> correctly.
>>>> There might be a connection to something we had before: The two
>>>> projects causing troubles are placed in a solution folder.
>>>>
>>>> Andreas
>>>>
>>>> Dmitry Shaporenkov (JetBrains) schrieb:
>>>>
>>>>> Hello Andreas,
>>>>>
>>>>> could you please post a screenshot illustrating the issue? Thanks.
>>>>>
>>>>> Regards,
>>>>> Dmitry Shaporenkov
>>>>> JetBrains, Inc
>>>>> http://www.jetbrains.com
>>>>> "Develop with pleasure!"
>>>>>> Hi Chadwick,
>>>>>>
>>>>>> This is really interesting!
>>>>>> I use VS 2005. If I start a fresh command line project, it works.
>>>>>> It seems to be with two of of my class library projects in my
>>>>>> solution
>>>>>> where the type hierarchy window does not work properly while it
>>>>>> works with the other projects. I have not been able to isolate
>>>>>> the
>>>>>> constructs that cause the problem. It does not work either when
>>>>>> I place my example in a separate namespace within this library.
>>>>>> Best regards,
>>>>>> Andreas
>>>>>> Chadwick Posey schrieb:
>>>>>>> Andreas, I use VS 2003, Build 248 (RC3), and tried this problem
>>>>>>> with a command prompt project, I copied and pasted the example,
>>>>>>> and I see the entire heirarchy, although I do have to expand the
>>>>>>> tree to see it... by default I get all the superclasses, but
>>>>>>> only the next decendant, unless I click the plus to expand the
>>>>>>> node, or click "Expand all"
>>>>>>>
>>>>>>> So it may be something with your particular installation... hope
>>>>>>> this helps
>>>>>>>
>>>>>>> Ciao
>>>>>>>


0

Please sign in to leave a comment.