mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
remove unused LookupValueWithTail
This commit is contained in:
@@ -40,9 +40,6 @@ import java.util.Collection;
|
||||
public class LookupItemUtil{
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.codeInsight.lookup.LookupItemUtil");
|
||||
|
||||
private LookupItemUtil() {
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static LookupElement addLookupItem(Collection<LookupElement> set, @NotNull Object object) {
|
||||
return addLookupItem(set, object, new CamelHumpMatcher(""));
|
||||
@@ -124,9 +121,6 @@ public class LookupItemUtil{
|
||||
if (s == null) {
|
||||
LOG.error("Null string for object: " + object + " of class " + (object != null ? object.getClass() : null));
|
||||
}
|
||||
if (object instanceof LookupValueWithTail) {
|
||||
item.setAttribute(LookupItem.TAIL_TEXT_ATTR, " " + ((LookupValueWithTail)object).getTailText());
|
||||
}
|
||||
item.setLookupString(s);
|
||||
|
||||
item.setTailType(tailType);
|
||||
|
||||
@@ -260,9 +260,6 @@ public class CompletionData {
|
||||
if (object instanceof LookupValueWithUIHint && ((LookupValueWithUIHint) object).isBold()) {
|
||||
item.setBold();
|
||||
}
|
||||
if (object instanceof LookupValueWithTail) {
|
||||
item.setAttribute(LookupItem.TAIL_TEXT_ATTR, " " + ((LookupValueWithTail)object).getTailText());
|
||||
}
|
||||
item.setAttribute(CompletionUtil.TAIL_TYPE_ATTR, tailType);
|
||||
return item;
|
||||
}
|
||||
|
||||
@@ -43,10 +43,6 @@ public class LookupValueFactory {
|
||||
return new LookupValueWithIconAndHint(name, icon, hint);
|
||||
}
|
||||
|
||||
public static Object createLookupValueWithHintAndTail(@NotNull String name, @Nullable Icon icon, String hint, final String tail) {
|
||||
return new LookupValueWithHintAndTail(name, icon, hint, tail);
|
||||
}
|
||||
|
||||
public static class LookupValueWithIcon implements PresentableLookupValue, Iconable {
|
||||
private final String myName;
|
||||
private final Icon myIcon;
|
||||
@@ -100,19 +96,4 @@ public class LookupValueFactory {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public static class LookupValueWithHintAndTail extends LookupValueWithIconAndHint implements LookupValueWithTail {
|
||||
private final String myTail;
|
||||
|
||||
protected LookupValueWithHintAndTail(final String name, final Icon icon, final String hint, String tail) {
|
||||
super(name, icon, hint);
|
||||
myTail = tail;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTailText() {
|
||||
return myTail;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.intellij.codeInsight.lookup;
|
||||
|
||||
/**
|
||||
* @author Dmitry Avdeev
|
||||
* @deprecated use LookupElementBuilder
|
||||
*/
|
||||
public interface LookupValueWithTail {
|
||||
String getTailText();
|
||||
}
|
||||
Reference in New Issue
Block a user