public abstract class AutomaticRenamer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<PsiNamedElement> |
myElements |
Modifier | Constructor and Description |
---|---|
protected |
AutomaticRenamer() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowChangeSuggestedName() |
protected java.lang.String |
canonicalNameToName(java.lang.String canonicalName,
PsiNamedElement element) |
void |
doNotRename(PsiNamedElement element) |
abstract java.lang.String |
entityName() |
void |
findUsages(java.util.List<UsageInfo> result,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles) |
void |
findUsages(java.util.List<UsageInfo> result,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
java.util.List<UnresolvableCollisionUsageInfo> unresolvedUsages) |
void |
findUsages(java.util.List<UsageInfo> result,
boolean searchInStringsAndComments,
boolean searchInNonJavaFiles,
java.util.List<UnresolvableCollisionUsageInfo> unresolvedUsages,
java.util.Map<PsiElement,java.lang.String> allRenames) |
abstract java.lang.String |
getDialogDescription() |
abstract java.lang.String |
getDialogTitle() |
java.util.List<PsiNamedElement> |
getElements() |
java.lang.String |
getNewName(PsiNamedElement namedElement) |
java.util.Map<PsiNamedElement,java.lang.String> |
getRenames() |
boolean |
hasAnythingToRename() |
boolean |
isSelectedByDefault() |
protected java.lang.String |
nameToCanonicalName(java.lang.String name,
PsiNamedElement element) |
void |
setRename(PsiNamedElement element,
java.lang.String replacement) |
protected void |
suggestAllNames(java.lang.String oldClassName,
java.lang.String newClassName) |
protected java.lang.String |
suggestNameForElement(PsiNamedElement element,
NameSuggester suggester,
java.lang.String newClassName,
java.lang.String oldClassName) |
protected final java.util.List<PsiNamedElement> myElements
public boolean hasAnythingToRename()
public void findUsages(java.util.List<UsageInfo> result, boolean searchInStringsAndComments, boolean searchInNonJavaFiles)
public void findUsages(java.util.List<UsageInfo> result, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, java.util.List<UnresolvableCollisionUsageInfo> unresolvedUsages)
public void findUsages(java.util.List<UsageInfo> result, boolean searchInStringsAndComments, boolean searchInNonJavaFiles, java.util.List<UnresolvableCollisionUsageInfo> unresolvedUsages, java.util.Map<PsiElement,java.lang.String> allRenames)
public java.util.List<PsiNamedElement> getElements()
public java.lang.String getNewName(PsiNamedElement namedElement)
public java.util.Map<PsiNamedElement,java.lang.String> getRenames()
public void setRename(PsiNamedElement element, java.lang.String replacement)
public void doNotRename(PsiNamedElement element)
protected void suggestAllNames(java.lang.String oldClassName, java.lang.String newClassName)
protected java.lang.String suggestNameForElement(PsiNamedElement element, NameSuggester suggester, java.lang.String newClassName, java.lang.String oldClassName)
protected java.lang.String canonicalNameToName(java.lang.String canonicalName, PsiNamedElement element)
protected java.lang.String nameToCanonicalName(java.lang.String name, PsiNamedElement element)
public boolean allowChangeSuggestedName()
public boolean isSelectedByDefault()
public abstract java.lang.String getDialogTitle()
public abstract java.lang.String getDialogDescription()
public abstract java.lang.String entityName()