mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
java-specific parts of MembersGetter go to JavaMembersGetter
This commit is contained in:
+3
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user