Xtext auto content assist not working for underscore [message #1737733] |
Tue, 12 July 2016 06:26  |
Eclipse User |
|
|
|
Hi,
I have to activate content assist on clicking '>' or '_'. Content assist is working for
Annotation: {Annotation} '@app' '(' (appExp+=Expression)* ')' ('->'appExp+=Expression);
but not working for
Sm_library : 'sm_' smExp+=Expression '(' (smExp+=Expression)* ')';
I am using below code in ui module:
override configure(Binder binder) {
super.configure(binder);
binder.bind(String).annotatedWith(Names.named((XtextContentAssistProcessor.COMPLETION_AUTO_ACTIVATION_CHARS))).toInstance(">,_");
}
When I am clicking on '_' proposal provider is calling but not showing contents.
override completeSm_library_SmExp(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
println("Inside sm_::::::::::")
for(String smLibFunc : smLibFuncSet) {
acceptor.accept(createCompletionProposal(smLibFunc,smLibFunc,null /*getBlackImage()*/,context));
}
}
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05738 seconds