Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How does the XText DSL example work with the e4 model workbench ecore model?
How does the XText DSL example work with the e4 model workbench ecore model? [message #656274] Thu, 24 February 2011 20:15 Go to next message
Jesse  is currently offline Jesse Friend
Messages: 10
Registered: January 2011
Junior Member
Hey,

So I was looking at the example DSL for the e4 model workbench which was posted in https://github.com/meysholdt/e4dsl... I understand that it uses a modified, intermediary ecore model, and that it can be transformed to the actual e4 model on demand. My question is how? Is there code somewhere handles this? Also, there have been changes to the e4 model since the example was posted, so I'm a little curious to see if this will still work.

Oh, I'm aware that the example is only supported on XText 1.01. This is okay for now. As soon as I figure this out, I can try to get it working on XText 2.0. I already took a look, and it seems like most of the errors are just from importing the wrong packages (it looks like some stuff got moved around or renamed) and subtle API changes.

Anyway, sorry if this is a dumb question, but I'm still relatively new to XText. If anyone could help shed some light, I would much appreciate it!

Thanks!

- Jesse
Re: How does the XText DSL example work with the e4 model workbench ecore model? [message #656295 is a reply to message #656274] Thu, 24 February 2011 23:23 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Jesse,

the sample was just a tech demo for last years EclipseCon. As we got a
lot of positive feedback, we made it publicly available. However, it did
not get much traction and as we did not have the resources to maintain
it, it got out of date.
The transformation code can be found in the ui plugin. It is implemented
by means of a builder participant:
https://github.com/meysholdt/e4dsl/tree/master/org.eclipse.e 4.ui.model.workbench.xtext.ui/src/org/eclipse/e4/ui/model/wo rkbench/ui/builder

It should be possible to adapt the transformation to the latest changes
in the e4 workbench model.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 24.02.11 21:16, schrieb Jesse:
> Hey,
>
> So I was looking at the example DSL for the e4 model workbench which was
> posted in https://github.com/meysholdt/e4dsl.. I understand that it
> uses a modified, intermediary ecore model, and that it can be
> transformed to the actual e4 model on demand. My question is how? Is
> there code somewhere handles this? Also, there have been changes to the
> e4 model since the example was posted, so I'm a little curious to see if
> this will still work.
> Oh, I'm aware that the example is only supported on XText 1.01. This is
> okay for now. As soon as I figure this out, I can try to get it working
> on XText 2.0. I already took a look, and it seems like most of the
> errors are just from importing the wrong packages (it looks like some
> stuff got moved around or renamed) and subtle API changes.
> Anyway, sorry if this is a dumb question, but I'm still relatively new
> to XText. If anyone could help shed some light, I would much appreciate it!
>
> Thanks!
>
> - Jesse
Re: How does the XText DSL example work with the e4 model workbench ecore model? [message #656319 is a reply to message #656274] Fri, 25 February 2011 05:54 Go to previous message
Jesse  is currently offline Jesse Friend
Messages: 10
Registered: January 2011
Junior Member
Ah, great. Thank you! I'll have a look through, and I'll repost if I have any further questions.

Thanks again.

- Jesse
Previous Topic:TextStyle default font with different size
Next Topic:ConcreteSyntaxEValidator: Works in XTextEditor but not Sample EMF Editor
Goto Forum:
  


Current Time: Tue Apr 23 13:46:41 GMT 2024

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

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

Back to the top