netbeans-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Barnáš <martin.bar...@certicon.cz>
Subject Re: [RPC] Disable internal Webbrowser
Date Mon, 22 Oct 2018 13:42:01 GMT
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 <sven.marquardt@cbb.de>
Odesláno: pondělí 22. října 2018 14:35:48
Komu: users@netbeans.apache.org
Předmět: Re: [RPC] Disable internal Webbrowser

I'm talking about netbeans platform. Not the IDE. If i packag my
netbeans platform application i dont want the internal browser get
packaged with my application. My use case is this i have an about dialog
with an html reference to the homepage of the aplication. But when i
click the link in the about dialog, netbeans trys to open it with the
internal webbrowser. Is there any setting where i can force netbeans to
open it with the external browser?

On 2018/10/22 12:25:43, "Lutz Horn" <l...@posteo.de> wrote:
> On Mon, Oct 22, 2018 at 01:53:26PM +0200, Sven Marquardt wrote:>
> > I wonder if there is an option to disable the internal webbrowser of>
> > the netbeansplatform. >
>
> Tools > General > Web Browser > "<Default System Browser>">
>
> should do what you want.>
>
> Lutz>
>
> --------------------------------------------------------------------->
> To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org>
> For additional commands, e-mail: users-help@netbeans.apache.org>
>
> For further information about the NetBeans mailing lists, visit:>
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Mime
View raw message