if (fPackage.isReadOnly()) result.addWarning("Package \'" + fPackage.getElementName() + "\' is read-only");  if (fPackage.getCorrespondingResource().isReadOnly()) result.addWarning("Resource corresponding to package \'" + fPackage.getElementName() + "\' is read-only");
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException{		try{			pm.beginTask("", 14); //$NON-NLS-1$			pm.subTask(RefactoringCoreMessages.getString("RenamePackageRefactoring.checking")); //$NON-NLS-1$			RefactoringStatus result= new RefactoringStatus();			result.merge(checkNewName(fNewName));			pm.worked(1);			result.merge(checkForNativeMethods());			pm.worked(1);			result.merge(checkForMainMethods());			pm.worked(1);						if (!fUpdateReferences)				return result;							result.merge(Checks.checkAffectedResourcesAvailability(getOccurrences(new SubProgressMonitor(pm, 6))));			pm.subTask(RefactoringCoreMessages.getString("RenamePackageRefactoring.analyzing")); //$NON-NLS-1$			result.merge(analyzeAffectedCompilationUnits(new SubProgressMonitor(pm, 3)));			result.merge(checkPackageName(fNewName));			pm.worked(1);			return result;		} finally{			pm.done();		}		}