Code example for Preferences

Methods: getBoolean

0
        ("org/pentaho/reporting/designer/application-settings/external-tools-settings"); // NON-NLS 
  } 
 
  public boolean isUseDefaultBrowser() 
  { 
    return preferences.getBoolean(USE_DEFAULT_BROWSER_KEY, true);
  } 
 
  public void setUseDefaultBrowser(final boolean useDefaultBrowser)
  { 
    preferences.put(USE_DEFAULT_BROWSER_KEY, String.valueOf(useDefaultBrowser));
  } 
 
  public String getCustomBrowserExecutable()
  { 
    return preferences.get(CUSTOM_BROWSER_EXECUTABLE_KEY, null);
  } 
 
  public void setCustomBrowserExecutable(final String customBrowserExecutable)
  { 
    preferences.put(CUSTOM_BROWSER_EXECUTABLE_KEY, String.valueOf(customBrowserExecutable));