mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unused LookupItem.DEPRECATED
This commit is contained in:
@@ -38,7 +38,6 @@ public class DefaultLookupItemRenderer extends LookupElementRenderer<LookupItem>
|
||||
presentation.setIcon(getRawIcon(item, presentation.isReal()));
|
||||
|
||||
presentation.setItemText(getName(item));
|
||||
presentation.setStrikeout(isToStrikeout(item));
|
||||
presentation.setItemTextBold(item.getAttribute(LookupItem.HIGHLIGHTED_ATTR) != null);
|
||||
presentation.setTailText(getText2(item), item.getAttribute(LookupItem.TAIL_TEXT_SMALL_ATTR) != null);
|
||||
presentation.setTypeText(getText3(item), null);
|
||||
@@ -99,10 +98,6 @@ public class DefaultLookupItemRenderer extends LookupElementRenderer<LookupItem>
|
||||
return (String)item.getAttribute(LookupItem.TAIL_TEXT_ATTR);
|
||||
}
|
||||
|
||||
private static boolean isToStrikeout(LookupItem item) {
|
||||
return item.getAttribute(LookupItem.DEPRECATED_ATTR) != null;
|
||||
}
|
||||
|
||||
private static String getName(final LookupItem item){
|
||||
final String presentableText = item.getPresentableText();
|
||||
if (presentableText != null) return presentableText;
|
||||
|
||||
@@ -54,7 +54,6 @@ public class LookupItem<T> extends MutableLookupElement<T> implements Comparable
|
||||
public static final Object FORCE_QUALIFY = Key.create("FORCE_QUALIFY");
|
||||
public static final Object SUBSTITUTOR = Key.create("SUBSTITUTOR");
|
||||
public static final Object TYPE = Key.create("TYPE");
|
||||
public static final Key<Object> DEPRECATED_ATTR = Key.create("DEPRECATED");
|
||||
|
||||
public static final Object CASE_INSENSITIVE = Key.create("CASE_INSENSITIVE");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user