mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
decorate->withRenderer, createDecorator->withTail, remove Visagiste
This commit is contained in:
@@ -954,10 +954,11 @@ public class JavaCompletionUtil {
|
||||
}
|
||||
|
||||
private static LookupElementDecorator<LookupElement> highlight(LookupElement decorator) {
|
||||
return LookupElementDecorator.decorate(decorator, new LookupElementVisagiste<LookupElement>() {
|
||||
return LookupElementDecorator.withRenderer(decorator, new LookupElementRenderer<LookupElementDecorator<LookupElement>>() {
|
||||
@Override
|
||||
public void applyCosmetics(@NotNull LookupElement item, @NotNull LookupElementPresentation base) {
|
||||
base.setItemTextBold(true);
|
||||
public void renderElement(LookupElementDecorator<LookupElement> element, LookupElementPresentation presentation) {
|
||||
element.getDelegate().renderElement(presentation);
|
||||
presentation.setItemTextBold(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user