in my VirtualFileListener, fileCreated(..) is called when I create a new file with a template (e.g. HTML file). At that point, the actual file is still empty (even when I check manually) and the template content is not inserted yet. I also implemented contentsChanged(...) and beforeContentsChange(...), but they are never called for the content of the template.
I need the content of the file. At the moment I help myself by waiting for the FileEditorManagerListener.openEditor() event that gets triggered right aftter creating a file (because the editor is opened for newly created files) and get the content there.
This seems a bit wrong, though. Is there an alternative point, where I can access the file content?