Bug 576495 - Styles are not shown for the selected item in Eclipse's CompletionProposal popup
Summary: Styles are not shown for the selected item in Eclipse's CompletionProposal popup
Status: CLOSED DUPLICATE of bug 576494
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.22   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-07 04:21 EDT by Miklos Magyari CLA
Modified: 2021-10-11 05:16 EDT (History)
1 user (show)

See Also:


Attachments
Screenshot of the issue (29.54 KB, image/png)
2021-10-07 04:22 EDT, Miklos Magyari CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miklos Magyari CLA 2021-10-07 04:21:23 EDT
I am working on an Eclipse plugin and now implementing some code completion proposals for class members where I show the members' visibility using a colored square. I have implemented ICompletionProposalExtension6 for this so the lines can have styles. The squares are practically colored Unicode square characters.

It almost works as I want except that colors are not shown for the selected item, its text is converted to the color configured by setProposalSelectorForeground() (see the black square in the image).

It seems this is hardcoded behavior and eclipse ignores styles for the selected items (at least for the colors). It would be great if this could be improved somehow as it decreases the usability of styles for the proposals (for example, I could imagine a boolean setting to control whether only the background color is changed for the selected item).
Comment 1 Miklos Magyari CLA 2021-10-07 04:22:52 EDT
Created attachment 287272 [details]
Screenshot of the issue
Comment 2 Rolf Theunissen CLA 2021-10-11 05:16:04 EDT

*** This bug has been marked as a duplicate of bug 576494 ***