0

This is a follow up to this old post How to Display Current Function in Eclipse

The answers in that post work well for local sources, i.e. my own code.
Since then Eclipse ADT installations started to include the Android platform source code.
If you open any of it, directly or through your project's android.jar package explorer, none of those answers work.

So I repeat the question but for these tricky files:

I would like to know the name of the current function the cursor is currently inside when browsing Android source code.

Community
  • 1
  • 1
ilomambo
  • 8,290
  • 12
  • 57
  • 106
  • May be if you point your jar to its source file locally and do CTRl+O, it may work.. – Susie Mar 28 '14 at 15:41
  • @Susie Nope, that's one of the solutions offered in the old post, it does not work. I tried it. I mean, ctrl+o opens the outline popup, but it does not show you which method you are in. Moreover, some methods in those source files do not appear in the outline at all (and they are not annotated in any way, for example `measureVertical()` in `LinearLayout.java`) – ilomambo Mar 28 '14 at 15:45
  • I use mockito jar file and have downloaded and pointed to its source file locally. When I do CTRL+O, it gives me the list of all the methods, with the one the cursor is in highlighted. – Susie Mar 28 '14 at 15:49
  • @Susie well, it does not work for the Andriod source files included in the Eclipse installation, attached to the Android jar file. – ilomambo Mar 28 '14 at 15:58

0 Answers0