use of org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor in project statecharts by Yakindu.
the class STextProposalProvider method complete_BOOL.
@Override
public void complete_BOOL(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
ICompletionProposalAcceptor priorityOptimizer = getCustomAcceptor(model, "boolean", acceptor);
for (String s : new String[] { "true", "false", "yes", "no" }) {
ICompletionProposal proposal = createCompletionProposal(s, s + " - " + ruleCall.getRule().getName(), null, context);
priorityOptimizer.accept(proposal);
}
}
Aggregations