org.netbeans.core/2 3.32

org.netbeans.core
Class IDESettings

java.lang.Object
  extended by org.netbeans.core.IDESettings

public class IDESettings
extends Object

Stores and loads web browser settings. For visual representation see core.ui/src/org/netbeans/core/ui/options/general.


Field Summary
static String PROP_EXTERNAL_WWWBROWSER
           
static String PROP_WWWBROWSER
          Web Browser prefered by user
 
Constructor Summary
IDESettings()
           
 
Method Summary
static HtmlBrowser.Factory getExternalWWWBrowser()
          Getter for preffered external web browser.
static HtmlBrowser.Factory getWWWBrowser()
          Getter for preffered web browser.
static void setExternalWWWBrowser(HtmlBrowser.Factory brow)
          Setter for preffered external browser.
static void setWWWBrowser(HtmlBrowser.Factory brow)
          Setter for preffered browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_WWWBROWSER

public static final String PROP_WWWBROWSER
Web Browser prefered by user

See Also:
Constant Field Values

PROP_EXTERNAL_WWWBROWSER

public static final String PROP_EXTERNAL_WWWBROWSER
See Also:
Constant Field Values
Constructor Detail

IDESettings

public IDESettings()
Method Detail

getWWWBrowser

public static HtmlBrowser.Factory getWWWBrowser()
Getter for preffered web browser. The browser may be an internal one (URLs will be rendered in some TopComponent) or external browser like Mozilla or Internet Explorer. First time when this function is called Lookup is used to find prefered browser factory in a browser registry.

Returns:
prefered browser, may return null if it is not possible to get the browser

getExternalWWWBrowser

public static HtmlBrowser.Factory getExternalWWWBrowser()
Getter for preffered external web browser. First time when this function is called Lookup is used to find prefered browser factory in a browser registry.

Returns:
prefered external browser, may return null if it is not possible to get the browser or no external browser is available.

setWWWBrowser

public static void setWWWBrowser(HtmlBrowser.Factory brow)
Setter for preffered browser. Actually Node.Handle of node that represent browser in lookup folder is stored.

Parameters:
brow - prefered browser capable of providing implementation

setExternalWWWBrowser

public static void setExternalWWWBrowser(HtmlBrowser.Factory brow)
Setter for preffered external browser. Actually Node.Handle of node that represent browser in lookup folder is stored.

Parameters:
brow - prefered browser capable of providing implementation

org.netbeans.core/2 3.32

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.