public abstract class AutomaticUsageRenamer<T>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AutomaticUsageRenamer(java.util.List<? extends T> renamedElements,
java.lang.String oldName,
java.lang.String newName) |
Modifier and Type | Method and Description |
---|---|
void |
doNotRename(T element) |
void |
doRename() |
protected abstract void |
doRenameElement(T element) |
abstract java.lang.String |
getDialogDescription() |
abstract java.lang.String |
getDialogTitle() |
java.util.List<? extends T> |
getElements() |
abstract java.lang.String |
getEntityName() |
java.lang.String |
getErrorText(T element) |
protected abstract java.lang.String |
getName(T element) |
java.lang.String |
getNewElementName(T element) |
java.lang.String |
getNewName() |
protected java.lang.String |
getOldName() |
java.util.Map<? extends T,java.lang.String> |
getRenames() |
java.lang.String |
getSourceName(T element)
Element source, path.
|
boolean |
hasAnythingToRename() |
protected boolean |
isChecked(T element) |
protected boolean |
isCheckedInitially(T element) |
boolean |
isEmpty() |
protected boolean |
isNameAlreadySuggested(java.lang.String newName) |
void |
setRename(T element,
java.lang.String replacement) |
protected abstract java.lang.String |
suggestName(T element) |
protected AutomaticUsageRenamer(java.util.List<? extends T> renamedElements, java.lang.String oldName, java.lang.String newName)
public boolean hasAnythingToRename()
public boolean isEmpty()
protected java.lang.String getOldName()
public java.lang.String getNewName()
protected boolean isChecked(T element)
protected boolean isCheckedInitially(T element)
protected boolean isNameAlreadySuggested(java.lang.String newName)
public java.util.List<? extends T> getElements()
public java.lang.String getSourceName(T element)
public java.lang.String getNewElementName(T element)
public java.util.Map<? extends T,java.lang.String> getRenames()
public void setRename(T element, java.lang.String replacement)
public void doNotRename(T element)
public java.lang.String getErrorText(T element)
public final void doRename() throws IncorrectOperationException
IncorrectOperationException
protected abstract void doRenameElement(T element) throws IncorrectOperationException
IncorrectOperationException
protected abstract java.lang.String suggestName(T element)
protected abstract java.lang.String getName(T element)
public abstract java.lang.String getDialogTitle()
public abstract java.lang.String getDialogDescription()
public abstract java.lang.String getEntityName()