Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtext auto content assist not working for underscore(Xtext auto content assist not working for underscore)
Xtext auto content assist not working for underscore [message #1737733] Tue, 12 July 2016 06:26 Go to next message
Eclipse UserFriend
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));
}
}
Re: Xtext auto content assist not working for underscore [message #1737932 is a reply to message #1737733] Thu, 14 July 2016 04:56 Go to previous messageGo to next message
Eclipse UserFriend
any reply on this?
Re: Xtext auto content assist not working for underscore [message #1737933 is a reply to message #1737932] Thu, 14 July 2016 05:01 Go to previous messageGo to next message
Eclipse UserFriend
i have no idea. maybe debugging help? maybe the proposals are filtered for prefix? maybe smLibFuncSet is empty ....
Re: Xtext auto content assist not working for underscore [message #1737936 is a reply to message #1737933] Thu, 14 July 2016 05:06 Go to previous message
Eclipse UserFriend
Thanks
Previous Topic:Serialization error: contains non-transient values but has no corresponding assignment in rule
Next Topic:update from 2.1 to 2.6.2 problem
Goto Forum:
  


Current Time: Sun Jul 13 00:08:28 EDT 2025

Powered by FUDForum. Page generated in 0.05738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top