org.eclipse.mtl.ide.ui.wizards.newfile
Class CreateTemplateData

java.lang.Object
  extended by org.eclipse.mtl.ide.ui.wizards.newfile.CreateTemplateData

public class CreateTemplateData
extends java.lang.Object

Configuring a new template created by the 'MTLNewTemplatesWizard' wizard.


Constructor Summary
CreateTemplateData(MTLNewTemplateWizardPage page)
          Constructor.
 
Method Summary
 java.lang.String getGeneratedFileExtension()
          Generated files extension.
 java.lang.String getTemplateContainer()
          The path in the workspace of the template container.
 java.lang.String getTemplateContent()
          Gets the content of the template.
 java.lang.String getTemplateFileType()
          The type for which some files are generated.
 java.lang.String getTemplateJavaClassShortName()
          A java file can be found next to the template file.
 java.lang.String getTemplateMetamodel()
          Gets the metamodel URI which defines the available types in the new template.
 java.lang.String getTemplateShortName()
          The short name of the template file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTemplateData

public CreateTemplateData(MTLNewTemplateWizardPage page)
Constructor.

Parameters:
page - is the page that contains the settings of the new template
Method Detail

getTemplateContainer

public java.lang.String getTemplateContainer()
The path in the workspace of the template container.

Returns:
the template container

getTemplateShortName

public java.lang.String getTemplateShortName()
The short name of the template file.

Returns:
the short name of the template file

getTemplateJavaClassShortName

public java.lang.String getTemplateJavaClassShortName()
A java file can be found next to the template file. It provides a programmatical way to launch a code generation. This method returns the short name of the java file (without file extension). For example, 'Generate' is the java short name of the file 'generate.mtl'.

Returns:
the java name of the template

getTemplateMetamodel

public java.lang.String getTemplateMetamodel()
Gets the metamodel URI which defines the available types in the new template.

Returns:
the metamodel URI

getTemplateFileType

public java.lang.String getTemplateFileType()
The type for which some files are generated.

Returns:
the type name

getGeneratedFileExtension

public java.lang.String getGeneratedFileExtension()
Generated files extension.

Returns:
the generated file extension

getTemplateContent

public java.lang.String getTemplateContent()
Gets the content of the template.

Returns:
the textual content of the template

Copyright 2008 Obeo
All Rights Reserved.