Lines 42-47
Link Here
|
42 |
package org.netbeans.modules.spring.beans.completion.completors; |
42 |
package org.netbeans.modules.spring.beans.completion.completors; |
43 |
|
43 |
|
44 |
import java.io.IOException; |
44 |
import java.io.IOException; |
|
|
45 |
import java.util.EnumSet; |
45 |
import java.util.List; |
46 |
import java.util.List; |
46 |
import java.util.StringTokenizer; |
47 |
import java.util.StringTokenizer; |
47 |
import javax.lang.model.element.TypeElement; |
48 |
import javax.lang.model.element.TypeElement; |
Lines 61-66
Link Here
|
61 |
import org.netbeans.modules.spring.java.MatchType; |
62 |
import org.netbeans.modules.spring.java.MatchType; |
62 |
import org.netbeans.modules.spring.java.Property; |
63 |
import org.netbeans.modules.spring.java.Property; |
63 |
import org.netbeans.modules.spring.java.PropertyFinder; |
64 |
import org.netbeans.modules.spring.java.PropertyFinder; |
|
|
65 |
import org.netbeans.modules.spring.java.PropertyType; |
64 |
import org.netbeans.modules.xml.text.syntax.dom.Tag; |
66 |
import org.netbeans.modules.xml.text.syntax.dom.Tag; |
65 |
|
67 |
|
66 |
/** |
68 |
/** |
Lines 147-156
Link Here
|
147 |
|
149 |
|
148 |
Property[] props = new PropertyFinder(startType, setterPrefix, eu, MatchType.PREFIX).findProperties(); |
150 |
Property[] props = new PropertyFinder(startType, setterPrefix, eu, MatchType.PREFIX).findProperties(); |
149 |
|
151 |
|
|
|
152 |
final EnumSet<PropertyType> typeWithSetters = EnumSet.of(PropertyType.READ_WRITE, PropertyType.WRITE_ONLY); |
150 |
for (Property prop : props) { |
153 |
for (Property prop : props) { |
|
|
154 |
final boolean hasSetter = typeWithSetters.contains(prop.getType()); |
155 |
if (hasSetter) { |
151 |
addCacheItem(SpringXMLConfigCompletionItem.createPropertyItem(getAnchorOffset(), prop)); |
156 |
addCacheItem(SpringXMLConfigCompletionItem.createPropertyItem(getAnchorOffset(), prop)); |
152 |
} |
157 |
} |
153 |
} |
158 |
} |
|
|
159 |
} |
154 |
}, false); |
160 |
}, false); |
155 |
} |
161 |
} |
156 |
|
162 |
|