Interface TemplateFilterService
-
public interface TemplateFilterService
Protocol for a data template filter service.- Since:
- 1.21
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
TemplateFilterService.Provider
Specific Bazaar vendor interface forTemplateFilterService
providers.
-
Field Summary
Fields Modifier and Type Field Description static TemplateFilterService
NULL
A filter service that provides no filtering.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.function.Predicate<? super Template>
getTemplateFilter(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
Obtain a template filter applicable to templates provided for the givenreference
of anowner
object in the editor.
-
-
-
Field Detail
-
NULL
static final TemplateFilterService NULL
A filter service that provides no filtering.
-
-
Method Detail
-
getTemplateFilter
java.util.function.Predicate<? super Template> getTemplateFilter(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
Obtain a template filter applicable to templates provided for the givenreference
of anowner
object in the editor.- Parameters:
owner
- the object owning areference
to be assigned from a templatereference
- a reference feature of theowner
that is to be assigned from a template. If thereference
is acontainment
then theowner
would be thecontainer
of the template- Returns:
- a predicate with which to filter templates (only templates satisfying the predicate
are retained), or else
null
to opt out of filtering
-
-