mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-83338 Groovy: Debugger: Quick Evaluate doesn't work for selection in classes
This commit is contained in:
+4
-2
@@ -294,8 +294,10 @@ public class GroovyCodeFragmentFactory extends CodeFragmentFactory {
|
||||
PsiElement parent = context;
|
||||
while (parent != null) {
|
||||
if (parent instanceof PsiModifierListOwner && ((PsiModifierListOwner)parent).hasModifierProperty(PsiModifier.STATIC)) return true;
|
||||
if (parent instanceof GrTypeDefinition || parent instanceof GroovyFile) return false;
|
||||
parent = parent.getParent();
|
||||
if (parent instanceof GroovyFile && parent.isPhysical()) return false;
|
||||
if (parent instanceof GrTypeDefinition) return false;
|
||||
|
||||
parent = parent.getContext();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user