Load a xtext-file to Xtext Web [message #1805427] |
Mon, 15 April 2019 05:10  |
Eclipse User |
|
|
|
Hi again,
I customize the xtext Web Editor Ace.
I have a saved xtextfile, created with the editor, in a database. I try to load it again in the editor. For this i made my own service in the servlet.
I've got some code for the IServerResourceHandler get()-Method but this fails in my method.
val uri = URI.createFileURI("c:\\tmp\\Load.mydsl)")
val resourceSet = resourceSetProvider.get(file, serviceContext)
val resource = resourceSet.getResource(uri, true) as XtextResource
return documentProvider. get(resourceId, serviceContext) => [
setInput(resource)
]
Exception: Cannot create a resource for 'file:/c:/tmp/Load.mydsl)'; a registered resource factory is needed
I have the file in c:\tmp and want to show it in the editor for update purpose.
I'm not sure if i need this factory and i dont't know how.
Thanks,
Markus
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02483 seconds