Xtext Web Editor [message #1734627] |
Fri, 10 June 2016 02:34  |
Eclipse User |
|
|
|
Good morning all,
I'm currently working on a dsl for educational institutions. This DSL should provide features like describing course syllabi, program descriptions etc. Since the dsl should also be used by people who are not from the PC domain, i wanted to use the web editor.
However I did not manage to install one of the three Orion, Ace or CodeMirror after several hours of research and checks. Does there exist a tutorial for running one of these 3? Or could I get any help please?
Additionally I wanted to ask if the web editors provide the feature to create some sort of project explorer to create multiple files of my DSL? I've seen that dsl forge provides some sort of project explorer but I think it covers less functionalities than the Xtext web editors?
Thank you for any information and help
Benjamin
|
|
|
|
|
Re: Xtext Web Editor [message #1734639 is a reply to message #1734627] |
Fri, 10 June 2016 03:04   |
Eclipse User |
|
|
|
Thank you for your fast reply, well actually I've added in the MWE2Workflow in the language section the webSupport section : Here the code
language = StandardLanguage {
name = "lu.uni.lassy.messep.tesma.Tesma"
fileExtensions = "tes"
serializer = {
generateStub = false
}
[i]webSupport = {
generateHtmlExample = true
framework = "CODEMIRROR"
}[/i]
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
and I've changed the script section in the index.html file to
require.config({
paths: {
"jquery": "webjars/jquery/<version>/jquery.min",
"xtext/xtext-codemirror": "xtext/<version>/xtext-codemirror"
},
packages: [{
name: "codemirror",
location: "webjars/codemirror/<version>",
main: "lib/codemirror"
}]
});
require(["xtext/xtext-codemirror"], function(xtext) {
xtext.createEditor();
});
}
and then I've executed the jettyrun command, the server starts properly but the textbox is actually not editable in the web application, neither in chrome or safari.
In attachement, I've put a screenshot of the web browser.
Thank you in advance
[Updated on: Fri, 10 June 2016 03:05] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05942 seconds