Proposal not added [message #1815810] |
Fri, 11 October 2019 04:49  |
Eclipse User |
|
|
|
Hello everyone,
I am experimenting with Proposal Provider customization.
I want to add an own keyword to the existing ones.
I am using this as an example and here is how far I reached:
override void completeExpression(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor)
{
val myEntry = createCompletionProposal('KeywordToShow', context)
acceptor.accept(myEntry)
super.completeExpression(model, ruleCall, context, acceptor)
}
I have debugged the code and found that the existsConflict method of AntlrProposalConflictHelper returns conflict and I no have any idea why.
I see that the equalTokenSequence(getLastCompleteLexer(), getCombinedLexer()) is false when I try to complete a 'K'.
Can you please give me any hint, how to get rid off this problem?
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03482 seconds