mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
491411: Generated generator.Main uses createFileURI
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=491411 Signed-off-by: Lorenzo Bettini <lorenzo.bettini@gmail.com>
This commit is contained in:
parent
a90c3af532
commit
dc145b5fc7
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