Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:26 Go to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
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 08:56 Go to previous messageGo to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
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 09:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i have no idea. maybe debugging help? maybe the proposals are filtered for prefix? maybe smLibFuncSet is empty ....

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext auto content assist not working for underscore [message #1737936 is a reply to message #1737933] Thu, 14 July 2016 09:06 Go to previous message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
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: Thu Apr 18 11:36:54 GMT 2024

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

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

Back to the top