From e478bc93e2749469eeb8275e374783f8ab4c518d Mon Sep 17 00:00:00 2001 From: Alexey Pegov Date: Mon, 27 Jul 2009 18:51:24 +0400 Subject: [PATCH] IDEADEV-38623 "Choose color..." string instead of color chooser itself.... (in jsp files) --- lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupImpl.java b/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupImpl.java index 7568e40353..1416c72a2f 100644 --- a/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupImpl.java +++ b/lang-impl/src/com/intellij/codeInsight/lookup/impl/LookupImpl.java @@ -461,8 +461,8 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable { if (item == null || item instanceof EmptyLookupItem || item.getObject() instanceof DeferredUserLookupValue && - item instanceof LookupItem && - !((DeferredUserLookupValue)item.getObject()).handleUserSelection((LookupItem)item, myProject)) { + item.as(LookupItem.class) != null && + !((DeferredUserLookupValue)item.getObject()).handleUserSelection(item.as(LookupItem.class), myProject)) { fireItemSelected(null, completionChar); return; } -- 2.11.4.GIT