Generators

org.topcased.outline.generator
Class OutlineGenerator

java.lang.Object
  extended by org.topcased.generator.AbstractGenerator
      extended by org.topcased.outline.generator.OutlineGenerator

public class OutlineGenerator
extends AbstractGenerator

The outline generator.
Creation : 3 nov. 2005


Field Summary
 
Fields inherited from class org.topcased.generator.AbstractGenerator
JAVA_BUILDER, JCONTROL_MODEL_NAME, MANIFEST_BUILDER, PDE_NATURE, PROPERTIES_ENCODING, SCHEMA_BUILDER, SOURCE_DIRECTORY
 
Constructor Summary
OutlineGenerator(OutlineConfiguration configuration)
          Constructor.
 
Method Summary
protected  JETEmitter createJETEmitter(java.lang.String templateURI)
          Creates the JET Emitter to use for the generation.
 org.eclipse.core.resources.IProject generate(org.eclipse.core.runtime.IProgressMonitor monitor)
          Launch the generation for the current outline configuration
protected  java.lang.String getTemplateURI(java.lang.String relativePath)
          Returns a template URI for the given path relative to this generator bundle.
 
Methods inherited from class org.topcased.generator.AbstractGenerator
addDefaultBuilders, addDefaultNatures, applyTemplate, createEMFProject, createPackage, getTemplateURI, organizeImports, validateEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutlineGenerator

public OutlineGenerator(OutlineConfiguration configuration)
Constructor.

Parameters:
configuration - the outline configuration to generate the outline
Method Detail

createJETEmitter

protected JETEmitter createJETEmitter(java.lang.String templateURI)
Description copied from class: AbstractGenerator
Creates the JET Emitter to use for the generation.

Specified by:
createJETEmitter in class AbstractGenerator
Parameters:
templateURI - the template URI.
Returns:
a JET Emitter
See Also:
AbstractGenerator.createJETEmitter(java.lang.String)

generate

public org.eclipse.core.resources.IProject generate(org.eclipse.core.runtime.IProgressMonitor monitor)
                                             throws org.eclipse.core.runtime.CoreException
Launch the generation for the current outline configuration

Specified by:
generate in class AbstractGenerator
Parameters:
monitor - the monitor for the work progression
Returns:
the generated project
Throws:
org.eclipse.core.runtime.CoreException - if the generation fails
See Also:
AbstractGenerator.generate(org.eclipse.core.runtime.IProgressMonitor)

getTemplateURI

protected java.lang.String getTemplateURI(java.lang.String relativePath)
Returns a template URI for the given path relative to this generator bundle.

Parameters:
relativePath -
Returns:
a string URI

Generators

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.