org.eclipse.mtl.ide.ui.launching.strategy
Class MTLPluginLaunchingStrategy

java.lang.Object
  extended by org.eclipse.mtl.ide.ui.launching.strategy.MTLPluginLaunchingStrategy
All Implemented Interfaces:
IMTLLaunchingStrategy

public class MTLPluginLaunchingStrategy
extends java.lang.Object
implements IMTLLaunchingStrategy

Default MTL Plug-in launching strategy. It is used to launch an MTL application in the current Eclipse thread.


Field Summary
 
Fields inherited from interface org.eclipse.mtl.ide.ui.launching.strategy.IMTLLaunchingStrategy
LAUNCHING_STRATEGY_EXTENSION_ID
 
Constructor Summary
MTLPluginLaunchingStrategy()
           
 
Method Summary
 void doGenerate(Module module, java.util.List<java.lang.String> templateNames, org.eclipse.emf.ecore.EObject model, java.util.List<? extends java.lang.Object> arguments, java.io.File generationRoot)
          Launches the generation for a list of MTL templates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTLPluginLaunchingStrategy

public MTLPluginLaunchingStrategy()
Method Detail

doGenerate

public void doGenerate(Module module,
                       java.util.List<java.lang.String> templateNames,
                       org.eclipse.emf.ecore.EObject model,
                       java.util.List<? extends java.lang.Object> arguments,
                       java.io.File generationRoot)
Launches the generation for a list of MTL templates.

Specified by:
doGenerate in interface IMTLLaunchingStrategy
Parameters:
module - the module
templateNames - names of the module templates that are to be generated
model - input model for these MTL templates
arguments - arguments of the template call
generationRoot - this will be used as the root for the generated files. This can be null, in which case the user home directory should be used as root.
See Also:
IMTLLaunchingStrategy.doGenerate(org.eclipse.mtl.Module, java.util.List, org.eclipse.emf.ecore.EObject, java.util.List, java.io.File)

Copyright 2008 Obeo
All Rights Reserved.