Changing the default behavior of Eclipse getters / seters

In Eclipse Kepler, when you create getters / setters (for java code), a window appears in which the default selection in “field access in type declaration” means “use getters and setters”, but I always use another (“save link on the field "), and I would like to make it the default.

Is there any way to do this?

Thanks a lot!

+4
source share
1 answer

There is no hard code in the source. I had the same problem as fixing org.eclipse.jdt.ui {version} .jar:

  • org \ eclipse \ JDT \ internal \ corext \ refactoring \ Sef \ SelfEncapsulateFieldRefactoring

change in constructor fEncapsulateDeclaringClass= true;tofEncapsulateDeclaringClass= false;

  • \\JDT\\\\\SelfEncapsulateFieldInputPage

createFieldAccessBlock, setSelected(true) ​​ "keep reference".

+5

All Articles