void () { myCodeStylesListModel.clear(); for(EclipseProjectCodeStyleData codeStyleData : getCodeStylesList()) { myCodeStylesListModel.addElement(codeStyleData); } boolean isEnabled = !myCodeStylesListModel.isEmpty(); myImportCodeStyleRB.setEnabled(isEnabled); myImportCodeStyleLabel.setEnabled(isEnabled); myUseDefaultCodeStyleRB.setSelected(true); updateProjectListEnabledStatus(); }