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 00:48 Go to next message
Latha Shankara is currently offline Latha Shankara
Messages: 30
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 01:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6144
Registered: July 2009
Senior Member
Hi,

what about simply overriding the method and do NOT call completeRullCall

~Christian
Re: Filter content assist proposals [message #908972 is a reply to message #908854] Thu, 06 September 2012 06:22 Go to previous messageGo to next message
Latha Shankara is currently offline Latha Shankara
Messages: 30
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 10:10 Go to previous message
Robert Wild is currently offline Robert Wild
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 Jul 31 13:40:54 EDT 2014

Powered by FUDForum. Page generated in 0.02093 seconds