protected IStatus validateNameAgainstOtherSREs ( String name ) { IStatus nameStatus = SARLEclipsePlugin . getDefault ( ) . createOkStatus ( ) ; if ( isDuplicateName ( name ) ) { nameStatus = SARLEclipsePlugin . getDefault ( ) . createStatus ( IStatus . ERROR , ISREInstall . CODE_NAME , Messages . SREInstallWizard_1 ) ; } else { final IStatus status = ResourcesPlugin . getWorkspace ( ) . validateName ( name , IResource . FILE ) ; if ( ! status . isOK ( ) ) { nameStatus = SARLEclipsePlugin . getDefault ( ) . createStatus ( IStatus . ERROR , ISREInstall . CODE_NAME , MessageFormat . format ( Messages . SREInstallWizard_2 , status . getMessage ( ) ) ) ; } } return nameStatus ; }
Replies if the name of the SRE is valid against the names of the other SRE .