public class MemberInplaceRenamer extends VariableInplaceRenamer
| Modifier and Type | Class and Description |
|---|---|
protected class |
MemberInplaceRenamer.MyRenameProcessor |
INSTANCE, myLanguageINPLACE_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, startsOnTheSameElementaddAdditionalVariables, 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, unableToStartWarningpublic 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 VariableInplaceRenamerprotected boolean acceptReference(PsiReference reference)
acceptReference in class InplaceRefactoringprotected PsiElement checkLocalScope()
checkLocalScope in class InplaceRefactoringprotected PsiElement getNameIdentifier()
getNameIdentifier in class InplaceRefactoringprotected boolean isIdentifier(java.lang.String newName,
Language language)
isIdentifier in class InplaceRefactoringprotected java.util.Collection<PsiReference> collectRefs(SearchScope referencesSearchScope)
collectRefs in class InplaceRefactoringprotected boolean notSameFile(VirtualFile file, PsiFile containingFile)
notSameFile in class InplaceRefactoringprotected SearchScope getReferencesSearchScope(VirtualFile file)
getReferencesSearchScope in class InplaceRefactoringprotected boolean appendAdditionalElement(java.util.Collection<PsiReference> refs, java.util.Collection<Pair<PsiElement,TextRange>> stringUsages)
appendAdditionalElement in class VariableInplaceRenamerprotected boolean shouldCreateSnapshot()
shouldCreateSnapshot in class VariableInplaceRenamerprotected java.lang.String getRefactoringId()
getRefactoringId in class VariableInplaceRenamerprotected void performRefactoringRename(java.lang.String newName,
StartMarkAction markAction)
performRefactoringRename in class VariableInplaceRenamerprotected 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 VariableInplaceRenamerprotected void revertStateOnFinish()
revertStateOnFinish in class VariableInplaceRenamerpublic PsiElement getSubstituted()