pm.beginTask("", 6); TextChangeManager manager= new TextChangeManager();  if (fUpdateReferences) addReferenceUpdates(manager, new SubProgressMonitor(pm, 3));  pm.worked(1);  addTypeDeclarationUpdate(manager); pm.worked(1);  addConstructorRenames(manager); pm.worked(1);  pm.subTask("searching for text matches..."); addTextMatches(manager, new SubProgressMonitor(pm, 1));  return manager;
try{ pm.beginTask("", 6); TextChangeManager manager= new TextChangeManager();  if (fUpdateReferences) addReferenceUpdates(manager, new SubProgressMonitor(pm, 3));  pm.worked(1);  addTypeDeclarationUpdate(manager); pm.worked(1);  addConstructorRenames(manager); pm.worked(1);  pm.subTask("searching for text matches..."); addTextMatches(manager, new SubProgressMonitor(pm, 1));  return manager; } finally{ pm.done(); }
	private TextChangeManager createChangeManager(IProgressMonitor pm) throws CoreException{		pm.beginTask("", 6);		TextChangeManager manager= new TextChangeManager();						if (fUpdateReferences)			addReferenceUpdates(manager, new SubProgressMonitor(pm, 3));		pm.worked(1);				addTypeDeclarationUpdate(manager);		pm.worked(1);				addConstructorRenames(manager);		pm.worked(1);				pm.subTask("searching for text matches...");		addTextMatches(manager, new SubProgressMonitor(pm, 1));				return manager;	}