Revision 46505 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/complements/search/SearchImpl.java
SearchImpl.java | ||
---|---|---|
137 | 137 |
} |
138 | 138 |
} |
139 | 139 |
|
140 |
for (FeatureAttributeDescriptor attribute : extra) { |
|
141 |
if (contains(mostUsed, attribute.getName())) { |
|
142 |
continue; |
|
140 |
if(extra != null){ |
|
141 |
for (FeatureAttributeDescriptor attribute : extra) { |
|
142 |
if (contains(mostUsed, attribute.getName())) { |
|
143 |
continue; |
|
144 |
} |
|
145 |
if (contains(favorites, attribute.getName())) { |
|
146 |
continue; |
|
147 |
} |
|
148 |
if (filter.test(attribute)) { |
|
149 |
normal.add(new AnOrderedAttribute(attribute, OrderedAttribute.TYPE_EXTRA)); |
|
150 |
} |
|
143 | 151 |
} |
144 |
if (contains(favorites, attribute.getName())) { |
|
145 |
continue; |
|
146 |
} |
|
147 |
if (filter.test(attribute)) { |
|
148 |
normal.add(new AnOrderedAttribute(attribute, OrderedAttribute.TYPE_EXTRA)); |
|
149 |
} |
|
150 | 152 |
} |
151 | 153 |
|
152 | 154 |
Comparator<OrderedAttribute> comparatorAdapter = new Comparator<OrderedAttribute>() { |
Also available in: Unified diff