mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 10:07:41 +07:00
IDEA-69328 Code completion in switch...case: complete other possible values from already ref'd class
This commit is contained in:
+1
-4
@@ -354,10 +354,7 @@ public class JavaSmartCompletionContributor extends CompletionContributor {
|
||||
boolean quick,
|
||||
Consumer<LookupElement> consumer) {
|
||||
PsiElement position = params.getPosition();
|
||||
final PsiElement parent = position.getParent();
|
||||
if (!BasicExpressionCompletionContributor.AFTER_DOT.accepts(position) &&
|
||||
parent != null &&
|
||||
!(parent.getParent() instanceof PsiSwitchLabelStatement)) {
|
||||
if (!BasicExpressionCompletionContributor.AFTER_DOT.accepts(position)) {
|
||||
for (ExpectedTypeInfo info : mergedInfos) {
|
||||
new JavaMembersGetter(info.getType(), position).addMembers(position, !quick, consumer);
|
||||
if (!info.getDefaultType().equals(info.getType())) {
|
||||
|
||||
Reference in New Issue
Block a user