How does the XText DSL example work with the e4 model workbench ecore model? [message #656274] |
Thu, 24 February 2011 20:15 |
Jesse 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 |
Sebastian Zarnekow 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02288 seconds