PerformRefactoringOperation op =
new PerformRefactoringOperation(
r,
CheckConditionsOperation.FINAL_CONDITIONS
);
op.run(monitor);
// We get the parent java element
IJavaElement parent = javaElement.getParent();
if(parent instanceof IType) {
IType t = (IType)parent;
// From its children, we get the new property