diff --git a/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java b/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java index 524fb18e84fa..f5e35cad186b 100644 --- a/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java +++ b/java/java-impl/src/com/intellij/codeInsight/lookup/LookupItemUtil.java @@ -72,7 +72,7 @@ public class LookupItemUtil{ /** * @deprecated - * @see LookupElementFactory + * @see LookupElementBuilder */ public static LookupItem objectToLookupItem(Object object) { if (object instanceof LookupItem) return (LookupItem)object; diff --git a/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementFactory.java b/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementFactory.java index 00328ed94620..190f61ed1094 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementFactory.java +++ b/platform/lang-api/src/com/intellij/codeInsight/lookup/LookupElementFactory.java @@ -37,12 +37,4 @@ public abstract class LookupElementFactory { public abstract MutableLookupElement createLookupElement(@NotNull T element, @NotNull String lookupString); - public static LookupElementBuilder builder(@NotNull String lookupString) { - return builder(lookupString, lookupString); - } - - public static LookupElementBuilder builder(@NotNull String lookupString, @NotNull Object lookupObject) { - return LookupElementBuilder.create(lookupString, lookupObject); - } - } diff --git a/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/AntEndElementNameReference.java b/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/AntEndElementNameReference.java index a3f0bb9e1490..057e53e9c24b 100644 --- a/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/AntEndElementNameReference.java +++ b/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/AntEndElementNameReference.java @@ -2,7 +2,7 @@ package com.intellij.lang.ant.psi.impl.reference; import com.intellij.codeInsight.lookup.AutoCompletionPolicy; import com.intellij.codeInsight.lookup.LookupElement; -import com.intellij.codeInsight.lookup.LookupElementFactory; +import com.intellij.codeInsight.lookup.LookupElementBuilder; import com.intellij.lang.ant.AntElementRole; import com.intellij.lang.ant.psi.AntElement; import com.intellij.lang.ant.psi.AntStructuredElement; @@ -35,8 +35,8 @@ public class AntEndElementNameReference extends AntElementNameReference { return xmlTag; } }; - return new LookupElement[] {LookupElementFactory.builder(completionText, wrapper).setAutoCompletionPolicy( - AutoCompletionPolicy.GIVE_CHANCE_TO_OVERWRITE).createLookupElement()}; + return new LookupElement[] {LookupElementBuilder.create(completionText, wrapper).setAutoCompletionPolicy( + AutoCompletionPolicy.GIVE_CHANCE_TO_OVERWRITE)}; } public TextRange getRangeInElement() {