public interface AutomaticRenamerFactory
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<AutomaticRenamerFactory> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
AutomaticRenamer |
createRenamer(PsiElement element,
java.lang.String newName,
java.util.Collection<UsageInfo> usages)
Creates an automatic renamer for the given rename operation.
|
java.lang.String |
getOptionName()
Returns the title of the checkbox shown in the rename dialog which enables or disables this renamer factory,
or null if the renamer factory does not require showing a checkbox in the rename dialog.
|
boolean |
isApplicable(PsiElement element)
Checks if this factory can provide additional elements to be renamed for the given element being renamed.
|
boolean |
isEnabled()
Returns true if this renamer factory is enabled (and the checkbox representing its state should be checked.)
Normally, the implementation of this method needs to load the persisted state of the checkbox.
|
void |
setEnabled(boolean enabled)
Persists the state of the checkbox which enables or disables the renamer factory.
|
static final ExtensionPointName<AutomaticRenamerFactory> EP_NAME
boolean isApplicable(PsiElement element)
element
- the element being renamed.java.lang.String getOptionName()
boolean isEnabled()
void setEnabled(boolean enabled)
enabled
- true if the checkbox is checked, false otherwise.AutomaticRenamer createRenamer(PsiElement element, java.lang.String newName, java.util.Collection<UsageInfo> usages)
element
- the primary element being renamed.newName
- the new name of the elementusages
- the list of usages of the primary element.