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 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:
      collectUnwrappers in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
    • showOptionsDialog

      public boolean showOptionsDialog()
      Specified by:
      showOptionsDialog in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
    • shouldTryToRestoreCaretPosition

      public boolean shouldTryToRestoreCaretPosition()
      Specified by:
      shouldTryToRestoreCaretPosition in interface com.intellij.codeInsight.unwrap.UnwrapDescriptor
    • isApplicableTo

      public boolean isApplicableTo(@NotNull @NotNull com.intellij.psi.PsiElement e)
      Specified by:
      isApplicableTo in interface com.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:
      collectElementsToIgnore in interface com.intellij.codeInsight.unwrap.Unwrapper
    • getDescription

      @NotNull public @NotNull String getDescription(com.intellij.psi.PsiElement e)
      Specified by:
      getDescription in interface com.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:
      collectAffectedElements in interface com.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:
      unwrap in interface com.intellij.codeInsight.unwrap.Unwrapper
      Throws:
      com.intellij.util.IncorrectOperationException