Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Question: DSL project with dependencies
Question: DSL project with dependencies [message #1817890] Mon, 02 December 2019 06:00 Go to next message
Eclipse UserFriend
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 06:03 Go to previous messageGo to next message
Eclipse UserFriend
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 ...
Re: Question: DSL project with dependencies [message #1817893 is a reply to message #1817891] Mon, 02 December 2019 06:17 Go to previous messageGo to next message
Eclipse UserFriend
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!

  • Attachment: dsl1_dsl2.png
    (Size: 28.93KB, Downloaded 202 times)
Re: Question: DSL project with dependencies [message #1817894 is a reply to message #1817893] Mon, 02 December 2019 06:25 Go to previous message
Eclipse UserFriend
in this case you should be able to set a project reference with eclipse means
Previous Topic:[Beginner] New line, tabs
Next Topic:Performance implication of using xtextResource.getContents().get(0)
Goto Forum:
  


Current Time: Thu Jul 03 05:12:46 EDT 2025

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

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

Back to the top