Interface IRenameResourceProcessor
-
public interface IRenameResourceProcessor
- Since:
- 3.11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNewResourceName()
Returns the new resource nameIResource
getResource()
Returns the resource this processor was created onboolean
isUpdateReferences()
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.RefactoringStatus
validateNewElementName(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()
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
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
-
-