Change VirtualFile for PsiAwareTextEditorImpl on the fly
Hello.
I want to be able to change VirtualFile of my PsiAwareTextEditorImpl on the fly, but i can't recreate PsiAwareTextEditorComponent because it is private.
So how can I do this? I want to open different virtual files from my editor, even if the main VirtualFile stays the same.
Thank you in advance, it's very important for me.
Please sign in to leave a comment.
You can't change it; every FileEditor always corresponds to a single VirtualFile. Even if you do manage to recreate PsiAwareTextEditorComponent, this won't help you because the internal state of FileEditorManager will be inconsistent.
What exactly are you trying to accomplish?