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:
parent
cdc140c7c8
commit
685f0ac77d
1 changed files with 4 additions and 1 deletions
|
|
@ -1826,6 +1826,9 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* This class provides case insensitive search for the {@link Combobox}.
|
||||
*/
|
||||
private class SimpleListModelExt extends SimpleListModel {
|
||||
|
||||
public SimpleListModelExt(List data) {
|
||||
|
|
@ -1851,7 +1854,7 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
}
|
||||
|
||||
public boolean entryMatchesText(String entry, String text) {
|
||||
return entry.toLowerCase().startsWith(text.toLowerCase());
|
||||
return entry.toLowerCase().contains(text.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue