|
Re: CaseInsensitiv Scoping - how to do it? [message #1822115 is a reply to message #1822110] |
Thu, 27 February 2020 14:07 |
|
just have a look what the scopeFor methods do
org.eclipse.xtext.scoping.Scopes.scopeFor(Iterable<? extends EObject>)
and create your own ones with
calling
public SimpleScope(IScope parent, Iterable<IEObjectDescription> descriptions, boolean ignoreCase) {
with true for ignorecase
is you neither find the SimpleScope class not the Scopes class
i assume there is something wrong with your classapth or imports
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: CaseInsensitiv Scoping - how to do it? [message #1822130 is a reply to message #1822115] |
Thu, 27 February 2020 16:47 |
Max Weißböck Messages: 4 Registered: February 2020 |
Junior Member |
|
|
Thanks, now I got it.
As it was a little tricky for me (and others had problems with this to) here is the pragmatic way I resolved it
- make a copy of Class org.eclipse.xtext.scoping.Scopes and name it <yourpackage>.scoping.IgnoreCaseScopes
- inside yor copied Class replace every occurence of new SimpleScope(...) with new SimpleScope(..., true)
- in your code replace every occurence of Scopes.scopeFor with IgnoreCaseScopes.scopeFor
I'm shure this is not the most elegant way to do it, but it (mostly) worked for me. I still have one problem, see next post.
[Updated on: Tue, 03 March 2020 08:35] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04683 seconds