return folder;
}
public boolean performOk() {
IWebflowProject project = getSpringProject();
// Save config files from model in project
if (configFilesBlock.hasUserMadeChanges()) {
Set<IWebflowConfig> files = configFilesBlock.getConfigFiles();
Map<IWebflowConfig, Set<IModelElement>> filesToConfig = configFilesBlock.getConfigFilesToBeansConfigs();
Map<IWebflowConfig, String> names = configFilesBlock.getConfigFilesToNames();
List<IWebflowConfig> webflowConfigs = new ArrayList<IWebflowConfig>();
for (IWebflowConfig file : files) {
WebflowConfig webflowConfig = new WebflowConfig(project);
webflowConfig.setBeansConfigs(filesToConfig.get(file));
webflowConfig.setResource(file.getResource());
if (names.get(file) != null) {
webflowConfig.setName(names.get(file));
}
webflowConfigs.add(webflowConfig);
}
// At first delete all problem markers from the removed config files
List<IWebflowConfig> currentConfigs = project.getConfigs();
for (IWebflowConfig currentConfig : currentConfigs) {
if (getConfig(currentConfig.getResource(), webflowConfigs) == null) {
MarkerUtils.deleteMarkers(currentConfig.getResource(), ValidatorDefinitionFactory
.getValidatorDefinition(WebflowValidator.VALIDATOR_ID).getMarkerId());
}
}
project.setConfigs(webflowConfigs);
// Refresh label decoration of Spring project and config files
WebflowModelLabelDecorator.update();
}
return super.performOk();