Open java editor programmatically