Interface IRenameResourceProcessor
public interface IRenameResourceProcessor
- Since:
- 3.11
-
Method Summary
Modifier and TypeMethodDescriptionReturns the new resource nameReturns the resource this processor was created onboolean
Returnstrue
if the refactoring processor also updates referencesvoid
setNewResourceName
(String newName) Sets the new resource namevoid
setUpdateReferences
(boolean updateReferences) Specifies if the refactoring processor also updates references.validateNewElementName
(String newName) Validates if the a name is valid.
-
Method Details
-
getResource
IResource getResource()Returns the resource this processor was created on- Returns:
- the resource to rename
-
getNewResourceName
String getNewResourceName()Returns the new resource name- Returns:
- the new resource name
-
setNewResourceName
Sets the new resource name- Parameters:
newName
- the new resource name
-
isUpdateReferences
boolean isUpdateReferences()Returnstrue
if the refactoring processor also updates references- Returns:
true
if the refactoring processor also updates references
-
setUpdateReferences
void setUpdateReferences(boolean updateReferences) Specifies if the refactoring processor also updates references.- Parameters:
updateReferences
-true
if the refactoring processor should also updates references
-
validateNewElementName
Validates if the a name is valid.- Parameters:
newName
- the name to validate- Returns:
- returns the resulting status of the validation
-