Code browsing and finding the implementation of an abstract method.
If I look at a line of code in intellij along the lines of
Log.d("TAG", getString(R.string.asyncEnd));
I can put the cursor on getString and press C-b to take me to the definition which, in this case, is defined in the Context class:
public final String getString(int resId) {
return getResources().getString(resId);
}
Wondering about getResources I hit C-b again and see that its defined as an abstract:
public abstract Resources getResources();
Now my Q is how do I find the implementation of getResources in the context of my own code in the most efficient or "intellij" way?
regards
r.
请先登录再写评论。
In Main Menu Navigation -> Implementation(s)
There you could also notice hot key corresponding to this action
Ack. Thank you.