I just found out I had already solved the problem in the code, but not updated the binaries yet: It's an eclipse plugin project, depending on another project for development, but the other project always needs to be built to a jar and copied to the plugin's directory in order to work at runtime.
The problem was that I first had used a String-based FileWriter
:
FileWriter fstream = new FileWriter(file, append);
BufferedWriter out = new BufferedWriter(fstream);
out.write(content);
out.close();
Re-packing my project and actually using above code solved the problem.