Bug 538562

Summary: Use syntax coloring to quick assist tooltip preview
Product: [Eclipse Project] JDT Reporter: Jean-Noel Rouvignac <djanoiup>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mistria
Version: 4.9   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jean-Noel Rouvignac CLA 2018-09-03 15:00:58 EDT
When Ctrl-1 is about to change your code, it shows you a preview of what it will look like to the right of the autocompletion box. 

That's very useful. It would be even more noticeable if it was using the same syntax coloring as the editor.

Reported here after a discussion there:
https://twitter.com/EclipseJavaIDE/status/1036622241843343360?s=19
Comment 1 Mickael Istria CLA 2018-09-03 16:30:02 EDT
The model seems to come from CUCorrectionProposal.getAdditionalProposalInfo().
It would be worth putting a breakpoint on this method and see if the view part can be tweaked from inside JDT. One possible issue is that this is the default JFace dialog or the JavaDoc one from JDT, and that the model sends a plain String. If it is so, then it means we'd had to implement another case from when the proposal is a CUCorrectionProposal to use a rendering using JDT's syntax highlighter.