Bug 538562 - Use syntax coloring to quick assist tooltip preview
Summary: Use syntax coloring to quick assist tooltip preview
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.9   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-03 15:00 EDT by Jean-Noel Rouvignac CLA
Modified: 2018-09-03 16:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.