# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/beci/source/jet-undo # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: refactoring.java/apichanges.xml --- refactoring.java/apichanges.xml Base (BASE) +++ refactoring.java/apichanges.xml Locally Modified (Based On LOCAL) @@ -49,6 +49,22 @@ Java Refactoring API + + + Added option to generate PropertyChangeSupport in EncapsulateFieldRefactoring. + + + + + +

+ Added option to generate PropertyChangeSupport in EncapsulateFieldRefactoring. +

+
+ + +
+ Added new refactoring and dependent change in ChangeParameterRefactoring. Index: refactoring.java/nbproject/project.properties --- refactoring.java/nbproject/project.properties Base (BASE) +++ refactoring.java/nbproject/project.properties Locally Modified (Based On LOCAL) @@ -1,7 +1,7 @@ javac.source=1.6 javadoc.arch=${basedir}/arch.xml -spec.version.base=1.30.0 +spec.version.base=1.31.0 #test configs test.config.find.includes=\ **/FindUsagesSuite.class Index: refactoring.java/src/org/netbeans/modules/refactoring/java/api/EncapsulateFieldRefactoring.java --- refactoring.java/src/org/netbeans/modules/refactoring/java/api/EncapsulateFieldRefactoring.java Base (BASE) +++ refactoring.java/src/org/netbeans/modules/refactoring/java/api/EncapsulateFieldRefactoring.java Locally Modified (Based On LOCAL) @@ -63,6 +63,8 @@ private Set methodModifiers; private Set fieldModifiers; private boolean alwaysUseAccessors; + private boolean isGeneratePropertyChangeSupport; + private boolean isGenerateVetoableSupport; /** * Creates a new instance of EncapsulateFieldRefactoring @@ -157,4 +159,41 @@ public void setAlwaysUseAccessors(boolean alwaysUseAccessors) { this.alwaysUseAccessors = alwaysUseAccessors; } + + /** + * Should be PropertyChangeSupport generated? + * @return + * @since 1.31 + */ + public boolean isGeneratePropertyChangeSupport() { + return isGeneratePropertyChangeSupport; } + + /** + * Should be PropertyChangeSupport generated? + * @param isGeneratePropertyChangeSupport + * @since 1.31 + */ + public void setGeneratePropertyChangeSupport(boolean isGeneratePropertyChangeSupport) { + this.isGeneratePropertyChangeSupport = isGeneratePropertyChangeSupport; + } + + /** + * Should be VetoableChangeSupport generated? + * @return + * @since 1.31 + */ + public boolean isGenerateVetoableChangeSupport() { + return isGenerateVetoableSupport; + } + + /** + * Should be VetoableChangeSupport generated? + * @param isGenerateVetoableChangeSupport + * @since 1.31 + */ + public void setGenerateVetoableSupport(boolean isGenerateVetoableChangeSupport) { + this.isGenerateVetoableSupport = isGenerateVetoableChangeSupport; + } + +}