jira-integration: Allow to search labels by any chars and not only the first ones

Add simple comment explaining the purpose of SimpleListModelExt.

FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
Manuel Rego Casasnovas 2013-02-01 11:34:34 +01:00
parent cdc140c7c8
commit 685f0ac77d

View file

@ -1826,6 +1826,9 @@ public class OrderCRUDController extends GenericForwardComposer {
} }
/**
* This class provides case insensitive search for the {@link Combobox}.
*/
private class SimpleListModelExt extends SimpleListModel { private class SimpleListModelExt extends SimpleListModel {
public SimpleListModelExt(List data) { public SimpleListModelExt(List data) {
@ -1851,7 +1854,7 @@ public class OrderCRUDController extends GenericForwardComposer {
} }
public boolean entryMatchesText(String entry, String text) { public boolean entryMatchesText(String entry, String text) {
return entry.toLowerCase().startsWith(text.toLowerCase()); return entry.toLowerCase().contains(text.toLowerCase());
} }
} }