public abstract static class DiagnosticDecorator.DiagnosticAdapter extends EContentAdapter
resource set
's resources.Adapter.Internal
target
Constructor and Description |
---|
DiagnosticDecorator.DiagnosticAdapter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
handleResourceDiagnostics(java.util.List<Resource> resources)
This will typically compute a diagnostic for the resource and call
updateDiagnostic(Diagnostic) . |
void |
notifyChanged(Notification notification)
Handles a notification by calling
selfAdapter . |
protected void |
setTarget(Resource target)
Handles installation of the adapter on a Resource
by adding the adapter to each of the directly contained objects.
|
protected void |
setTarget(ResourceSet target)
Handles installation of the adapter on a ResourceSet
by adding the adapter to each of the directly contained objects.
|
protected void |
unsetTarget(Resource target)
Handles undoing the installation of the adapter from a Resource
by removing the adapter from each of the directly contained objects.
|
static void |
update(Notifier notifier,
Diagnostic diagnostic)
Inform all diagnostic adapters associated with the notifier of new diagnostic information.
|
protected abstract void |
updateDiagnostic(Diagnostic diagnostic) |
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, resolve, selfAdapt, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget
getTarget, isAdapterForType
public DiagnosticDecorator.DiagnosticAdapter()
public static void update(Notifier notifier, Diagnostic diagnostic)
protected abstract void updateDiagnostic(Diagnostic diagnostic)
protected abstract void handleResourceDiagnostics(java.util.List<Resource> resources)
updateDiagnostic(Diagnostic)
.public void notifyChanged(Notification notification)
EContentAdapter
selfAdapter
.notifyChanged
in interface Adapter
notifyChanged
in class EContentAdapter
notification
- a description of the change.protected void setTarget(ResourceSet target)
EContentAdapter
setTarget
in class EContentAdapter
protected void setTarget(Resource target)
EContentAdapter
setTarget
in class EContentAdapter
protected void unsetTarget(Resource target)
EContentAdapter
unsetTarget
in class EContentAdapter