Commit bde09a80 authored by Simon Barner's avatar Simon Barner

Merge branch '3953' into 'master'

3953: Make dynamic tree content provider filter case insensitive

See merge request !298
parents 3c1ec507 39c06bd2
DataDictionaryFXEditor.java 225c54161a107a8f17caa1f3ffdaee607ba19cfd GREEN
DataDictionaryFXEditorBinding.java 02fd7a3dfde670b9cfd09a783c090833444c418d GREEN
DataDictionaryFXEditorContentProvider.java 855cde53505172d1bf5743b9b4f53aaa50548962 GREEN
DataDictionaryFXEditorContentProvider.java fb4e6ecacda004d3302279b2cce7fc58cd36524c GREEN
DataDictionaryFXEditorUIProvider.java 8d274efce83461d51a705938bc3dcd93bbf38107 GREEN
DataDictionaryFXEvaluator.java 55cbb923079b04ff66a7679904ec1c77a5a0b917 GREEN
DataDictionaryFXEvaluatorBinding.java aab93436c2b25c6b8673cec7526e2d40756c1e10 GREEN
......@@ -71,11 +71,12 @@ final class DataDictionaryFXEditorContentProvider extends DynamicTreeContentProv
if(eo instanceof INamedCommentedElement) {
INamedCommentedElement nce = (INamedCommentedElement)eo;
String name = nce.getName();
if(name != null && name.contains(filterValue)) {
String effectiveFilter = filterValue.toLowerCase();
if(name != null && name.toLowerCase().contains(effectiveFilter)) {
return true;
}
String comment = nce.getComment();
return comment != null && comment.contains(filterValue);
return comment != null && comment.toLowerCase().contains(effectiveFilter);
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment