Bug 532803 - [code mining] a code mining decoration to show inferred type on "var"
Summary: [code mining] a code mining decoration to show inferred type on "var"
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 03:34 EDT by Mickael Istria CLA
Modified: 2021-03-25 09:35 EDT (History)
4 users (show)

See Also:


Attachments
Java9 var type mining demo (609.48 KB, image/gif)
2018-06-18 11:09 EDT, Angelo ZERR CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2018-03-23 03:34:42 EDT
The "var" keyword is really pleasant to use. However, as a user, I get the habit of always hovering to guess what the inferred type is. I think having a way to always show the inferred type as a decoration on the code would be great.
It seems like a good use case for code minings.
Comment 1 Angelo ZERR CLA 2018-06-18 11:09:24 EDT
Created attachment 274511 [details]
Java9 var type mining demo

Implemented in the issue https://github.com/angelozerr/jdt-codemining/issues/42

See attached demo to see the result.