# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: D:\ws\main # 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: spring.beans/src/org/netbeans/modules/spring/beans/completion/completors/PropertyCompletor.java --- spring.beans/src/org/netbeans/modules/spring/beans/completion/completors/PropertyCompletor.java +++ spring.beans/src/org/netbeans/modules/spring/beans/completion/completors/PropertyCompletor.java @@ -42,6 +42,7 @@ package org.netbeans.modules.spring.beans.completion.completors; import java.io.IOException; +import java.util.EnumSet; import java.util.List; import java.util.StringTokenizer; import javax.lang.model.element.TypeElement; @@ -61,6 +62,7 @@ import org.netbeans.modules.spring.java.MatchType; import org.netbeans.modules.spring.java.Property; import org.netbeans.modules.spring.java.PropertyFinder; +import org.netbeans.modules.spring.java.PropertyType; import org.netbeans.modules.xml.text.syntax.dom.Tag; /** @@ -147,10 +149,14 @@ Property[] props = new PropertyFinder(startType, setterPrefix, eu, MatchType.PREFIX).findProperties(); + final EnumSet typeWithSetters = EnumSet.of(PropertyType.READ_WRITE, PropertyType.WRITE_ONLY); for (Property prop : props) { + final boolean hasSetter = typeWithSetters.contains(prop.getType()); + if (hasSetter) { addCacheItem(SpringXMLConfigCompletionItem.createPropertyItem(getAnchorOffset(), prop)); } } + } }, false); }