Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Dependencies for RCP Applications(Which feature to be used in product build)
Xtext Dependencies for RCP Applications [message #1736872] Mon, 04 July 2016 06:22 Go to next message
Philipp M. Fischer is currently offline Philipp M. FischerFriend
Messages: 67
Registered: November 2010
Location: Germany
Member
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. Smile

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. Evil or Very Mad

Cheers

Phil Smile
Re: Xtext Dependencies for RCP Applications [message #1736873 is a reply to message #1736872] Mon, 04 July 2016 06:54 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

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 Go to previous messageGo to next message
Philipp M. Fischer is currently offline Philipp M. FischerFriend
Messages: 67
Registered: November 2010
Location: Germany
Member
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" Wink

Cheers

Phil
Re: Xtext Dependencies for RCP Applications [message #1736877 is a reply to message #1736874] Mon, 04 July 2016 07:07 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Actually, I would do the same, i.e. collect 3rd party dependencies in a dependency feature.

~Karsten
Re: Xtext Dependencies for RCP Applications [message #1736884 is a reply to message #1736874] Mon, 04 July 2016 08:11 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
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


Previous Topic:Detecting the end of validation?
Next Topic:xtext with multiple file extensions
Goto Forum:
  


Current Time: Fri Mar 29 12:58:46 GMT 2024

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

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

Back to the top