|Re: Case-insensitive linking with customised ScopeProvider [message #815026 is a reply to message #814233]
||Wed, 07 March 2012 06:10
| William Brodie-Tyrrell
Registered: March 2012
Ah, SimpleScope constructor with an ignoreCase parameter. Works now, thanks.|
public static IScope scopeFor(Iterable<? extends EObject> iter, boolean ignoreCase)
return new SimpleScope(IScope.NULLSCOPE,
Can I suggest that something similar to the above be inserted as an overload in Scopes? Or better yet, that Scopes.scopeFor be made Guice-aware so that it notices the IgnoreCaseLinking binding?
You'd not believe how much time I spent pondering making a toLowerCase Function<String,String> adapter to put between SimpleAttributeResolver.NAME_RESOLVER and QualifiedName.wrapper(). It wouldn't work of course because it'd only mangle names on the way into the table, not test them case-insensitively.
Powered by FUDForum
. Page generated in 0.02458 seconds