Bug 167441 - [misc] Set previous selection after attaching source
Summary: [misc] Set previous selection after attaching source
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-11 10:48 EST by Renny Barrett CLA
Modified: 2006-12-12 03:39 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Renny Barrett CLA 2006-12-11 10:48:27 EST
If I include an external jar my project, I can do things like explore the methods in a class (in the jar file) using the package explorer.

If I double-click a method, then the details pane shows me a generic "Class File Editor/Source not found" view of the class.

I can then click the "Attach Source..." button to point to the source location for the jar file, after which the relevant source file is opened in the editor - but at the top of the file, NOT at the method I had double-clicked.

I think it would be helpful if the "Attach Source" function somehow remembered the action which caused the Class File Editor to be displayed, and then re-performed the action after the correct source is attached.

(Actually, I normally come across this when debugging a stack trace - I click an item in the trace, expecting to be taken to a particular line in a class, and if along the way I have to "attach source" then I have to re-click the item in the stack trace to get to the relevant line.)