Hi list,
I am writing a plugin for Netbeans. The book "Pro Apache Netbeans" is
very good and really shows the power of the platform 🙂
What I would like to do is to get the embedded browser (and Browser DOM)
enabled for a Java WebApplication.
I use an embedded server in a Maven based project. Similar to e.g.
embedded tomcat.
Normally it is only enabled when selecting package "war" in the POM and
using an external server like Glassfish or Payara. Trying to trigger the
browser to load the URL of the started server in an action doesn't work
since the API is not public:
WebBrowser wb = BrowserUISupport.getDefaultBrowserChoice(true);
BrowserSupport.create(wb);
Is there an easy way to start the embedded browser and point it to a
running server? (while making the connection to Netbeans to enable the
browser DOM and connecting the treeview to the UI in the browser).
This is show in this video for 'war' based Apps and Glassfish:
https://www.youtube.com/watch?v=5aTFiNxzXF4 (starting at 4:00)
Thanks for any pointers.
Best regards, Bart