コード例 #1
0
 private void updateControlsFromPrefs() {
   customLibRadio.setSelection(preferences.getUseCustomLib());
   defaultLibRadio.setSelection(!customLibRadio.getSelection());
   customLibPathText.setText(preferences.getCustomLibPath());
   enableErrorsCheckbox.setSelection(preferences.getEnableErrorMarkers());
 }
コード例 #2
0
 private void validatePrefs() {
   if (preferences.getUseCustomLib()) {
     String path = preferences.getCustomLibPath();
     validateFile(new File(path));
   }
 }