Bug 54512

Summary: [navigation] Use element under caret as ShowIn source
Product: [Eclipse Project] JDT Reporter: David Screen <dave.screen>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r, martinae
Version: 2.1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description David Screen CLA 2004-03-11 13:52:39 EST
This may be a bug report or feature request. When I first started using 
Eclipse, I would right-click on a java type and go "Show in Package Explorer" 
expecting to see the type that I had clicked on appear. Instead the class that 
i was navigating in would appear in the package explorer view.

I think my desired behaviour occurs for "Open Type Hierarchy". e.g.

if on a valid type, then show it in package expl.
otherwise show the current class.

Thanks!
Comment 1 Martin Aeschlimann CLA 2004-03-15 05:52:37 EST
It's intended to show just the file, but your feature request is noted.
Comment 2 Martin Aeschlimann CLA 2006-06-12 08:31:06 EDT
Moving to editor.
Comment 3 Dani Megert CLA 2006-06-12 09:01:21 EDT
Show In Package Explorer has been replace by
  Show In > Package Explorer
which is context sensitive.
Comment 4 Martin Aeschlimann CLA 2006-06-12 11:27:38 EDT
No I think the request was that when Show In is used on e.g Widget, a code resolve is done and Widget is revealed.
Comment 5 Dani Megert CLA 2006-06-12 11:37:10 EDT
Currently we show the surrounding element. We could change this to show the element under the caret.