|
Re: Content Assist not displaying icon before keyword [message #1764929 is a reply to message #1764926] |
Sun, 04 June 2017 06:33 |
|
Hi,
since Xtext does no do any proposals on datatype rules i assume you badly implemented the proposal provider / label provider for that rule
(simple impl - for better implement the label provider)
class MyDslProposalProvider extends AbstractMyDslProposalProvider {
@Inject
private MyDslGrammarAccess ga;
override complete_NotPlan(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
super.complete_NotPlan(model, ruleCall, context, acceptor)
val ICompletionProposal proposal = createCompletionProposal("Not Plan", "Not Plan",
getImage(ga.notPlanRule), context);
getPriorityHelper().adjustKeywordPriority(proposal, context.getPrefix());
acceptor.accept(proposal)
}
}
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02446 seconds