| org.eclipse.ui.IContainmentAdapter
IContainmentAdapter | public interface IContainmentAdapter (Code) | | 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 Summary | |
final public static int | CHECK_CONTEXT Checks whether the given element corresponds to the containment context. | final public static int | CHECK_IF_ANCESTOR Checks whether the given element corresponds to an ancestor of the
containment context. | final public static int | CHECK_IF_CHILD Checks whether the given element corresponds to a direct child of the
containment context. | final public static int | CHECK_IF_DESCENDANT Checks whether the given element corresponds to a descendant of the
containment context. |
Method Summary | |
public boolean | contains(Object containmentContext, Object element, int flags) Returns 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. |
CHECK_CONTEXT | final public static int CHECK_CONTEXT(Code) | | Checks whether the given element corresponds to the containment context.
|
CHECK_IF_ANCESTOR | final public static int CHECK_IF_ANCESTOR(Code) | | Checks whether the given element corresponds to an ancestor of the
containment context. Does not include the containment context itself.
|
CHECK_IF_CHILD | final public static int CHECK_IF_CHILD(Code) | | Checks whether the given element corresponds to a direct child of the
containment context. Does not include the containment context itself.
|
CHECK_IF_DESCENDANT | final public static int CHECK_IF_DESCENDANT(Code) | | Checks whether the given element corresponds to a descendant of the
containment context. Does not include the containment context itself.
|
contains | public boolean contains(Object containmentContext, Object element, int flags)(Code) | | Returns 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. Parameters: element - object that should be tested for containment Parameters: flags - one or more of CHECK_CONTEXT , CHECK_IF_CHILD , CHECK_IF_ANCESTOR , CHECK_IF_DESCENDENT logically ORed together. |
|
|