Fix refresh of non java files

The old replayed ignored resource operations that on non java file.
Modified it to allow all file