context = context.copy().setMatcher(new StaticPrefixMatcher(context.getMatcher())).toContext();
ICompletionProposal p = createCompletionProposal(proposalValue, s, IconKeys.getIcon(IconKeys.FIELD_KEY), getPropertiesProposalsProposals()-10, context.getPrefix(), context);
if (p instanceof ConfigurableCompletionProposal) {
ConfigurableCompletionProposal cp = (ConfigurableCompletionProposal) p;
cp.setAdditionalProposalInfo(model);
cp.setHover(new HoverImpl(prop.getJavaElement()));
}
acceptor.accept(p);
} else {
StyledString s = new StyledString(prop.getName() + " : " + typeName);
s.append(" - " + prop.getFXClass().getSimpleName(), StyledString.QUALIFIER_STYLER);
if( proposalValue.equals("id : \"\"") ) {
proposalValue = "^" + proposalValue;
}
context = context.copy().setMatcher(new EscapePrefixMatcher(context.getMatcher())).toContext();
ICompletionProposal p = createCompletionProposal(proposalValue, s, IconKeys.getIcon(IconKeys.FIELD_KEY), getPropertiesProposalsProposals(), context.getPrefix(), context);
if (p instanceof ConfigurableCompletionProposal) {
ConfigurableCompletionProposal cp = (ConfigurableCompletionProposal) p;
cp.setAdditionalProposalInfo(model);
cp.setHover(new HoverImpl(prop.getJavaElement()));
if (prop.getType() == Type.STRING) {
cp.setCursorPosition(cp.getCursorPosition() - 1);
}
}
acceptor.accept(p);
}