Bug 431960 - [hovering][navigation] Peek definition
Summary: [hovering][navigation] Peek definition
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 17:25 EDT by Chin Bim CLA
Modified: 2014-04-04 05:43 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chin Bim CLA 2014-04-03 17:25:47 EDT
It would be nice if Eclipse has the "Peek Definition" feature of Visual Studio:

http://msdn.microsoft.com/en-us/library/dn160178.aspx

Basically, in Eclipse, as of now you can only hover over an item to see its documentation/definition/information/etc. but you cannot edit the text inside that hover directly. You also cannot see other sections of the of the file that the item is in. 

If you want to do these things in Eclipse, currently you can only open the file that contains the item in a new editor tab. This is very inconvenience, since a lot of editor tabs opened at once is really cluttering, especially on a small screen like a laptop's. Also, you have to close each editor tab that you opened individually.

Consider a use case: you want to see a definition of class A, you hover over it and see that class A is derived from class B, and you wonder what class B is, so you have to open class A's definition in a new tab and hover over class B, and then you see that class B is derived from class C and implements interface D and you want to quickly look though C and D as well, so you have to open class B in a new tab... This can continue on for a while, and after this whole process, you will have a lot of editor tabs opened and you have to close them all since you have no use for them.

Another use case: you hover over an instance variable and see its declaration, but you wonder what other things are declared around it, so you have to open the variable's definition in a new editor tab just to do that.

The "Peek Definition" would solve all of these inconveniences.