Here is some tips for preparing a kermeta program in order to be launched by a user interface.
Use String parameters. The main operation that'll be started should take only String parameters.
operation myMain( inputFileURI : String, outputFileURI : String, option : String) is do // ... end
Example 2.1. Typical kermeta operation used as an entry point
If the code must be interpreted, the easiest way is to deploy the kermeta code in a plugin. all the required kermeta code, kmt, km, ecore must be in plugins as explained in Section 1.2, “Deploying a plugin with Kermeta code for interpreted mode”. The only exception is a bout the registered Ecore, which follow EMF way for deploying the java code for the ecore file.
Note | |
---|---|
There are some ways to pass to the launched program something more complex than String, however this requires a more coupled interaction and knownledge of the Interpreted or the Compiled code. If you need this, please ask on the user mailing list and explain you use case for further assistance. We'll be glad to guide you. |