[PJUG Javamail] Trivial, Obvious, Question
Bill Jackson
wajiii at gmail.com
Mon Oct 20 18:50:23 EDT 2008
On Mon, Oct 20, 2008 at 3:05 PM, Richard Johnson <richardj at lingosys.com>wrote:
> Thanks everyone.
>
> Three of you pinged me at the same time with the same answer.
> (ctrl-alt-<--) I knew it was trivial. :-)
>
> It also occurred to me that alt-F7 and ctrl-B are logical inverses in at
> least the situation I described, but I didn't test it to confirm (yet.)
>
Well... not exactly. :)
ctrl-B will take you to the definition corresponding to the declared
instance type, not necessarily the one you came from with "Find usages...".
ctrl-alt-B will give you a popup listing all known implementations of the
method under the cursor and ask you to choose one. If there is only one
known implementation, it takes you directly there just as ctrl-B would.
That is to say... given:
class Foo { void blah() { /* thing 1 */ } }
class Bar extends Foo { void blah() { /* thing 2 */ } }
// ... somewhere else ...
Foo myFoo = new Bar();
myFoo.blah();
Pressing ctrl-B on myFoo.blah() will take you to the Foo definition, while
ctrl-alt-B will pop up "Choose implementation of *blah* (2 classes found)".
Guess which one I prefer. ;)
Cheers,
-Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20081020/c27fbee4/attachment.html
More information about the Javamail
mailing list