Search in sources :

Example 1 with LatexInformationModelGeneratorTask

use of org.eclipse.vorto.codegen.latex.tasks.LatexInformationModelGeneratorTask in project vorto by eclipse.

the class LatexGenerator method generate.

public IGenerationResult generate(InformationModel infomodel, InvocationContext invocationContext, IVortoCodeGenProgressMonitor monitor) throws VortoCodeGeneratorException {
    GenerationResultZip zipOutputter = new GenerationResultZip(infomodel, getServiceKey());
    ChainedCodeGeneratorTask<InformationModel> generator = new ChainedCodeGeneratorTask<InformationModel>();
    generator.addTask(new LatexInformationModelGeneratorTask(LATEX_FILE_EXTENSION, LATEX_TARGET_PATH));
    generator.generate(infomodel, invocationContext, zipOutputter);
    return zipOutputter;
}
Also used : GenerationResultZip(org.eclipse.vorto.codegen.api.GenerationResultZip) InformationModel(org.eclipse.vorto.core.api.model.informationmodel.InformationModel) ChainedCodeGeneratorTask(org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask) LatexInformationModelGeneratorTask(org.eclipse.vorto.codegen.latex.tasks.LatexInformationModelGeneratorTask)

Aggregations

ChainedCodeGeneratorTask (org.eclipse.vorto.codegen.api.ChainedCodeGeneratorTask)1 GenerationResultZip (org.eclipse.vorto.codegen.api.GenerationResultZip)1 LatexInformationModelGeneratorTask (org.eclipse.vorto.codegen.latex.tasks.LatexInformationModelGeneratorTask)1 InformationModel (org.eclipse.vorto.core.api.model.informationmodel.InformationModel)1