public interface IContainmentAdapter
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECK_CONTEXT
Checks whether the given element corresponds to the containment context.
|
static int |
CHECK_IF_ANCESTOR
Checks whether the given element corresponds to an ancestor of the
containment context.
|
static int |
CHECK_IF_CHILD
Checks whether the given element corresponds to a direct child of the
containment context.
|
static int |
CHECK_IF_DESCENDANT
Checks whether the given element corresponds to a descendant of the
containment context.
|
static final int CHECK_CONTEXT
static final int CHECK_IF_CHILD
static final int CHECK_IF_ANCESTOR
static final int CHECK_IF_DESCENDANT
boolean contains(Object containmentContext, Object element, int flags)
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 containmentflags - one or more of CHECK_CONTEXT,
CHECK_IF_CHILD, CHECK_IF_ANCESTOR,
CHECK_IF_DESCENDENT logically ORed together.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.