What you are describing is called the "Select Enclosing Element" in Eclipse, and the default binding is Shift + Alt + Up .
(You can change the key binding in Window -> Preferences -> General -> Keys.)
I did not know this before, so thanks for the tip!
source share