Interface IRenameResourceProcessor
public interface IRenameResourceProcessor
- Since:
- 3.11
-
Method Summary
Modifier and TypeMethodDescriptionReturns the new resource nameReturns the resource this processor was created onbooleanReturnstrueif the refactoring processor also updates referencesvoidsetNewResourceName(String newName) Sets the new resource namevoidsetUpdateReferences(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()Returnstrueif the refactoring processor also updates references- Returns:
trueif the refactoring processor also updates references
-
setUpdateReferences
void setUpdateReferences(boolean updateReferences) Specifies if the refactoring processor also updates references.- Parameters:
updateReferences-trueif 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
-