Call hierarchy question Follow
I have a question about how the call hierarchy (ctrl-alt-h) is supposed
to work.
Say I have this code:
void fnA() {
fnB();
fnB();
}
void fnB() {
....
}
If I put the cursor on fnB and hit ctrl-alt-h to get the caller graph,
it only lists the first call to fnB in any method (and notes there are n
usages). In the example above, fnA calls fnB twice.
It does highlight all the fnB calls with a purple background (on my
machine anyway). Is there a keystroke or menu item to jump to the next
highlighted instance?
cory
Please sign in to leave a comment.
If this function is like "Find Usages in File...", then F2 will sequence through the inovcations until you cancel with an ESC.
However, I tried to replicate your results, but did not get the highlights you mention or that I see with "Find Usage in File...", there was only the Hierarch (Alt+8) display.
I'm using IDEA 6.0.2. Which version are you using?
RRS
I'm using 6.0.2 as well. I get the highlights when I click one of the
usages in the hierarchy window and hit F4 to jump to the code.
I'm on a linux machine, so perhaps they keystrokes or colors are a bit
different.
cory
OK. If I double-click an entry from the Hierarchy view, the hit highlights appear in the right margin. They're a slighly purple-ish grey. But I can't find a keystroke to sequence through them, either. Nor does the help page for that function mention such a capability. I guess clicking on the hit marks in the right margin is the only way to navigate to them.
I'm running 6.0.2 on Linux using Sun Java 1.5.0_07.
RRS