Re: [RPC] Disable internal Webbrowser
Ok here is how it worked for me thanks for the suggestions. @ServiceProviders( value = { @ServiceProvider(service = HtmlBrowser.Factory.class, position = 0), @ServiceProvider( service = HtmlBrowser.URLDisplayer.class, position = 0, supersedes = { "org.netbeans.core.NbURLDisplayer" }) } ) public class ExternalWebHandler extends URLDisplayer implements HtmlBrowser.Factory { /* * (non-Javadoc) * * @see org.openide.awt.HtmlBrowser.Factory#createHtmlBrowserImpl() */ @Override public Impl createHtmlBrowserImpl() { // TODO Auto-generated method stub return null; } /* * (non-Javadoc) * * @see org.openide.awt.HtmlBrowser.URLDisplayer#showURL(java.net.URL) */ @Override public void showURL(final URL u) { try { Desktop.getDesktop().browse(u.toURI()); } catch (IOException | URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } This will open the links from the aboutpage in the external browser. Only posting this here if anybody else is searching for it. Again thank you all for the suggestions. On 2018/10/22 13:42:01, Martin Barnáš 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 > > 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% signature.asc Description: OpenPGP digital signature
Re: [RPC] Disable internal Webbrowser
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áš 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 > > 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% - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
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" 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 > ""> > > should do what you want.> > > Lutz> > > -> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org> > For additional commands, e-mail: users-h...@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-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[RPC] Disable internal Webbrowser
I wonder if there is an option to disable the internal webbrowser of the netbeansplatform. Right now everytime i or a user of the application clicked on a link, the inernal browser will open. Is there a way to disable this? - To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
Re: [java][platform] Junit tests withtin modul with maven
For everyone else searching for this. This is not possible with maven. The unittests that require other modules, have to sit in the application modle. More infos here: https://dzone.com/articles/nb-mvn-functional-tests https://netbeans.org/bugzilla/show_bug.cgi?id=190992 Am 04.09.2018 um 17:26 schrieb Sven Marquardt: > Is there a way to unittest in the module itself when the module depends > on other modules? Like i have my own module A that depends on module B > and no i want to do a unit tests where a class of module B is in the > cass of Module A that i want to test. If i do it now i get an > java.lang.NoClassDefFoundError for every class of other modules. > -- Kind regards / Mit freundlichen Grüßen Sven Marquardt __ cbb software GmbH Isaac-Newton-Straße 8 23562 Lübeck Germany phone: +49-451-39 77 1-0 fax: +49-451-39 77 1-29 website: www.cbb.de mailto: sven.marqua...@cbb.de Managing Director / Geschäftsführer: Dipl.-Ing. Andreas Fechner Dipl.-Kfm. Thomas Behrendt Commercial Register / Handelsregister: Amtsgericht: Lübeck HR-Nummer: HRB 4765 Before you print it, think about your responsibility and commitment to the ENVIRONMENT! = Important Note This email and any attachment hereto are confidential and may contain trade secrets or may be otherwise protected from disclosure. If you have received it in error you are in notice of this fact. Please notify us immediately by reply email and then delete this email and any attachment from your system. Please understand that you are not allowed to copy this email or any attachment hereto or disclose its contents to any other person. Thank you. Wichtiger Hinweis Diese E-Mail und etwaige Anlagen koennen Betriebs- oder Geschaeftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtuemlich erhalten haben, ist Ihnen dieser Umstand hiermit bekannt. Bitte benachrichtigen Sie uns in diesem Fall umgehend durch Ruecksendung der E-Mail und loeschen Sie diese E-Mail einschließlich etwaiger Anlagen von Ihrem System. Diese E-Mail und ihre Anlagen duerfen weiterhin nicht kopiert oder an Dritte weitergegeben werden. Vielen Dank. = signature.asc Description: OpenPGP digital signature
[java][platform] Junit tests withtin modul with maven
Is there a way to unittest in the module itself when the module depends on other modules? Like i have my own module A that depends on module B and no i want to do a unit tests where a class of module B is in the cass of Module A that i want to test. If i do it now i get an java.lang.NoClassDefFoundError for every class of other modules. signature.asc Description: OpenPGP digital signature