use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-xtend by eclipse.
the class AbstractXtendRenameRefactoringTest method renameJavaElement.
protected void renameJavaElement(IType javaElement, String newName) throws CoreException, InterruptedException, InvocationTargetException {
syncUtil.totalSync(false);
RenameSupport renameSupport = RenameSupport.create(javaElement, newName, RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(workbench.getActiveWorkbenchWindow().getShell(), workbench.getActiveWorkbenchWindow());
syncUtil.totalSync(false);
assertTrue(compositeRefactoringProcessorAccess.isDisposed());
}
use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-xtend by eclipse.
the class AbstractXtendRenameRefactoringTest method renameJavaElement.
protected void renameJavaElement(IMethod javaElement, String newName) throws CoreException, InterruptedException, InvocationTargetException {
syncUtil.totalSync(false);
RenameSupport renameSupport = RenameSupport.create(javaElement, newName, RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(workbench.getActiveWorkbenchWindow().getShell(), workbench.getActiveWorkbenchWindow());
syncUtil.totalSync(false);
assertTrue(compositeRefactoringProcessorAccess.isDisposed());
}
Aggregations