Creating custom, web-based editor [message #1708977] |
Wed, 23 September 2015 06:20 |
John Cole Messages: 66 Registered: June 2013 |
Member |
|
|
Hello everyone,
I've implemented a domain specific language (DSL) with Xtext and created my own Eclipse IDE based on that DSL.
The created IDE allows to define models with elements and element-specific parameters. Example:
Element MyElement
"Comment for my element"
subelement MySubelement
parameter1 1.0
parameter2 88.3
parameter3 12.1
end MyElement
Subelement MySubelement
"Comment for my subelement"
parameter4 2.1
parameter5 11.2
end MySubelement
I implemented a possibility to transform the model (but this is not the problem). The editor for the model definition is the standard text editor.
The parameters (parameter1, parameter2, ...) are defined in my Xtext language definition, as well as the elements (Element, Subelement, ...). Also the data types.
I now want to offer another editor, which is not a text editor but something like a form. The user should be able to open the model in it throgh right click on the model file > open with > DSL Form Editor. It should then look similar to the following mockup:
particularly important are the units for the parameters.
I thought about using the build-in web broweser and create the form using web technologies.
As I am new to Xtext and Eclipse-plugin-development I don't really know what could be the best way to implement that. Maybe there is also another, better solution.
Could someone help?
|
|
|
Powered by
FUDForum. Page generated in 0.03242 seconds