Generators

org.topcased.properties.generator
Class PropertiesViewGenerator

java.lang.Object
  extended by org.topcased.generator.AbstractGenerator
      extended by org.topcased.properties.generator.PropertiesViewGenerator

public class PropertiesViewGenerator
extends AbstractGenerator

This class is the Entry point of the generation for a Topcased tabbed properties view by a *.propertiesconfigurator file
Creation 01 aug. 2006


Field Summary
static char SLASH
          A simple IPath separator
 
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
PropertiesViewGenerator(TabbedView tabbedView)
          Class 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 properties configuration
 java.lang.String getAdvanced()
           
 org.eclipse.core.resources.IProject getGeneratedProject()
           
static org.eclipse.core.runtime.IPath getPackageIPath(java.lang.String packageName)
          Returns IPath of the given packageName.
 java.lang.String getSections()
           
 java.lang.String getThePackage()
           
 
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
 

Field Detail

SLASH

public static final char SLASH
A simple IPath separator

See Also:
Constant Field Values
Constructor Detail

PropertiesViewGenerator

public PropertiesViewGenerator(TabbedView tabbedView)
Class constructor. Create a new properties view generator

Parameters:
tabbedView - the model input
Method Detail

getAdvanced

public java.lang.String getAdvanced()
Returns:
the advanced

getGeneratedProject

public org.eclipse.core.resources.IProject getGeneratedProject()
Returns:
the generatedProject

getSections

public java.lang.String getSections()
Returns:
the sections

getThePackage

public java.lang.String getThePackage()
Returns:
the thePackage

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 properties configuration

Specified by:
generate in class AbstractGenerator
Parameters:
monitor - the monitor for the work progression
Returns:
the generated IProject
Throws:
org.eclipse.core.runtime.CoreException - if the generation fails

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)

getPackageIPath

public static org.eclipse.core.runtime.IPath getPackageIPath(java.lang.String packageName)
Returns IPath of the given packageName. The parameter may have the following format: org.topcased.something.else The return IPath will replace the '.' into IPaths Separators

Parameters:
packageName - the package in java format
Returns:
IPath of the given package.

Generators

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