Package org.intellij.grammar.refactor
Class BnfIntroduceRuleHandler
- java.lang.Object
-
- org.intellij.grammar.refactor.BnfIntroduceRuleHandler
-
- All Implemented Interfaces:
com.intellij.refactoring.RefactoringActionHandler
public class BnfIntroduceRuleHandler extends java.lang.Object implements com.intellij.refactoring.RefactoringActionHandlerCreated by IntelliJ IDEA. Date: 8/16/11 Time: 5:25 PM
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREFACTORING_NAMEstatic com.intellij.util.Function<BnfExpression,java.lang.String>RENDER_FUNCTION
-
Constructor Summary
Constructors Constructor Description BnfIntroduceRuleHandler()BnfIntroduceRuleHandler(@Nullable com.intellij.util.Function<java.util.List<BnfExpression>,BnfExpression> popupVariantsHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BnfRuleaddNextRule(com.intellij.openapi.project.Project project, BnfRule currentRule, java.lang.String newRuleText)static booleanendsWithSemicolon(BnfRule rule)voidinvoke(@NotNull com.intellij.openapi.project.Project project, com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiFile file, @Nullable com.intellij.openapi.actionSystem.DataContext dataContext)voidinvoke(@NotNull com.intellij.openapi.project.Project project, com.intellij.psi.PsiElement @NotNull [] elements, com.intellij.openapi.actionSystem.DataContext dataContext)
-
-
-
Field Detail
-
REFACTORING_NAME
public static final java.lang.String REFACTORING_NAME
- See Also:
- Constant Field Values
-
RENDER_FUNCTION
public static final com.intellij.util.Function<BnfExpression,java.lang.String> RENDER_FUNCTION
-
-
Constructor Detail
-
BnfIntroduceRuleHandler
public BnfIntroduceRuleHandler()
-
BnfIntroduceRuleHandler
@TestOnly public BnfIntroduceRuleHandler(@Nullable @Nullable com.intellij.util.Function<java.util.List<BnfExpression>,BnfExpression> popupVariantsHandler)
-
-
Method Detail
-
invoke
public void invoke(@NotNull @NotNull com.intellij.openapi.project.Project project, com.intellij.psi.PsiElement @NotNull [] elements, com.intellij.openapi.actionSystem.DataContext dataContext)- Specified by:
invokein interfacecom.intellij.refactoring.RefactoringActionHandler
-
invoke
public void invoke(@NotNull @NotNull com.intellij.openapi.project.Project project, com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiFile file, @Nullable @Nullable com.intellij.openapi.actionSystem.DataContext dataContext)- Specified by:
invokein interfacecom.intellij.refactoring.RefactoringActionHandler
-
addNextRule
public static BnfRule addNextRule(com.intellij.openapi.project.Project project, BnfRule currentRule, java.lang.String newRuleText)
-
endsWithSemicolon
public static boolean endsWithSemicolon(BnfRule rule)
-
-