use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-xtend by eclipse.
the class RenameJvmOperationTest method renameJavaElement.
public void renameJavaElement(final IType javaElement, final String newName) throws Exception {
this.syncUtil.totalSync(false);
final RenameSupport renameSupport = RenameSupport.create(javaElement, newName, RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(this.workbench.getActiveWorkbenchWindow().getShell(), this.workbench.getActiveWorkbenchWindow());
this.syncUtil.totalSync(false);
Assert.assertTrue(this.compositeRefactoringProcessorAccess.isDisposed());
}
use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-xtend by eclipse.
the class XImportSectionUpdateOnRenameTest method renameJavaElement.
public void renameJavaElement(final IMethod javaElement, final String newName) throws Exception {
this.syncUtil.totalSync(false);
final RenameSupport renameSupport = RenameSupport.create(javaElement, newName, RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(this.workbench.getActiveWorkbenchWindow().getShell(), this.workbench.getActiveWorkbenchWindow());
this.syncUtil.totalSync(false);
Assert.assertTrue(this.compositeRefactoringProcessorAccess.isDisposed());
}
use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-eclipse by eclipse.
the class RefactoringTest method renameJavaClass.
protected void renameJavaClass() throws Exception {
RenameSupport renameSupport = RenameSupport.create(javaProject.findType("test.JavaClass"), "NewJavaClass", RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(activeWorkbenchWindow.getShell(), activeWorkbenchWindow);
waitForBuild();
}
use of org.eclipse.jdt.ui.refactoring.RenameSupport in project xtext-xtend by eclipse.
the class AbstractXtendRenameRefactoringTest method renameJavaElement.
protected void renameJavaElement(IField 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 RenameJvmOperationTest method renameJavaElement.
public void renameJavaElement(final IMethod javaElement, final String newName) throws Exception {
this.syncUtil.totalSync(false);
final RenameSupport renameSupport = RenameSupport.create(javaElement, newName, RenameSupport.UPDATE_REFERENCES);
renameSupport.perform(this.workbench.getActiveWorkbenchWindow().getShell(), this.workbench.getActiveWorkbenchWindow());
this.syncUtil.totalSync(false);
Assert.assertTrue(this.compositeRefactoringProcessorAccess.isDisposed());
}
Aggregations