I am new to plugin development for IntelliJ. I would like to make a simple plugin for learning purpose where I can open a file in a project. Let´s say the path to the file is project/src/mypackage/myfile.java. How can I open that file with code (like if I opened it with Ctrl+Shift+N)?
I have looked at VirtualFile and it seems that is the IDEA`s representation of the physical file on the IDEA Virtual File System, right?
Do I have to use FileDocumentManager in some way?