Package org.intellij.grammar.refactor
Class BnfUnwrapDescriptor
java.lang.Object
org.intellij.grammar.refactor.BnfUnwrapDescriptor
- All Implemented Interfaces:
com.intellij.codeInsight.unwrap.UnwrapDescriptor,com.intellij.codeInsight.unwrap.Unwrapper
public class BnfUnwrapDescriptor
extends Object
implements com.intellij.codeInsight.unwrap.UnwrapDescriptor, com.intellij.codeInsight.unwrap.Unwrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.intellij.psi.PsiElementcollectAffectedElements(@NotNull com.intellij.psi.PsiElement element, @NotNull List<com.intellij.psi.PsiElement> toExtract) voidcollectElementsToIgnore(@NotNull com.intellij.psi.PsiElement element, @NotNull Set<com.intellij.psi.PsiElement> result) @NotNull List<com.intellij.openapi.util.Pair<com.intellij.psi.PsiElement,com.intellij.codeInsight.unwrap.Unwrapper>> collectUnwrappers(@NotNull com.intellij.openapi.project.Project project, @NotNull com.intellij.openapi.editor.Editor editor, @NotNull com.intellij.psi.PsiFile file) @NotNull StringgetDescription(com.intellij.psi.PsiElement e) booleanisApplicableTo(@NotNull com.intellij.psi.PsiElement e) booleanboolean@NotNull List<com.intellij.psi.PsiElement>unwrap(@NotNull com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiElement element)
-
Constructor Details
-
BnfUnwrapDescriptor
public BnfUnwrapDescriptor()
-
-
Method Details
-
collectUnwrappers
@NotNull public @NotNull List<com.intellij.openapi.util.Pair<com.intellij.psi.PsiElement,com.intellij.codeInsight.unwrap.Unwrapper>> collectUnwrappers(@NotNull @NotNull com.intellij.openapi.project.Project project, @NotNull @NotNull com.intellij.openapi.editor.Editor editor, @NotNull @NotNull com.intellij.psi.PsiFile file) - Specified by:
collectUnwrappersin interfacecom.intellij.codeInsight.unwrap.UnwrapDescriptor
-
showOptionsDialog
public boolean showOptionsDialog()- Specified by:
showOptionsDialogin interfacecom.intellij.codeInsight.unwrap.UnwrapDescriptor
-
shouldTryToRestoreCaretPosition
public boolean shouldTryToRestoreCaretPosition()- Specified by:
shouldTryToRestoreCaretPositionin interfacecom.intellij.codeInsight.unwrap.UnwrapDescriptor
-
isApplicableTo
public boolean isApplicableTo(@NotNull @NotNull com.intellij.psi.PsiElement e) - Specified by:
isApplicableToin interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
collectElementsToIgnore
public void collectElementsToIgnore(@NotNull @NotNull com.intellij.psi.PsiElement element, @NotNull @NotNull Set<com.intellij.psi.PsiElement> result) - Specified by:
collectElementsToIgnorein interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
getDescription
- Specified by:
getDescriptionin interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
collectAffectedElements
public com.intellij.psi.PsiElement collectAffectedElements(@NotNull @NotNull com.intellij.psi.PsiElement element, @NotNull @NotNull List<com.intellij.psi.PsiElement> toExtract) - Specified by:
collectAffectedElementsin interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
unwrap
@NotNull public @NotNull List<com.intellij.psi.PsiElement> unwrap(@NotNull @NotNull com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiElement element) throws com.intellij.util.IncorrectOperationException - Specified by:
unwrapin interfacecom.intellij.codeInsight.unwrap.Unwrapper- Throws:
com.intellij.util.IncorrectOperationException
-