From 1fbf64384a724daf97d18bbfb88617a8d94c512f Mon Sep 17 00:00:00 2001 From: "peter.gromov" Date: Wed, 22 Dec 2010 19:58:25 +0300 Subject: [PATCH] deprecations in the name of LookupElementBuilder --- .../com/intellij/codeInsight/lookup/LookupValueFactory.java | 2 ++ .../codeInsight/lookup/LookupValueWithPsiElement.java | 2 ++ .../src/com/intellij/util/xml/ElementPresentationManager.java | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java index d809d719e37d..704305086134 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueFactory.java @@ -25,7 +25,9 @@ import java.awt.*; /** * @author Dmitry Avdeev + * Use {@link com.intellij.codeInsight.lookup.LookupElementBuilder} */ +@Deprecated public class LookupValueFactory { private LookupValueFactory() { diff --git a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithPsiElement.java b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithPsiElement.java index 62f892cc5843..5821dd036c6a 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithPsiElement.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/lookup/LookupValueWithPsiElement.java @@ -20,7 +20,9 @@ import com.intellij.psi.PsiElement; /** * @author Maxim.Mossienko + * Use {@link com.intellij.codeInsight.lookup.LookupElementBuilder} */ +@Deprecated public interface LookupValueWithPsiElement { PsiElement getElement(); } diff --git a/xml/dom-openapi/src/com/intellij/util/xml/ElementPresentationManager.java b/xml/dom-openapi/src/com/intellij/util/xml/ElementPresentationManager.java index 5ae1f18081f9..5b02027aa387 100644 --- a/xml/dom-openapi/src/com/intellij/util/xml/ElementPresentationManager.java +++ b/xml/dom-openapi/src/com/intellij/util/xml/ElementPresentationManager.java @@ -78,6 +78,10 @@ public abstract class ElementPresentationManager { return createVariants(elements, namer, 0); } + /** + * Use {@link com.intellij.codeInsight.lookup.LookupElementBuilder} + */ + @Deprecated public abstract Object createVariant(final Object variant, final String name, final PsiElement psiElement); @NotNull