Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Question: DSL project with dependencies
Question: DSL project with dependencies [message #1817890] Mon, 02 December 2019 11:00 Go to next message
Ravi Nallappan is currently offline Ravi NallappanFriend
Messages: 12
Registered: September 2014
Junior Member
Hi,

This is may not be rare scenario, however I need some pointer on how should I approach this situations and how.

I have created cross-model reference and its working fine when DSL 1 refers to DSL 2 and both are in same project (launched as eclipse workbench).

However, how should this made to work if DSL1
1. resides in another project? (e.g something like dependent project)
2. resides in jar file that added as file to the project. (e.g something like dependency library)

I need to handle both above scenarios. Thanks.

Re: Question: DSL project with dependencies [message #1817891 is a reply to message #1817890] Mon, 02 December 2019 11:03 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member
Hi,

are you talking about the mydsl1 files or the org.yourcomparany.mydsl1/ide/ui projects?
if the first: this works ootb if the project is a java project
if the second: do you use maven, gradle, tycho ...


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Question: DSL project with dependencies [message #1817893 is a reply to message #1817891] Mon, 02 December 2019 11:17 Go to previous messageGo to next message
Ravi Nallappan is currently offline Ravi NallappanFriend
Messages: 12
Registered: September 2014
Junior Member
These are "mydsl1" files.

index.php/fa/36884/0/

I can see it works when I create those in Java projects instead of general.

However, these are not Java project - eventually need to be domain specific project and the dependencies project/lib features need to be implemented.

So how do i do that and where do i start? Thanks!

Re: Question: DSL project with dependencies [message #1817894 is a reply to message #1817893] Mon, 02 December 2019 11:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13637
Registered: July 2009
Senior Member
in this case you should be able to set a project reference with eclipse means

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[Beginner] New line, tabs
Next Topic:Performance implication of using xtextResource.getContents().get(0)
Goto Forum:
  


Current Time: Sun Oct 25 20:26:53 GMT 2020

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

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

Back to the top