org.eclipse.cdt.internal.ui.text.contentassist
Class DefaultProposalFilter

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.text.contentassist.DefaultProposalFilter
All Implemented Interfaces:
IProposalFilter

public class DefaultProposalFilter
extends java.lang.Object
implements IProposalFilter

The default code completion filter: Remove duplicate entries on the basis of their id string. Use CCompletionProposalComparator for sorting.


Constructor Summary
DefaultProposalFilter()
           
 
Method Summary
 ICCompletionProposal[] filterProposals(ICCompletionProposal[] proposals)
          Filter a list of ICCompletionProposals
- Change the order of entries
- Remove undesired (duplicate) entries
- Supplement existing entries with additional information
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProposalFilter

public DefaultProposalFilter()
Method Detail

filterProposals

public ICCompletionProposal[] filterProposals(ICCompletionProposal[] proposals)
Description copied from interface: IProposalFilter
Filter a list of ICCompletionProposals
- Change the order of entries
- Remove undesired (duplicate) entries
- Supplement existing entries with additional information

Specified by:
filterProposals in interface IProposalFilter
Parameters:
proposals - The List of proposals
Returns:
The filtered list of proposals as array