Type hierarchy for text under caret?

Hi,
I find Ctrl+H (Type Hierarchy) quite useful.

Unfortunately it always shows the hierarchy for the currently opened class. I would expect it to work on the text under the caret like all the other actions in IDEA do.

e.g.

class PhoneList {
private BiMap<Type, PhoneNumber> book = Maps.newHashBiMap();
}

If the caret is on PhoneNumber and I press Ctrl+H then I would love to see the type hierarchy for PhoneNumber and not for the class PhoneList.

Did I miss something? Is this possible somehow?

Thanks,
wallaby

4 comments
Comment actions Permalink

Hello wallaby.pouch,

I find Ctrl+H (Type Hierarchy) quite useful.
Unfortunately it always shows the hierarchy for the currently opened
class. I would expect it to work on the text under the caret like all
the other actions in IDEA do.

e.g.

class PhoneList {
private BiMap<Type, PhoneNumber> book = Maps.newHashBiMap();
}
If the caret is on PhoneNumber and I press Ctrl+H then I would love to
see the type hierarchy for PhoneNumber and not for the class
PhoneList.

Did I miss something? Is this possible somehow?


No, this is not currently possible (other than recording a macro of Ctrl-B
Ctrl-H and assigning it to the Ctrl-H shortcut). Feel free to post a JIRA
issue.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks. I reported the issue on JIRA.

0
Comment actions Permalink

Which issue? Cause I'd like to vote!

0
Comment actions Permalink

Erik,
the issue is http://www.jetbrains.net/jira/browse/IDEA-19550 .

Thanks for voting :)
Wallaby

0

Please sign in to leave a comment.