Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Bringing Xtext (or parts of it) to the web
icon5.gif  Bringing Xtext (or parts of it) to the web [message #731050] Thu, 29 September 2011 18:58 Go to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
Hi together,

I just created two Xtext DSLs, one expression DSL and another one which reuses this DSL to create more complex language constructs. The plan: I want to create a graphical web based modeler which enables the user to define and edit the language constructs of my second DSL. The expressions should be defined as text within the modeled elements.

Are there ideas what is the best way to handle Xtext resources in the web context so it can be manipulated with a REST API. Is it the best way to hold the current edited document in the session and parse and serialize it for each manipulation (use the session store as workspace)?

What is the best way to create REST resources out of an EMF model. Would it be best to define a unique identifier per language construct which should be a REST resource? Or can I use the UUID mechanism of EMF Resources for this? If the UUID could be used, how to integrate the EMF UUIDs into my DSL serialized version?

When an expression is manipulated and I reparse it with the expression parser I get an object of type IParseResult which also contains the node model. To replace the old expression in the global emf model (second dsl) should be easy but is there a way to integrate the created node model into the node model of the global model so the formatting which is defined by the user for the parsed expression isn't lost?

Any ideas, hints and recommendations are welcome!

Thanks in advance.

Kind regards
Michael
icon7.gif  Re: Bringing Xtext (or parts of it) to the web [message #948861 is a reply to message #731050] Thu, 18 October 2012 12:59 Go to previous messageGo to next message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
One year is passed after I started this post and I successfully brought Xtext to the web Smile . I created a graphical web modeler based on Xtext. It supports multiple languages which reuse an expression language, auto completion, remote validation with error markers, expression validation on the client side, drag & drop, copy & paste, scopes with imports, a custom type system, function libraries, undo/redo and so on. It is all written using Xtext, Apache Wicket, Spring, and a few JavaScript libraries. I almost used all the above mentioned ideas for the implementation and they work like a charm. Unfortunately I can't post some screenshots or a video but if you got some questions you are welcome to ask.

BTW: Thanks to all who participate in this project and please provide a standalone library for the following releases. I still work with the org.eclipse.xtend2.standalone-2.2.1 library because I can't find a newer one.

Regards
Michael

OK, the amount of post views tells me, this seems to be an interesting topic.

[Updated on: Thu, 18 October 2012 13:03]

Report message to a moderator

Re: Bringing Xtext (or parts of it) to the web [message #961500 is a reply to message #948861] Sun, 28 October 2012 10:21 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
is your project available somewhere or is it closed-source?

cheers
Lorenzo

On 10/18/2012 02:59 PM, Michael Ernst wrote:
> One year is passed after I started this post and I successfully brought
> Xtext to the web :) . I created a graphical web modeler based on Xtext.
> It supports multiple languages which reuse an expression language, auto
> completion, remote validation with error markers, expression validation
> on the client side, drag & drop, copy & paste, scopes with imports, a
> custom type system, function libraries, undo/redo and so on. It is all
> written using Xtext, Apache Wicket, Spring, and a few JavaScript
> libraries. I almost used all the above mentioned ideas for the
> implementation and they work like a charm. Unfortunately I can't post
> some screenshots or a video but if you got some questions you are
> welcome to ask.
>
> BTW: Thanks to all who participate in this project and please provide a
> standalone library for the following releases. I still work with the
> org.eclipse.xtend2.standalone-2.2.1 library because I can't find a newer
> one.
>
> Regards
> Michael


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: Bringing Xtext (or parts of it) to the web [message #965754 is a reply to message #961500] Wed, 31 October 2012 13:31 Go to previous message
Michael Ernst is currently offline Michael ErnstFriend
Messages: 49
Registered: July 2010
Member
The project is closed source. But if you got some questions you are welcome to ask.
Previous Topic:Proxy Resolution issue (ResoureSet related? IResourceSetProvider how to?)
Next Topic:newLineifNotEmpty on Generator
Goto Forum:
  


Current Time: Thu Apr 25 20:47:13 GMT 2024

Powered by FUDForum. Page generated in 0.03210 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top