Open link or file directly. If link is web-link, open in javafx browser.