use of org.eclipse.jdt.internal.corext.refactoring.util.TextChangeManager in project che by eclipse.
the class MoveCuUpdateCreator method createChangeManager.
public TextChangeManager createChangeManager(IProgressMonitor pm, RefactoringStatus status) throws JavaModelException {
//$NON-NLS-1$
pm.beginTask("", 5);
try {
TextChangeManager changeManager = new TextChangeManager();
addUpdates(changeManager, new SubProgressMonitor(pm, 4), status);
addImportRewriteUpdates(changeManager);
return changeManager;
} catch (JavaModelException e) {
throw e;
} catch (CoreException e) {
throw new JavaModelException(e);
} finally {
pm.done();
}
}
Aggregations