RenameRefactoring renameRefactoring = new RenameRefactoring(new PyRenameEntryPoint(request));
request.fillInitialNameAndOffset();
final PyRenameRefactoringWizard wizard = new PyRenameRefactoringWizard(renameRefactoring, "Rename",
"inputPageDescription", request, request.initialName);
try {
RefactoringWizardOpenOperation op = new RefactoringWizardOpenOperation(wizard);
op.run(PyAction.getShell(), "Rename Refactor Action");
} catch (InterruptedException e) {
// do nothing. User action got cancelled
}
} catch (Exception e) {
Log.log(e);