I am trying to add a code preview pane to the tabifier plugin, similar to the preview panes available under several Code Style tabs. Maxim Shafirov suggested:
This approach would work if all my edits could be performed against the psiFile object. However, I use the Document.replaceString() method to update psiFile. For this I need a Document.
I tried to obtain a Document from the newly created psiFile, or a psiFile from the Document, but both return null, as follows:
How do I establish a connection between a Document and a newly created PsiFile?