Interface IRenameResourceProcessor


  • public interface IRenameResourceProcessor
    Since:
    3.11
    • 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()
        Returns true 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