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 java.lang.Object implements com.intellij.codeInsight.unwrap.UnwrapDescriptor, com.intellij.codeInsight.unwrap.Unwrapper
-
-
Constructor Summary
Constructors Constructor Description BnfUnwrapDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.intellij.psi.PsiElementcollectAffectedElements(@NotNull com.intellij.psi.PsiElement element, @NotNull java.util.List<com.intellij.psi.PsiElement> toExtract)voidcollectElementsToIgnore(@NotNull com.intellij.psi.PsiElement element, @NotNull java.util.Set<com.intellij.psi.PsiElement> result)java.util.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 java.lang.StringgetDescription(com.intellij.psi.PsiElement e)booleanisApplicableTo(@NotNull com.intellij.psi.PsiElement e)booleanshouldTryToRestoreCaretPosition()booleanshowOptionsDialog()@NotNull java.util.List<com.intellij.psi.PsiElement>unwrap(@NotNull com.intellij.openapi.editor.Editor editor, com.intellij.psi.PsiElement element)
-
-
-
Method Detail
-
collectUnwrappers
public java.util.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 java.util.Set<com.intellij.psi.PsiElement> result)- Specified by:
collectElementsToIgnorein interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
getDescription
@NotNull public @NotNull java.lang.String getDescription(com.intellij.psi.PsiElement e)
- Specified by:
getDescriptionin interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
collectAffectedElements
public com.intellij.psi.PsiElement collectAffectedElements(@NotNull @NotNull com.intellij.psi.PsiElement element, @NotNull @NotNull java.util.List<com.intellij.psi.PsiElement> toExtract)- Specified by:
collectAffectedElementsin interfacecom.intellij.codeInsight.unwrap.Unwrapper
-
unwrap
@NotNull public @NotNull java.util.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
-
-