mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-25750 Intentions: restore "Check RegExp" action
This commit is contained in:
+5
@@ -56,6 +56,11 @@ public abstract class AbstractLanguageInjectionSupport extends LanguageInjection
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean useDefaultCommentInjector() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public BaseInjection findCommentInjection(@NotNull PsiElement host, @Nullable Ref<PsiElement> commentRef) {
|
||||
|
||||
+2
@@ -63,6 +63,8 @@ public class CommentLanguageInjector implements MultiHostInjector {
|
||||
if (support == myInjectorSupport && applicableFound) continue;
|
||||
applicableFound = true;
|
||||
|
||||
if (!support.useDefaultCommentInjector())
|
||||
continue;
|
||||
BaseInjection injection = support.findCommentInjection(host, null);
|
||||
if (injection == null) continue;
|
||||
if (!InjectorUtils.registerInjectionSimple(host, injection, support, registrar)) continue;
|
||||
|
||||
+2
@@ -57,6 +57,8 @@ public abstract class LanguageInjectionSupport {
|
||||
|
||||
public abstract boolean useDefaultInjector(PsiLanguageInjectionHost host);
|
||||
|
||||
public abstract boolean useDefaultCommentInjector();
|
||||
|
||||
@Nullable
|
||||
public abstract BaseInjection findCommentInjection(@NotNull PsiElement host, @Nullable Ref<PsiElement> commentRef);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user