use of org.eclipse.vorto.codegen.prosystfi.tasks.FunctionalItemGeneratorTask in project vorto by eclipse.
the class ProSystGenerator method generateForFunctionBlock.
private void generateForFunctionBlock(InformationModel infomodel, InvocationContext ctx, FunctionblockModel fbm, IGeneratedWriter outputter, String[] imports) {
ChainedCodeGeneratorTask<FunctionblockModel> generator = new ChainedCodeGeneratorTask<FunctionblockModel>();
generator.addTask(new FunctionalItemGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, fbm.getNamespace()));
generator.addTask(new FunctionalItemImplGeneratorTask(JAVA_FILE_EXTENSION, SOURCE, fbm.getNamespace(), imports));
generator.generate(fbm, ctx, outputter);
}
Aggregations