This question is a follow-up to
open .java file in specified eclipse project from command line, specifically to this part (see the original question for more background):
I am actually trying to create a source file automatically and want to edit it just like I created it by default way in eclipse.
In short, I need to open an externally generated .java file in the Eclipse editor.
Eclipse’s auto-refresh takes up to 5 seconds to find the new file but I want to open it in maximum of 1-2 seconds.
Any pointers / ideas towards this would be great.
Maybe the FileSync plugin for eclipse is the right thing for you. If it is not fast enough, you could take a look at the source and tweak it for your needs.