TaT FixExternalWebBrowserInRCPApp

Fix External Web Browser in NetBeans Platform Application

Contributed By: Anton Epple

Brief Overview

There's a little annoyance whenever you create a new NetBeans Platform Application project: When you run the application and open the Options there's "Web Browser" at the top of the "General" section. This would be nice if it worked out of the box, but it doesn't. It shows an empty selection and when you click "Edit..." you get a
. You could hide the panel via the layer if you don't need it, but most of the time I'd like to have this functionality, and besides that hiding it would also hide the Proxy settings which are on the same tab. And actually fixing this got a lot easier with 6.5.

Tips & Tricks

The main thing you need to do is to add "External HTML Browser" from the IDE10 cluster (or IDE11, etc) to your suite. However, this alone doesn't guarantee that it will suddenly start fully working, at least not in NetBeans 6.5.1 nor 6.7. It seems that "External HTML Browser" has at least one undeclared dependency: "Visual Library API", which is in the platform cluster. Without having that module enabled, the Options page is able to show the list of Browsers and launch the configured one when a link is clicked, but clicking the "Edit..." button in the Options page causes the following exception:

java.lang.IllegalArgumentException: Property editor org.openide.explorer.propertysheet.PropUtils$NoPropertyEditorEditor@384e9bea for property org.openide.explorer.propertysheet.ModelProperty$DPMWrapper@0 does not support a custom editor.

Filed as Issue 169009.

Maybe it would be a good idea to move this module into the platform cluster (this was suggested in Issue 94388). Maybe together with Navigator API which is also quite useful ( even if it's only to get the
mode working :-) ).

Adapted from http://eppleton.sharedhost.de/blog/?p=302

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo