encapsulation.setGetterName("get" + field.getElementName());
encapsulation.setSetterName("set" + field.getElementName());
// encapsulation.setGenerateJavadoc(true);
// encapsulation.setConsiderVisibility(true);
Refactoring r = encapsulation;
PerformRefactoringOperation op =
new PerformRefactoringOperation(
r,
CheckConditionsOperation.INITIAL_CONDITONS
);
op.run(new NullProgressMonitor());
/*
* PerformRefactoringOperation op =
* new PerformRefactoringOperation(
* r,
* CheckConditionsOperation