IntelliJ has a function in the menu bar at the top called Synchronize, under File | Synchronize. I'm designing a plugin for practice and in the plugin I am writing to the current file. This all works however it only works if I go into File | Synchronize, then my changes are shown in the current file.
I've been looking for a way to do this in IntelliJ code (not through the main menu bar) but haven't been successful. I'm really after something like IFile.refreshLocal() in eclipse (but obviously an intellij version). I've also tried looking into the Intellij Community edition source code to find the code which goes with the File | Synchronize but had no success there either.
Any help would be great.