void () { myCommandLineOptionsEditor.setText(mySettings.getCommandLineOptions()); myUseCustomProfileCheckBox.setSelected(mySettings.isUseCustomProfile()); myUserDataDirField.setEnabled(mySettings.isUseCustomProfile()); String path = mySettings.getUserDataDirectoryPath(); if (path != null) { myUserDataDirField.setText(FileUtil.toSystemDependentName(path)); } else { myUserDataDirField.setText(FileUtil.toSystemDependentName(myDefaultUserDirPath)); } }