Skip to content

Commit

Permalink
Added missing comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Apr 3, 2024
1 parent bce2178 commit 6928f6b
Showing 1 changed file with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,24 @@
//Start of user code imports

import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.eclipse.acceleo.Module;
import org.eclipse.acceleo.OpenModeKind;
import org.eclipse.acceleo.Template;
import org.eclipse.acceleo.aql.AcceleoUtil;
import org.eclipse.acceleo.aql.evaluation.AcceleoEvaluator;
import org.eclipse.acceleo.aql.evaluation.GenerationResult;
import org.eclipse.acceleo.aql.evaluation.strategy.DefaultGenerationStrategy;
import org.eclipse.acceleo.aql.evaluation.strategy.DefaultWriterFactory;
import org.eclipse.acceleo.aql.evaluation.strategy.IAcceleoGenerationStrategy;
import org.eclipse.acceleo.aql.evaluation.writer.IAcceleoWriter;
import org.eclipse.acceleo.aql.parser.AcceleoParser;
import org.eclipse.acceleo.aql.parser.ModuleLoader;
import org.eclipse.acceleo.query.AQLUtils;
Expand Down Expand Up @@ -383,9 +387,24 @@ protected AcceleoEvaluator createAcceleoEvaluator(IQualifiedNameResolver resolve
return evaluator;
}

/**
* Creates the {@link IAcceleoGenerationStrategy}
*
* @param resourceSetForModels
* the {@link ResourceSet} containing loaded models
* @return the created {@link IAcceleoGenerationStrategy}
* @generated
*/
protected IAcceleoGenerationStrategy createGenerationStrategy(final ResourceSet resourceSetForModels) {
final IAcceleoGenerationStrategy strategy = new DefaultGenerationStrategy(resourceSetForModels
.getURIConverter(), new DefaultWriterFactory());
.getURIConverter(), new DefaultWriterFactory()) {
@Override
public IAcceleoWriter createWriterFor(URI uri, OpenModeKind openMode, Charset charset,
String lineDelimiter) throws IOException {
System.out.println(uri.toString());
return super.createWriterFor(uri, openMode, charset, lineDelimiter);
}
};

return strategy;
}
Expand Down

0 comments on commit 6928f6b

Please sign in to comment.