public class MemberInplaceRenamer extends VariableInplaceRenamer
Modifier and Type | Class and Description |
---|---|
protected class |
MemberInplaceRenamer.MyRenameProcessor |
INSTANCE, myLanguage
INPLACE_RENAMER, INTRODUCE_RESTART, LOG, myAdvertisementText, myBalloon, myBeforeRevert, myCaretRangeMarker, myEditor, myElementToRename, myInitialName, myInsertedName, myMarkAction, myNameSuggestions, myOldName, myProject, myRenameOffset, myScope, myTarget, myTitle, OTHER_VARIABLE_NAME, ourRenamersStack, PRIMARY_VARIABLE_NAME
Constructor and Description |
---|
MemberInplaceRenamer(PsiNamedElement elementToRename,
PsiElement substituted,
Editor editor) |
MemberInplaceRenamer(PsiNamedElement elementToRename,
PsiElement substituted,
Editor editor,
java.lang.String initialName,
java.lang.String oldName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptReference(PsiReference reference) |
protected boolean |
appendAdditionalElement(java.util.Collection<PsiReference> refs,
java.util.Collection<Pair<PsiElement,TextRange>> stringUsages) |
protected PsiElement |
checkLocalScope() |
protected void |
collectAdditionalElementsToRename(java.util.List<Pair<PsiElement,TextRange>> stringUsages) |
protected java.util.Collection<PsiReference> |
collectRefs(SearchScope referencesSearchScope) |
protected VariableInplaceRenamer |
createInplaceRenamerToRestart(PsiNamedElement variable,
Editor editor,
java.lang.String initialName) |
protected RenameProcessor |
createRenameProcessor(PsiElement element,
java.lang.String newName) |
protected PsiElement |
getNameIdentifier() |
protected java.lang.String |
getRefactoringId() |
protected SearchScope |
getReferencesSearchScope(VirtualFile file) |
PsiElement |
getSubstituted() |
protected boolean |
isIdentifier(java.lang.String newName,
Language language) |
protected boolean |
notSameFile(VirtualFile file,
PsiFile containingFile) |
protected void |
performRefactoringRename(java.lang.String newName,
StartMarkAction markAction) |
protected void |
performRenameInner(PsiElement element,
java.lang.String newName) |
protected void |
restoreCaretOffsetAfterRename() |
protected void |
revertStateOnFinish() |
protected boolean |
shouldCreateSnapshot() |
beforeTemplateStart, buildTemplateAndStart, finish, getCommandName, performInplaceRename, performOnInvalidIdentifier, performRefactoring, renameSynthetic, restoreCaretOffset, restoreSelection, shouldSelectAll, startsOnTheSameElement
addAdditionalVariables, addHighlights, addReferenceAtCaret, adjustBalloon, canStartAnotherRefactoring, checkCleared, createLookupExpression, createPreviewComponent, createTemplateExpression, getActiveInplaceRenamer, getComponent, getInitialName, getRangeToRename, getRangeToRename, getSelectedInEditorElement, getTopLevelVirtualFile, getVariable, isReferenceAtCaret, isRestart, isShowBalloonInHeadlessMode, moveOffsetAfter, navigateToAlreadyStarted, performCleanup, performInplaceRefactoring, releaseIfNotRestart, releaseResources, revertState, setAdvertisementText, setElementToRename, setShowBalloonInHeadlessMode, shouldStopAtLookupExpression, showBalloon, showBalloonInEditor, showDialogAdvertisement, startRename, startsOnTheSameElements, stopIntroduce, stopIntroduce, unableToStartWarning
public MemberInplaceRenamer(PsiNamedElement elementToRename, PsiElement substituted, Editor editor)
public MemberInplaceRenamer(PsiNamedElement elementToRename, PsiElement substituted, Editor editor, java.lang.String initialName, java.lang.String oldName)
protected VariableInplaceRenamer createInplaceRenamerToRestart(PsiNamedElement variable, Editor editor, java.lang.String initialName)
createInplaceRenamerToRestart
in class VariableInplaceRenamer
protected boolean acceptReference(PsiReference reference)
acceptReference
in class InplaceRefactoring
protected PsiElement checkLocalScope()
checkLocalScope
in class InplaceRefactoring
protected PsiElement getNameIdentifier()
getNameIdentifier
in class InplaceRefactoring
protected boolean isIdentifier(java.lang.String newName, Language language)
isIdentifier
in class InplaceRefactoring
protected java.util.Collection<PsiReference> collectRefs(SearchScope referencesSearchScope)
collectRefs
in class InplaceRefactoring
protected boolean notSameFile(VirtualFile file, PsiFile containingFile)
notSameFile
in class InplaceRefactoring
protected SearchScope getReferencesSearchScope(VirtualFile file)
getReferencesSearchScope
in class InplaceRefactoring
protected boolean appendAdditionalElement(java.util.Collection<PsiReference> refs, java.util.Collection<Pair<PsiElement,TextRange>> stringUsages)
appendAdditionalElement
in class VariableInplaceRenamer
protected boolean shouldCreateSnapshot()
shouldCreateSnapshot
in class VariableInplaceRenamer
protected java.lang.String getRefactoringId()
getRefactoringId
in class VariableInplaceRenamer
protected void performRefactoringRename(java.lang.String newName, StartMarkAction markAction)
performRefactoringRename
in class VariableInplaceRenamer
protected void performRenameInner(PsiElement element, java.lang.String newName)
protected RenameProcessor createRenameProcessor(PsiElement element, java.lang.String newName)
protected void restoreCaretOffsetAfterRename()
protected void collectAdditionalElementsToRename(java.util.List<Pair<PsiElement,TextRange>> stringUsages)
collectAdditionalElementsToRename
in class VariableInplaceRenamer
protected void revertStateOnFinish()
revertStateOnFinish
in class VariableInplaceRenamer
public PsiElement getSubstituted()