for( Proposal vProp : c.getProposals() ) {
FXMLCompletionProposal cp = createProposal(contentAssistRequest, context, "\"" +vProp.getValue(), new StyledString(vProp.getValue()), IconKeys.getIcon(IconKeys.VALUE_OF_KEY), ATTRIBUTE_MATCHER);
if (cp != null) {
cp.setPriority(cp.getPriority() + vProp.getPriority() + 1);
if( vProp instanceof DialogProposal ) {
final DialogProposal dProp = (DialogProposal) vProp;
cp.setTextApplier(new ReplacementTextApplier() {
@Override
public String getActualReplacementString(
ConfigurableCompletionProposal proposal) {
return "\"" + dProp.openDialogValue();
}
});
}
contentAssistRequest.addProposal(cp);
}