| Constructor and Description |
|---|
Region() |
| 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.
|
protected IJavaElement |
getParent(IJavaElement element) |
boolean |
remove(IJavaElement element)
Removes the specified element from the region and returns
true if successful, false if the remove
fails. |
public void add(IJavaElement element)
IRegionpublic boolean contains(IJavaElement element)
IRegionpublic IJavaElement[] getElements()
IRegiongetElements in interface IRegionpublic boolean remove(IJavaElement element)
IRegiontrue 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).protected IJavaElement getParent(IJavaElement element)