public class FileUtil extends Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
void |
writeToFileInTargetFolder(org.eclipse.xtend.lib.macro.declaration.NamedElement element,
String fileName,
CharSequence content,
org.eclipse.xtend.lib.macro.CodeGenerationContext context)
Writes given content into a given file in the target folder of the project.
|
public void writeToFileInTargetFolder(org.eclipse.xtend.lib.macro.declaration.NamedElement element, String fileName, CharSequence content, @Extension org.eclipse.xtend.lib.macro.CodeGenerationContext context)
element
- The element which is used to determine the target folder.fileName
- The name of the file to write into - relative to the target folder.content
- The content to write.context
- The CodeGenerationContext
.Copyright © 2018–2020 b+m Informatik AG. All rights reserved.