Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #470203 +++ See https://bugs.eclipse.org/bugs/show_bug.cgi?id=470203#c15 Substring matches for templates are blue by default, therefore the match should be highlighted with bold blue.
Strings#markMatchingRegions uses StyledString#setStyle which overwrites the foreground color from previous styler when bold styler is applied. To handle this, I am creating a new styler in TemplateProposal#emphasizeMatch which sets the bold font using BoldStylerProvider#getBoldFont and also sets the foreground color to JFacePreferences.COUNTER_COLOR. Instead of pushing the fix to Gerrit for review, I accidentally pushed it to master: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=ae2fb3ae8a2f8928a19a5ae8fee785d9683e58f0 Dani, please have a look.
FYI - As a user the blue font has no value for me. Maybe you want to discuss in the JDT team if you change the blue font for templates to the default one? This might also result in a simpler code basis.
(In reply to Lars Vogel from comment #2) > FYI - As a user the blue font has no value for me. > > Maybe you want to discuss in the JDT team if you change the blue font for > templates to the default one? This might also result in a simpler code basis. We render them differently since day one and won't change that.
Verified in I20160126-0800.