Thanks i think with this i can open the link with an external browser. I now only have to figure out how to open it in the external browser. I also saw this thread http://netbeans-org.1045718.n5.nabble.com/External-HTML-Browsers-td3025927.html but that also did not solve my problem.
On 2018/10/22 13:42:01, Martin Barnáš <[email protected]> wrote: > We had requirement from our customer that browser mustn't be available to users of our application. I dont' think it is possible to remove internal browser completely but I forbid to use it by creating my own implementation of service org.openide.awt.HtmlBrowser.Factory and org.openide.awt.HtmlBrowser.URLDisplayer.> > > > @ServiceProvider(service = HtmlBrowser.Factory.class, position = 0)> > public class HtmlBrowserFactory implements HtmlBrowser.Factory {> > // ...> > }> > > > > @ServiceProvider(service = URLDisplayer.class,> > position = 0,> > supersedes = { "org.netbeans.core.NbURLDisplayer" })> > public class NoOpUrlDisplayer extends URLDisplayer {> > private static final Logger LOG = LoggerFactory.getLogger(NoOpUrlDisplayer.class);> > > @Override> > public void showURL(URL u) {> > LOG.debug("Usage of browser is forbidden.");> > }> > }> > > > ________________________________> > Od: Sven Marquardt <[email protected]>> > Odesláno: pondělí 22. října 2018 14:35:48> > Komu: [email protected]> > Předmět: Re: [RPC] Disable internal Webbrowser> > > I'm talking about netbeans% --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
