EGF Engine
Release 0.1.0

org.eclipse.egf.common.generator
Class EmfProjectGenerator

java.lang.Object
  extended by org.eclipse.egf.common.generator.EmfProjectGenerator

public class EmfProjectGenerator
extends Object

Helps to deal with EMF project generation.


Constructor Summary
EmfProjectGenerator(GeneratorAdapterFactory generatorAdapterFactory_p, EmfProjectType projectType_p)
          Constructor.
 
Method Summary
 boolean generate(Monitor monitor_p, GenModel genModel_p)
          Generate required project type for given genModel.
protected  boolean handleDiagnostic(Diagnostic diagnostic_p, String message_p)
          Handle a diagnostic.
protected  boolean initialize(GenModel genModel_p)
          Initialize the genModel
protected  boolean validate(GenModel genModel_p)
          Validate given genModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmfProjectGenerator

public EmfProjectGenerator(GeneratorAdapterFactory generatorAdapterFactory_p,
                           EmfProjectType projectType_p)
Constructor.

Parameters:
generatorAdapterFactory_p -
projectType_p -
Method Detail

initialize

protected boolean initialize(GenModel genModel_p)
Initialize the genModel

Parameters:
genModel_p -
Returns:
false if an error occurs; false otherwise.

generate

public boolean generate(Monitor monitor_p,
                        GenModel genModel_p)
Generate required project type for given genModel.

Parameters:
monitor_p -
genModel_p -

validate

protected boolean validate(GenModel genModel_p)
Validate given genModel.

Parameters:
genModel_p -

handleDiagnostic

protected boolean handleDiagnostic(Diagnostic diagnostic_p,
                                   String message_p)
Handle a diagnostic.

Parameters:
diagnostic_p -
message_p - the displayed message if an error occurs.
Returns:
false if an error occurs; true otherwise.

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.