final Image img = labelProvider.getImage(CssDslFactory.eINSTANCE.createcss_property());
if (p instanceof UIProposal) {
ConfigurableCompletionProposal cp = (ConfigurableCompletionProposal) createCompletionProposal(p.getLabel(), p.getLabel(), img, context);
final UIProposal uiP = (UIProposal)p;
if (cp != null) {
cp.setTextApplier(new ReplacementTextApplier() {
//@Override
public String getActualReplacementString(ConfigurableCompletionProposal proposal) {
if (uiP.show()) {
return uiP.getProposal();
}
return "";
}
});
cp.setPriority(p.getPriority());