org.eclipse.mtl.ide.ui.launching.strategy
Interface IMTLLaunchingStrategy

All Known Implementing Classes:
MTLPluginLaunchingStrategy

public interface IMTLLaunchingStrategy

An internal extension point is defined to specify multiple launching strategies. It is used to define a specific way of launching an MTL generation. The extension point "org.eclipse.mtl.ide.ui.launching" requires a fully qualified name of a Java class implementing this interface.

See Also:
MTLPluginLaunchingStrategy

Field Summary
static java.lang.String LAUNCHING_STRATEGY_EXTENSION_ID
          The identifier of the internal extension point specifying the implementation to use for launching strategy.
 
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.
 

Field Detail

LAUNCHING_STRATEGY_EXTENSION_ID

static final java.lang.String LAUNCHING_STRATEGY_EXTENSION_ID
The identifier of the internal extension point specifying the implementation to use for launching strategy. It is used to define a specific way of launching an MTL generation.

See Also:
Constant Field Values
Method Detail

doGenerate

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.

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.

Copyright 2008 Obeo
All Rights Reserved.