Skip to content

Commit

Permalink
introduce JavaLike* interfaces for contexts will be used in groovy
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Sep 16, 2024
1 parent 59601cc commit 4c36110
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import static consulo.language.pattern.PlatformPatterns.psiElement;

@ExtensionImpl
public class JavaExpressionContextType extends JavaCodeContextType {
public class JavaExpressionContextType extends JavaCodeContextType implements JavaLikeExpressionContextType {
public JavaExpressionContextType() {
super("JAVA_EXPRESSION", LocalizeValue.localizeTODO("Expression"), JavaGenericContextType.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import jakarta.annotation.Nonnull;

@ExtensionImpl
public class JavaGenericContextType extends JavaCodeContextType {
public class JavaGenericContextType extends JavaCodeContextType implements JavaLikeCodeContextType {
public JavaGenericContextType() {
super("JAVA_CODE", LocalizeValue.localizeTODO("Java"), EverywhereContextType.class);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.intellij.java.impl.codeInsight.template;

import consulo.language.editor.template.context.TemplateContextType;

/**
* @author VISTALL
* @since 2024-09-16
*/
public interface JavaLikeCodeContextType extends TemplateContextType {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.intellij.java.impl.codeInsight.template;

import consulo.language.editor.template.context.TemplateContextType;

/**
* @author VISTALL
* @since 2024-09-16
*/
public interface JavaLikeExpressionContextType extends TemplateContextType {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.intellij.java.impl.codeInsight.template;

import consulo.language.editor.template.context.TemplateContextType;

/**
* @author VISTALL
* @since 2024-09-16
*/
public interface JavaLikeStatementContextType extends TemplateContextType {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import jakarta.annotation.Nonnull;

@ExtensionImpl
public class JavaStatementContextType extends JavaCodeContextType {
public class JavaStatementContextType extends JavaCodeContextType implements JavaLikeStatementContextType {
public JavaStatementContextType() {
super("JAVA_STATEMENT", LocalizeValue.localizeTODO("Statement"), JavaGenericContextType.class);
}
Expand Down

0 comments on commit 4c36110

Please sign in to comment.