public class EContentAdapter
extends AdapterImpl
EObject
, a Resource
, or a ResourceSet
.Modifier and Type | Field and Description |
---|---|
protected boolean |
iterating
Indicates whether the adapter is currently being attached
iteratively . |
Constructor and Description |
---|
EContentAdapter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAdapter(Notifier notifier) |
protected void |
basicSetTarget(Notifier target)
Actually sets the target by calling super.
|
protected void |
basicUnsetTarget(Notifier target)
Actually unsets the target by calling super.
|
protected void |
handleContainment(Notification notification)
Handles a containment change by adding and removing the adapter as appropriate.
|
void |
notifyChanged(Notification notification)
Handles a notification by calling
selfAdapter . |
protected void |
removeAdapter(Notifier notifier) |
protected void |
removeAdapter(Notifier notifier,
boolean checkContainer,
boolean checkResource) |
protected boolean |
resolve() |
protected void |
selfAdapt(Notification notification)
Handles a notification by calling
handleContainment
for any containment-based notification. |
void |
setTarget(Notifier target)
Handles installation of the adapter
by adding the adapter to each of the directly contained objects.
|
void |
unsetTarget(Notifier target)
Handles undoing the installation of the adapter
by removing the adapter from each of the directly contained objects.
|
protected boolean |
useRecursion()
Returns whether the process of attaching this adapter should be done recursively or iteratively;
the default is to return
true for recursion. |
protected boolean iterating
iteratively
.useRecursion()
,
#setTarget(EObject)
,
#unsetTarget(EObject)
protected boolean useRecursion()
true
for recursion.public void notifyChanged(Notification notification)
selfAdapter
.protected void selfAdapt(Notification notification)
handleContainment
for any containment-based notification.protected void handleContainment(Notification notification)
public void setTarget(Notifier target)
protected void basicSetTarget(Notifier target)
public void unsetTarget(Notifier target)
protected void basicUnsetTarget(Notifier target)
protected void addAdapter(Notifier notifier)
protected void removeAdapter(Notifier notifier, boolean checkContainer, boolean checkResource)
protected void removeAdapter(Notifier notifier)
protected boolean resolve()
Copyright © 2022. Licensed under the Eclipse Public License v2.0. All rights reserved.
Submit a bug or feature