Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [TCS] Launching Injection in Java
[TCS] Launching Injection in Java [message #16736] Sun, 20 July 2008 07:17 Go to next message
Eclipse UserFriend
Originally posted by: fox_wafszz.trashmail.net

Hello everybody,

I'm successfully using TCS and injecting xxx files to a xmi file using
right-click action "Inject XXX File to XXX Model" on files with extension
"xxx".

I'd like to know how to do that in a Java program to automate the
transformation and produce a xmi file.


Thanks in advance,
Fox
Re: [TCS] Launching Injection in Java [message #18263 is a reply to message #16736] Wed, 23 July 2008 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

> I'm successfully using TCS and injecting xxx files to a xmi file using
> right-click action "Inject XXX File to XXX Model" on files with
> extension "xxx".
>
> I'd like to know how to do that in a Java program to automate the
> transformation and produce a xmi file.

There are several examples on Eclipse.org (e.g., the ATL parser, the TCS
builder itself). The simplest is probably the one in method
getKM3FromFile of class org.eclipse.gmt.am3.dsls.km3.KM3Projector
(current CVS location:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.gmt/AM3 /org.eclipse.gmt.am3.dsls.km3/src/org/eclipse/gmt/am3/dsls/k m3/KM3Projector.java?revision=1.9&root=Technology_Projec t&view=markup).


Regards,

Frédéric Jouault
Re: [TCS] Launching Injection in Java [message #18380 is a reply to message #18263] Mon, 04 August 2008 14:00 Go to previous message
Eclipse UserFriend
Originally posted by: fox_wafszz.trashmail.net

Hello

Thank you for your example, it was very useful to understand how the TCS
injector has to be used.

Regards,
Fox
Previous Topic:[TCS] Install TCS...
Next Topic:Re: right newsgroup for XText questions
Goto Forum:
  


Current Time: Tue Apr 29 01:00:33 EDT 2025

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

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

Back to the top