public interface IRegion
When an element is included in a region, all of its children are considered to be included. Children of an included element cannot be selectively excluded.
Instances can be created via the JavaCore.newRegion
.
JavaCore.newRegion()
Modifier and Type | Method and Description |
---|---|
void |
add(IJavaElement element)
Adds the given element and all of its descendents to this region.
|
boolean |
contains(IJavaElement element)
Returns whether the given element is contained in this region.
|
IJavaElement[] |
getElements()
Returns the top level elements in this region.
|
boolean |
remove(IJavaElement element)
Removes the specified element from the region and returns
true if successful, false if the remove
fails. |
void add(IJavaElement element)
element
- the given elementboolean contains(IJavaElement element)
element
- the given elementIJavaElement[] getElements()
boolean remove(IJavaElement element)
true
if successful, false
if the remove
fails. If an ancestor of the given element is included, the
remove fails (in other words, it is not possible to selectively
exclude descendants of included ancestors).element
- the given elementtrue
if successful, false
if the remove fails
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.