protected void setPackageName ( String newName , ResourceSet resourceSet ) { final EObject object = resourceSet . getEObject ( this . uriProvider . apply ( resourceSet ) , true ) ; if ( object instanceof SarlScript ) { ( ( SarlScript ) object ) . setPackage ( newName ) ; } else { throw new RefactoringException ( "SARL script not loaded." ) ; //$NON-NLS-1$ } }
Change the package name .