Code example for Preferences

Methods: putBoolean

0
    return preferences.getBoolean(USE_DEFAULT_RTFVIEWER_KEY, true);
  } 
 
  public void setUseDefaultRTFViewer(final boolean useDefaultRTFViewer)
  { 
    preferences.putBoolean(USE_DEFAULT_RTFVIEWER_KEY, useDefaultRTFViewer);
  } 
 
  public String getCustomRTFViewerExecutable()
  { 
    return preferences.get(CUSTOM_RTFVIEWER_EXECUTABLE_KEY, null);
  } 
 
  public void setCustomRTFViewerExecutable(final String customRTFViewerExecutable)
  { 
    preferences.put(CUSTOM_RTFVIEWER_EXECUTABLE_KEY, customRTFViewerExecutable);
  } 
 
  public String getCustomRTFViewerParameters()
  { 
Experience pair programming with AI  Get Codota for Java