Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL Plugin
ATL Plugin [message #898749] Fri, 27 July 2012 08:46 Go to previous message
MeJ MeJ is currently offline MeJ MeJ
Messages: 9
Registered: July 2012
Junior Member
Hi,
I am using ATl plugin to lunch atl using java class.
Before i was running ATL files by using ATL configuration wizard.
The input i was giving in the configuration were:


ATL Module: sample.atl
Metamodel UML:sampleprofile.uml
Source Model system: samplemodel.uml
Target: output.uml

After running the output was the correct and the one i wanted.

The problem is that when i use the ATL plugin to lunch the atl files it only requires me as input:
Name of the ATL file and Name of the metamodel.
The main method in the java class generated is something like this:

public static void main(String[] args) {
try {

Model_CreateComponents runner = new Model_CreateComponents();
runner.loadModels("model\\sampleprofile.uml");
runner.doModel_CreateComponents(new NullProgressMonitor());
runner.saveModels("model\\output.uml");

} catch (ATLCoreException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (ATLExecutionException e) {
e.printStackTrace();
}
}

the problem is that i dont know where to specify the samplemodel.uml. Because this should be also as input. Therefore the output.uml i am getting is not the one i am expecting to get.

Does anyone know how can i specify this second file inside the generated java class ?

Thank you in advance!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Executing ATL transformation programatically issue
Next Topic:ATL plugin in Eclipse
Goto Forum:
  


Current Time: Sat May 18 09:13:59 EDT 2013

Powered by FUDForum. Page generated in 0.02091 seconds