Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Filter content assist proposals
Filter content assist proposals [message #908833] Thu, 06 September 2012 04:48 Go to next message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi,

I have a scenario where in I want to filter the content assist proposals provide by Xtext. I have read post http://www.eclipse.org/forums/index.php/m/902814/ where they have told how we could in case of lookupCrossReference method. I wanted to know how to do if the method in AbstractDslProposalProvider internally calls completeRullCall method. What should be done in this case.

How could I filter the proposals in the above scenario?

Thanks for any help,
Latha
Re: Filter content assist proposals [message #908854 is a reply to message #908833] Thu, 06 September 2012 05:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

what about simply overriding the method and do NOT call completeRullCall

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Filter content assist proposals [message #908972 is a reply to message #908854] Thu, 06 September 2012 10:22 Go to previous messageGo to next message
Latha Shankara is currently offline Latha ShankaraFriend
Messages: 33
Registered: June 2012
Member
Hi Christian,

If I just override the method then I myself have to build the proposals. But what I require is out of 10 proposals Xtext proposes, I want to remove only 2 of them and retain the remaining 8.

Is there anyway like the lookupCrossReference method overriding so that I just filter some of them?

Thanks,
Latha
Re: Filter content assist proposals [message #990456 is a reply to message #908972] Wed, 12 December 2012 15:10 Go to previous message
Robert Wild is currently offline Robert WildFriend
Messages: 33
Registered: August 2012
Member
here's a nice solution using Predicates:
http://www.eclipse.org/forums/index.php/m/558687/
Previous Topic:Data type characteristics
Next Topic:specification of algorithms for code generation in different langs
Goto Forum:
  


Current Time: Thu Apr 18 05:22:52 GMT 2024

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

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

Back to the top