Home > android, tools > “Jump to declaration” in Eclipse with Android ADT 9.0

“Jump to declaration” in Eclipse with Android ADT 9.0

ADT 9.0 has a new feature: it lets you jump to the Android declarations of various resources.

I really wanted to use it, and tried pressing “F3”, which is the standard Eclipse way of jumping to a Java declaration. Right? Wrong!

Next I checked a few other places where this feature could be, like the “Navigation” menu. Not there, either!

Ok, here is the trick. At the risk of sounding like Capt. Obvious:

Capt. says "Hold down Ctrl"

You’ve got to hold down Ctrl while hovering the mouse. This pops up a a nice little menu, which lets you choose between jumping to the Java declaration (which is not too useful for R.id values) or to the actual declaration in an Android-specific XML file.

Advertisements
Categories: android, tools
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s