mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-88366 Code completion popup draws placeholder icon for entries which do not have icon at all
This commit is contained in:
@@ -30,7 +30,6 @@ public class KeywordLookupItem extends LookupItem<PsiKeyword> implements TypedLo
|
||||
public KeywordLookupItem(final PsiKeyword keyword, @NotNull PsiElement position) {
|
||||
super(keyword, keyword.getText());
|
||||
myPosition = position;
|
||||
setBold();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -43,6 +42,12 @@ public class KeywordLookupItem extends LookupItem<PsiKeyword> implements TypedLo
|
||||
return getLookupString().hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void renderElement(LookupElementPresentation presentation) {
|
||||
presentation.setItemText(getLookupString());
|
||||
presentation.setItemTextBold(true);
|
||||
}
|
||||
|
||||
public PsiType getType() {
|
||||
return FilterUtil.getKeywordItemType(myPosition, getLookupString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user