List<ICompletionProposal> addToConfigSetProposals = new ArrayList<ICompletionProposal>();
List<ICompletionProposal> addConfigSetProposals = new ArrayList<ICompletionProposal>();
Set<IBeansConfig> configs = project.getConfigs();
for (IBeansConfig config : configs) {
IBean bean = config.getBean(beanName);
if (bean != null) {
importProposals.add(new CreateImportQuickFixProposal(offset, length, missingEndQuote, bean,
beanNode, project, file));
Set<IBeansConfigSet> configSets = project.getConfigSets();
for (IBeansConfigSet configSet : configSets) {
if (configSet.hasConfig((IFile) bean.getElementResource())) {
addToConfigSetProposals.add(new AddToConfigSetQuickFixProposal(offset, length,
missingEndQuote, file, configSet, project));
}
}
addConfigSetProposals.add(new AddConfigSetQuickFixProposal(offset, length, missingEndQuote, bean,
file));
foundResources.add(bean.getElementResource());
}
}
proposals.addAll(importProposals);