Class BmPresentTreeFilter
java.lang.Object
com._1c.g5.v8.dt.navigator.filters.TreeItemFilter
com._1c.g5.v8.dt.navigator.filters.BmCachingTreeFilter
com._1c.g5.v8.dt.navigator.filters.BmPresentTreeFilter
The extension of
BmCachingTreeFilter
to get children of a tested object that contained in the list
of the edited object and do it quickly. The list of the edited object is the content of the specified
container feature.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBmPresentTreeFilter
(org.eclipse.emf.ecore.EObject container) Creates a new isntance ofBmPresentTreeFilter
.BmPresentTreeFilter
(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature) Creates a new isntance ofBmPresentTreeFilter
. -
Method Summary
Modifier and TypeMethodDescriptionObject[]
getChildren
(Class<?> childrenClass) Returns the child elements that are instances of the given childrenClass.protected Collection<?>
getItems
(org.eclipse.emf.ecore.EObject container) Gets the items.boolean
Methods inherited from class com._1c.g5.v8.dt.navigator.filters.BmCachingTreeFilter
dispose, getBmModel, getCached, invalidateOn, invalidateOn
Methods inherited from class com._1c.g5.v8.dt.navigator.filters.TreeItemFilter
isRecursive
-
Field Details
-
container
protected final org.eclipse.emf.ecore.EObject containerthe items container -
feature
protected final org.eclipse.emf.ecore.EStructuralFeature featurethe feature to fetch a collection from
-
-
Constructor Details
-
BmPresentTreeFilter
public BmPresentTreeFilter(org.eclipse.emf.ecore.EObject container) Creates a new isntance ofBmPresentTreeFilter
.- Parameters:
container
- the items container, can not benull
-
BmPresentTreeFilter
public BmPresentTreeFilter(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EStructuralFeature feature) Creates a new isntance ofBmPresentTreeFilter
.- Parameters:
container
- the items container, can not benull
feature
- the feature to fetch a collection from, may benull
-
-
Method Details
-
keep
- Specified by:
keep
in classTreeItemFilter
- Returns:
true
to keep anelement
,false
to filter it out.
-
getChildren
Returns the child elements that are instances of the given childrenClass.- Parameters:
childrenClass
- the given class to filter children, can not benull
- Returns:
- the child elements, can not be
null
-
getItems
Gets the items. Override this method if you do not specify a feature to fetch the items from.- Parameters:
container
- the items container, can not benull
- Returns:
- the items, may be
null
-