Proposal not added [message #1815810] |
Fri, 11 October 2019 08:49 |
Jozsef Klespitz Messages: 34 Registered: September 2019 |
Member |
|
|
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?
|
|
|
Re: Proposal not added [message #1815811 is a reply to message #1815810] |
Fri, 11 October 2019 08:57 |
|
hi, i have no idea with the information you provided
but is may be that either
Keyword or To to Show are keywords
or there is a keyword pre and postfixed by KeywordToShow
=> what happens if you use
val myEntry = createCompletionProposal(' KeywordToShow ', context)
instead
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03220 seconds