java-specific parts of MembersGetter go to JavaMembersGetter

This commit is contained in:
peter
2011-04-07 19:50:10 +02:00
parent 4d998743c4
commit c65ff63395
6 changed files with 152 additions and 98 deletions
@@ -341,11 +341,9 @@ public class JavaSmartCompletionContributor extends CompletionContributor {
}
public static SmartCompletionDecorator decorate(LookupElement lookupElement, Collection<ExpectedTypeInfo> infos) {
if (lookupElement instanceof LookupItem) {
final LookupItem lookupItem = (LookupItem)lookupElement;
if (lookupItem.getInsertHandler() == null) {
lookupItem.setInsertHandler(DefaultInsertHandler.NO_TAIL_HANDLER);
}
LookupItem item = lookupElement.as(LookupItem.CLASS_CONDITION_KEY);
if (item != null && item.getInsertHandler() == null) {
item.setInsertHandler(DefaultInsertHandler.NO_TAIL_HANDLER);
}
return new SmartCompletionDecorator(lookupElement, infos);