mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed evaluation in groovy
This commit is contained in:
@@ -463,7 +463,12 @@ public abstract class DebuggerUtilsEx extends DebuggerUtils {
|
||||
public static CodeFragmentFactory getCodeFragmentFactory(@Nullable PsiElement context, @Nullable FileType fileType) {
|
||||
DefaultCodeFragmentFactory defaultFactory = DefaultCodeFragmentFactory.getInstance();
|
||||
if (fileType == null) {
|
||||
return defaultFactory;
|
||||
if (context == null) {
|
||||
return defaultFactory;
|
||||
}
|
||||
else {
|
||||
fileType = context.getContainingFile().getFileType();
|
||||
}
|
||||
}
|
||||
for (CodeFragmentFactory factory : ApplicationManager.getApplication().getExtensions(CodeFragmentFactory.EXTENSION_POINT_NAME)) {
|
||||
if (factory != defaultFactory && factory.getFileType().equals(fileType) && factory.isContextAccepted(context)) {
|
||||
|
||||
Reference in New Issue
Block a user