public class TemplateConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.core.runtime.IPath |
containerPath |
protected java.util.Map<java.lang.String,IContentCreator> |
contentCreators |
protected java.lang.String |
fileName |
protected ITemplate |
template |
Constructor and Description |
---|
TemplateConfiguration(ITemplate template)
Constructs a new
TemplateConfiguration for the
given template data. |
Modifier and Type | Method and Description |
---|---|
void |
addContentCreator(java.lang.String key,
IContentCreator contentCreator)
Adds a content creator to be executed upon creation of the new model.
|
org.eclipse.core.runtime.IPath |
getContainerPath()
Get the container path location where the new model
will be created.
|
IContentCreator |
getContentCreator(java.lang.String key)
Get a content creator which has been contributed already for the given key.
|
java.util.Collection<IContentCreator> |
getContentCreators()
Get a collection of all content creators.
|
java.lang.String |
getFileName()
Get the file name of the new model.
|
ITemplate |
getTemplate()
Get the template data.
|
void |
setContainerPath(org.eclipse.core.runtime.IPath containerPath)
Sets the container patch location where the new model
will be create.
|
void |
setFileName(java.lang.String fileName)
Set the file name of the new model.
|
protected ITemplate template
protected java.lang.String fileName
protected org.eclipse.core.runtime.IPath containerPath
protected java.util.Map<java.lang.String,IContentCreator> contentCreators
public TemplateConfiguration(ITemplate template)
TemplateConfiguration
for the
given template data.template
- the template datapublic ITemplate getTemplate()
public org.eclipse.core.runtime.IPath getContainerPath()
public void setContainerPath(org.eclipse.core.runtime.IPath containerPath)
containerPath
- the container path locationpublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- the file name of the new modelpublic void addContentCreator(java.lang.String key, IContentCreator contentCreator)
key
- the content creator keycontentCreator
- the content creatorpublic IContentCreator getContentCreator(java.lang.String key)
key
- the content creator keypublic java.util.Collection<IContentCreator> getContentCreators()