Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Runnable DSL File
Runnable DSL File [message #1740312] Thu, 11 August 2016 13:23 Go to next message
Dimg Cim is currently offline Dimg CimFriend
Messages: 59
Registered: December 2015
Member
Hi everybody,

how can I make my dsl file runnable?
I add a main method to the ModellInferer class.
Sometimes it works and sometimes it doesn't. What should be done to get the " run -> Java Application"?

I can run the Modell inferer Java class in the src-gen Folder, but the dsl file not.

Whats the issue?

Hope this is clear enough to understand.

Best regards
dim
Re: Runnable DSL File [message #1740315 is a reply to message #1740312] Thu, 11 August 2016 13:55 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
HI,

from your question it is not clear what you want to do. please elaborate.
did you do any customizations to do that?

(e.g. what is done in xtend.ide plugin?)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Runnable DSL File [message #1740326 is a reply to message #1740312] Thu, 11 August 2016 15:45 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

How should Eclipse know how to "run" a DSL file? For Eclipse it is just a known file format that is handled with a specialized editor, and the JVM model inferrer can produce a Java class which might even get a main method, if you implement it that way. You would have to create the link on your own that allows Eclipse to know how to execute the DSL file.
For unit tests implemented in Xtend, there is similar behavior. You can directly execute them from the context menu. So you might want to explore the Xtend UI source how this is achieved.
Re: Runnable DSL File [message #1740382 is a reply to message #1740326] Fri, 12 August 2016 13:04 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
you may follow https://bugs.eclipse.org/bugs/show_bug.cgi?id=378039

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext Project from or with Ecore model
Next Topic:Controlling Order of Build/Inferer in XText/XBase
Goto Forum:
  


Current Time: Thu Apr 25 14:07:16 GMT 2024

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

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

Back to the top