cu.reconcile();
cu.reconcile(null);
	protected void updateExistingClass(IProgressMonitor monitor) throws CoreException, InterruptedException {		try {			IPackageFragment pack= getPackageFragment();			ICompilationUnit cu= pack.getCompilationUnit(getTypeName() + ".java"); //$NON-NLS-1$				if (!cu.exists()) {				createType(monitor);				fUpdatedExistingClassButton= false;				return;			}						IType suiteType= cu.getType(getTypeName());			monitor.beginTask(Messages.getString("NewTestSuiteWizPage.createType.beginTask"), 10); //$NON-NLS-1$			IMethod suiteMethod= suiteType.getMethod("suite", new String[] {}); //$NON-NLS-1$			monitor.worked(1);						String lineDelimiter= JUnitStubUtility.getLineDelimiterUsed(cu);			if (suiteMethod.exists()) {				ISourceRange range= suiteMethod.getSourceRange();				if (range != null) {					IBuffer buf= cu.getBuffer();					String originalContent= buf.getText(range.getOffset(), range.getLength());					StringBuffer source= new StringBuffer(originalContent);					//using JDK 1.4					//int start= source.toString().indexOf(startMarker) --> int start= source.indexOf(startMarker);					int start= source.toString().indexOf(startMarker);					if (start > -1) {						//using JDK 1.4						//int end= source.toString().indexOf(endMarker, start) --> int end= source.indexOf(endMarker, start)						int end= source.toString().indexOf(endMarker, start);						if (end > -1) {							monitor.subTask(Messages.getString("NewTestSuiteWizPage.createType.updating.suite_method")); //$NON-NLS-1$							monitor.worked(1);							end += endMarker.length();							source.replace(start, end, getUpdatableString());							buf.replace(range.getOffset(), range.getLength(), source.toString());							cu.reconcile();							originalContent= buf.getText(0, buf.getLength());							monitor.worked(1);							String formattedContent=								JUnitStubUtility.codeFormat(originalContent, 0, lineDelimiter);							buf.replace(0, buf.getLength(), formattedContent);							monitor.worked(1);							cu.save(new SubProgressMonitor(monitor, 1), false);						} else {							cannotUpdateSuiteError();						}					} else {						cannotUpdateSuiteError();					}				} else {					MessageDialog.openError(getShell(), Messages.getString("NewTestSuiteWizPage.createType.updateErrorDialog.title"), Messages.getString("NewTestSuiteWizPage.createType.updateErrorDialog.message")); //$NON-NLS-1$ //$NON-NLS-2$				}			} else {				suiteType.createMethod(getSuiteMethodString(), null, true, monitor);				ISourceRange range= cu.getSourceRange();				IBuffer buf= cu.getBuffer();				String originalContent= buf.getText(range.getOffset(), range.getLength());				monitor.worked(2);				String formattedContent=					JUnitStubUtility.codeFormat(originalContent, 0, lineDelimiter);				buf.replace(range.getOffset(), range.getLength(), formattedContent);				monitor.worked(1);				cu.save(new SubProgressMonitor(monitor, 1), false);			}			monitor.done();			fUpdatedExistingClassButton= true;		} catch (JavaModelException e) {			e.printStackTrace();		}	}