mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
Merge pull request #996 from LorenzoBettini/lb/bug_491411
491411: Generated generator.Main uses createFileURI
This commit is contained in:
commit
62354a7ebf
1 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ class GeneratorFragment2 extends AbstractStubGeneratingFragment {
|
|||
protected void runGenerator(String string) {
|
||||
// Load the resource
|
||||
«ResourceSet» set = resourceSetProvider.get();
|
||||
«Resource» resource = set.getResource(«URI».createURI(string), true);
|
||||
«Resource» resource = set.getResource(«URI».createFileURI(string), true);
|
||||
|
||||
// Validate the resource
|
||||
«List»<«Issue»> list = validator.validate(resource, «CheckMode».ALL, «CancelIndicator».NullImpl);
|
||||
|
@ -262,7 +262,7 @@ class GeneratorFragment2 extends AbstractStubGeneratingFragment {
|
|||
def protected runGenerator(String string) {
|
||||
// Load the resource
|
||||
val set = resourceSetProvider.get
|
||||
val resource = set.getResource(«URI».createURI(string), true)
|
||||
val resource = set.getResource(«URI».createFileURI(string), true)
|
||||
|
||||
// Validate the resource
|
||||
val issues = validator.validate(resource, «CheckMode».ALL, «CancelIndicator».NullImpl)
|
||||
|
|
Loading…
Reference in a new issue