Xtext Dependencies for RCP Applications [message #1736872] |
Mon, 04 July 2016 06:22 |
|
Hi,
We are working on a project where we build our own application based on RCP. We have some plugin based on xtext technology and we wan't to integrate it into our .product build.
The goal is to make our xtext based DSL run in the RCP application. We don't want to have all xtext functionality such as creating your own dsl in the RCP.
Which ones are the right dependencies to be used, since we could not figure it out. What we tried so far were these features:
org.eclipse.xtext.runtime
org.eclipse.xtext.sdk
Both of them could not solve all dependencies the xtext plugins are asking for.
Cheers
Phil
|
|
|
Re: Xtext Dependencies for RCP Applications [message #1736873 is a reply to message #1736872] |
Mon, 04 July 2016 06:54 |
|
In your case it might be better to include only the required bundles, not complete features. To find out these bundles create a launch configuration for your product, select your DSL plugins and then select "Add Required Plug-ins". This will automatically select your dependencies, which in turn you add to your product definition.
|
|
|
Re: Xtext Dependencies for RCP Applications [message #1736874 is a reply to message #1736873] |
Mon, 04 July 2016 06:57 |
|
Hi Karsten,
thanks, in fact that is very similar to what we are doing at the moment, we created our own little dependency feature which includes all required bundles. This is quite simple and works well. Still, i hoped for something more "clean"
Cheers
Phil
|
|
|
|
Re: Xtext Dependencies for RCP Applications [message #1736884 is a reply to message #1736874] |
Mon, 04 July 2016 08:11 |
|
On 04/07/2016 08:57, Phil F. wrote:
> Hi Karsten,
>
> thanks, in fact that is very similar to what we are doing at the moment,
> we created our own little dependency feature which includes all required
> bundles. This is quite simple and works well. Still, i hoped for
> something more "clean" ;)
>
> Cheers
>
> Phil
Hi
you might want to have a look at what we do in Java--,
https://github.com/LorenzoBettini/javamm
here we build an Eclipse distribution with (hopefully) minimal external
deps.
Our DSL sdk feature,
https://github.com/LorenzoBettini/javamm/blob/master/javamm.sdk/feature.xml
, has deps on features xtext.xbase and xtext.ui (and on bundle .pde.ui
since we rely on PDE).
Then we have a product dep feature,
https://github.com/LorenzoBettini/javamm/blob/master/javamm.product.ui.feature/feature.xml
, again, we specify dependencies, not inclusions.
hope this helps
Lorenzo
--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Powered by
FUDForum. Page generated in 0.03380 seconds