eclipse / xtext

Eclipse Xtext™ is a language development framework

Home Page:http://www.eclipse.org/Xtext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possibility to configure the encoding in the IResourcesSetupUtil.createTempFile

miklossy opened this issue · comments

The IResourcesSetupUtil.createTempFile should be overloaded with a signature that accepts not only the fileName, the suffix and the content, but the encoding as well.

This could help to overcome encoding problem within the test cases @hannesN just encountered in a customer project.

What about the other createFile methods

We can also extend the IResourcesSetupUtil.createFile method with an additional encoding parameter.

Change or add additional? The first would break compatibility

I can implement this on friday, if you agree.

Thanks you @hannesN !