void (ProcessorConfigProfile config) { myCbEnableProcessing.setSelected(config.isEnabled()); myCbProcOnly.setSelected(config.isProcOnly()); (config.isObtainProcessorsFromClasspath()? myRbClasspath : myRbProcessorsPath).setSelected(true); myCbProcessorModulePath.setSelected(config.isUseProcessorModulePath()); myProcessorPathField.setText(FileUtil.toSystemDependentName(config.getProcessorPath())); final String productionDirName = config.getGeneratedSourcesDirectoryName(false); myGeneratedProductionDirField.setText(productionDirName.trim()); final String testsDirName = config.getGeneratedSourcesDirectoryName(true); myGeneratedTestsDirField.setText(testsDirName.trim()); if (config.isOutputRelativeToContentRoot()) { myRbRelativeToContentRoot.setSelected(true); } else { myRbRelativeToOutputRoot.setSelected(true); } myProcessorsModel.setProcessors(config.getProcessors()); myOptionsModel.setOptions(config.getProcessorOptions()); updateEnabledState(); }