public static RefactoringStatus validatePackageName ( String newName ) { if ( ! PACKAGE_NAME_PATTERN . matcher ( newName ) . find ( ) ) { RefactoringStatus . createErrorStatus ( MessageFormat . format ( Messages . SARLJdtPackageRenameParticipant_0 , newName ) ) ; } return new RefactoringStatus ( ) ; }
Validate the package name .