refactory for java-run-current-file & key bindings