decorate->withRenderer, createDecorator->withTail, remove Visagiste

This commit is contained in:
Peter Gromov
2009-09-18 11:18:28 +04:00
parent abe0170ced
commit ff67c6e824
10 changed files with 36 additions and 42 deletions
@@ -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);
}
});
}