//is because of spring never uses TEXT_NODE's for class-declarations but only attributes, which needs "
//Thus, we must use our own Proposal class. SpringIDE's BeansJavaCompletionUtils is very inflexible
//here and cannot be subclassed. So we must replace every Proposal.
List<ICompletionProposal> newList = new ArrayList<ICompletionProposal>();
for (Object object : proposals) {
BeansJavaCompletionProposal bjcp = (BeansJavaCompletionProposal)object;
DozerJavaCompletionProposal djcp =
new DozerJavaCompletionProposal(bjcp.getReplacementString(),
bjcp.getReplacementOffset(),
bjcp.getReplacementLength(),
bjcp.getCursorPosition(),
bjcp.getImage(),
bjcp.getDisplayString(),
bjcp.getContextInformation(),
bjcp.getRelevance(),
true,
bjcp.getProposedObject());
newList.add(djcp);
}
proposals.clear();
proposals.addAll(newList);
}