idea-plugin / arrow.meta.ide.dsl.editor.refactoring / RefactoringSyntax

RefactoringSyntax

interface RefactoringSyntax

Functions

addImportOptimizer open fun MetaIde.addImportOptimizer(supports: (file: PsiFile) -> Boolean, processFile: (file: PsiFile) -> Runnable): ExtensionPhase
addNamesValidator open fun MetaIde.addNamesValidator(isKeyword: (name: String, project: Project?) -> Boolean, isIdentifier: (name: String, project: Project?) -> Boolean): ExtensionPhase
addRefactoringSupportProvider TODO: Test Default valuesopen fun MetaIde.addRefactoringSupportProvider(introduceFunctionalParameterHandler: RefactoringActionHandler? = null, pushDownHandler: RefactoringActionHandler? = null, introduceFunctionalVariableHandler: RefactoringActionHandler? = null, isInplaceRenameAvailable: (element: PsiElement, context: PsiElement?) -> Boolean = Noop.boolean2False, extractInterfaceHandler: RefactoringActionHandler? = null, introduceConstantHandler: RefactoringActionHandler? = null, introduceVariableHandler: RefactoringActionHandler? = null, introduceVariableHandlerOnPsi: (element: PsiElement?) -> RefactoringActionHandler? = Noop.nullable1(), extractModuleHandler: RefactoringActionHandler? = null, isInplaceIntroduceAvailable: (element: PsiElement, context: PsiElement?) -> Boolean = Noop.boolean2False, pullUpHandler: RefactoringActionHandler? = null, isSafeDeleteAvailable: (element: PsiElement) -> Boolean = Noop.boolean1False, introduceFieldHandler: RefactoringActionHandler? = null, isMemberInplaceRenameAvailable: (element: PsiElement, context: PsiElement?) -> Boolean = Noop.boolean2False, extractMethodHandler: RefactoringActionHandler? = null, changeSignatureHandler: ChangeSignatureHandler? = null, extractClassHandler: RefactoringActionHandler? = null, isAvailable: (context: PsiElement) -> Boolean = Noop.boolean1True, extractSuperClassHandler: RefactoringActionHandler? = null, introduceParameterHandler: RefactoringActionHandler? = null): ExtensionPhase
addRenamePsiFileProcessor RenamePsiFileProcessoropen fun MetaIde.addRenamePsiFileProcessor(): ExtensionPhase
refactoringActionHandler Can be used for Introducing Variables or moreopen fun RefactoringSyntax.refactoringActionHandler(invokeWithEditor: (project: Project, editor: Editor?, file: PsiFile?, dataContext: DataContext?) -> Unit, invoke: (project: Project, elements: Array<out PsiElement>, dataContext: DataContext?) -> Unit): RefactoringActionHandler

Do you like Arrow?

Arrow Org
<