Interface IRenameResourceProcessor
-
public interface IRenameResourceProcessor- Since:
- 3.11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetNewResourceName()Returns the new resource nameIResourcegetResource()Returns the resource this processor was created onbooleanisUpdateReferences()Returnstrueif the refactoring processor also updates referencesvoidsetNewResourceName(String newName)Sets the new resource namevoidsetUpdateReferences(boolean updateReferences)Specifies if the refactoring processor also updates references.RefactoringStatusvalidateNewElementName(String newName)Validates if the a name is valid.
-
-
-
Method Detail
-
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
void setNewResourceName(String newName)
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
RefactoringStatus validateNewElementName(String newName)
Validates if the a name is valid.- Parameters:
newName- the name to validate- Returns:
- returns the resulting status of the validation
-
-