Package org.eclipse.ui
Interface IContainmentAdapter
public interface IContainmentAdapter
This adapter interface provides a way to test element containment in a
 model-independent way. The workbench uses this interface in certain views to
 test if a given resource is part of a working set.
- Since:
- 2.1
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intChecks whether the given element corresponds to the containment context.static final intChecks whether the given element corresponds to an ancestor of the containment context.static final intChecks whether the given element corresponds to a direct child of the containment context.static final intChecks whether the given element corresponds to a descendant of the containment context.
- 
Method Summary
- 
Field Details- 
CHECK_CONTEXTstatic final int CHECK_CONTEXTChecks whether the given element corresponds to the containment context.- See Also:
 
- 
CHECK_IF_CHILDstatic final int CHECK_IF_CHILDChecks whether the given element corresponds to a direct child of the containment context. Does not include the containment context itself.- See Also:
 
- 
CHECK_IF_ANCESTORstatic final int CHECK_IF_ANCESTORChecks whether the given element corresponds to an ancestor of the containment context. Does not include the containment context itself.- See Also:
 
- 
CHECK_IF_DESCENDANTstatic final int CHECK_IF_DESCENDANTChecks whether the given element corresponds to a descendant of the containment context. Does not include the containment context itself.- See Also:
 
 
- 
- 
Method Details- 
containsReturns whether the given element is considered contained in the specified containment context or if it is the context itself.- Parameters:
- containmentContext- object that provides containment context for the element. This is typically a container object (e.g., IFolder) and may be the element object itself.
- element- object that should be tested for containment
- flags- one or more of- CHECK_CONTEXT,- CHECK_IF_CHILD,- CHECK_IF_ANCESTOR,- CHECK_IF_DESCENDENTlogically ORed together.
- Returns:
- true if contained, false otherwise.
 
 
-