result.merge(checkReferencesInOurCompilationUnit(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL))); result.merge(checkReferencesInOtherCompilationUnits(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)));
result.merge(checkReferencesInOurCompilationUnit(new SubProgressMonitor(pm, 11))); result.merge(checkReferencesInOtherCompilationUnits(new SubProgressMonitor(pm, 11)));
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException {		/*		 * not checked preconditions:		 *  a. native methods in locally defined types in this package (too expensive - requires AST analysis)		 */		pm.beginTask("", 46);		pm.subTask("Checking preconditions");		RefactoringStatus result= new RefactoringStatus();		result.merge(checkAvailability(fNewPackage));		pm.worked(1);				if (fNewPackage.getCompilationUnit(getCu().getElementName()).exists())			result.addFatalError("Compilation unit \"" + getCu().getElementName() + "\" already exists in " + fNewPackage.getElementName());		pm.worked(1);				result.merge(checkNewPackage());		pm.worked(1);				result.merge(Checks.checkForNativeMethods(getCu()));		pm.worked(1);		result.merge(Checks.checkForMainMethods(getCu()));		pm.worked(1);		if (result.hasFatalError())			return result;				fNeedsImportToCurrentPackage= needsImportToCurrentPackage(new SubProgressMonitor(pm, 3, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL), getCu());		if (fNeedsImportToCurrentPackage)			result.merge(checkTopLevelTypeNameConflict(fNewPackage, getCu()));									result.merge(Checks.checkAffectedResourcesAvailability(getOccurrences(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL))));		pm.worked(5);		result.merge(checkReferencesInOurCompilationUnit(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)));		result.merge(checkReferencesInOtherCompilationUnits(new SubProgressMonitor(pm, 11, SubProgressMonitor.SUPPRESS_SUBTASK_LABEL)));		pm.done();		return result;	}