public abstract class AbstractVelocityContent extends Object implements org.eclipse.help.IHelpContentProducer
getContentFromTemplate(String, String, Callable)
in your
IHelpContentProducer.getInputStream(String, String, Locale)
implementation.Constructor and Description |
---|
AbstractVelocityContent() |
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getContentFromTemplate(String contentId,
String templateId,
Callable<org.apache.velocity.VelocityContext> contextFactory)
Generate content from the template and the given context factory.
|
protected abstract InputStream |
getTemplate(String templateId)
Get the template content.
|
protected InputStream getContentFromTemplate(String contentId, String templateId, Callable<org.apache.velocity.VelocityContext> contextFactory) throws Exception
contentId
- the content idtemplateId
- the template id (there may be multiple templates)contextFactory
- the context factory, is called once or not at allIHelpContentProducer.getInputStream(String, String, Locale)
Exception
- if an error occurs creating the contentprotected abstract InputStream getTemplate(String templateId) throws Exception
templateId
- the template id (there may be multiple templates)Exception
- if an error occurs retrieving the templateBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a