Revision 69e39ae0
Added by Katja Luther about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/combo/AbstractComboElement.java | ||
---|---|---|
161 | 161 |
if (contents.length() == 0 || items.length == 0) { |
162 | 162 |
return new IContentProposal[0]; |
163 | 163 |
} |
164 |
StringMatcher matcher = new StringMatcher("*" + contents + "*", true, false); //$NON-NLS-1$ //$NON-NLS-2$
|
|
164 |
StringMatcher matcher = new StringMatcher(contents + "*", true, false); //$NON-NLS-1$ //$NON-NLS-2$ |
|
165 | 165 |
ArrayList<String> matches = new ArrayList<>(); |
166 | 166 |
for (int i = 0; i < items.length; i++) { |
167 | 167 |
if (matcher.match(items[i])) { |
Also available in: Unified diff
ref #7311: keep drop down open and adapt filter