private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, boolean doResolve, IProgressMonitor monitor) throws OperationCanceledException {
private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, IProgressMonitor monitor) throws OperationCanceledException {
	private void doRunOnMultiple(ICompilationUnit[] cus, MultiStatus status, boolean doResolve, IProgressMonitor monitor) throws OperationCanceledException {		if (monitor == null) {			monitor= new NullProgressMonitor();		}				monitor.beginTask(ActionMessages.getString("OrganizeImportsAction.multi.op.description"), cus.length); //$NON-NLS-1$		try {			IPreferenceStore store= PreferenceConstants.getPreferenceStore();			String[] prefOrder= JavaPreferencesSettings.getImportOrderPreference(store);			int threshold= JavaPreferencesSettings.getImportNumberThreshold(store);			boolean ignoreLowerCaseNames= store.getBoolean(PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE);				IChooseImportQuery query= new IChooseImportQuery() {				public TypeInfo[] chooseImports(TypeInfo[][] openChoices, ISourceRange[] ranges) {					throw new OrganizeImportError();				}			};				for (int i= 0; i < cus.length; i++) {				ICompilationUnit cu= cus[i];				String cuLocation= cu.getPath().makeRelative().toString();									cu= JavaModelUtil.toWorkingCopy(cu);										monitor.subTask(cuLocation);					OrganizeImportsOperation op= new OrganizeImportsOperation(cu, prefOrder, threshold, ignoreLowerCaseNames, !cu.isWorkingCopy(), doResolve, query);				runInSync(op, cuLocation, status, monitor);					if (monitor.isCanceled()) {						throw new OperationCanceledException();					}										IProblem parseError= op.getParseError();					if (parseError != null) {						String message= ActionMessages.getFormattedString("OrganizeImportsAction.multi.error.parse", cuLocation); //$NON-NLS-1$						status.add(new Status(Status.INFO, JavaUI.ID_PLUGIN, Status.ERROR, message, null));					} 			}		} finally {			monitor.done();		}	}