use of org.eclipse.xtext.scoping.impl.FilteringScope in project xtext-xtend by eclipse.
the class XtendImportingTypesProposalProvider method createTextApplier.
@Override
protected ConfigurableCompletionProposal.IReplacementTextApplier createTextApplier(final ContentAssistContext context, final IScope typeScope, final IQualifiedNameConverter qualifiedNameConverter, final IValueConverter<String> valueConverter) {
final Predicate<IEObjectDescription> _function = (IEObjectDescription it) -> {
QualifiedName _name = it.getName();
return (!Objects.equal(_name, XtendImportedNamespaceScopeProvider.OLD_DATA_ANNOTATION));
};
final FilteringScope scope = new FilteringScope(typeScope, _function);
return super.createTextApplier(context, scope, qualifiedNameConverter, valueConverter);
}
Aggregations