org.eclipse.emf.ecore.resource.impl
Class ResourceSetImpl.MappedResourceLocator.ResourceAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.ecore.util.EContentAdapter
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.MappedResourceLocator.ResourceAdapter
- All Implemented Interfaces:
- Adapter, Adapter.Internal
- Enclosing class:
- ResourceSetImpl.MappedResourceLocator
public class ResourceSetImpl.MappedResourceLocator.ResourceAdapter
- extends EContentAdapter
A content adapter
that listens to the resource set
for resources
being added and removed,
as well as to the resources in the resource set for changes to the resource's URI
.
Method Summary |
void |
notifyChanged(Notification notification)
Respond to changes to the resource set's resources and the resource's URI . |
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 |
unsetTarget(Resource target)
Handles undoing the installation of the adapter from a Resource
by removing the adapter from each of the directly contained objects. |
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter |
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, resolve, selfAdapt, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSetImpl.MappedResourceLocator.ResourceAdapter
public ResourceSetImpl.MappedResourceLocator.ResourceAdapter()
notifyChanged
public void notifyChanged(Notification notification)
- Respond to changes to the resource set's
resources
and the resource's URI
.
- Specified by:
notifyChanged
in interface Adapter
- Overrides:
notifyChanged
in class EContentAdapter
- Parameters:
notification
- a description of the change.
setTarget
protected void setTarget(Resource target)
- Description copied from class:
EContentAdapter
- Handles installation of the adapter on a Resource
by adding the adapter to each of the directly contained objects.
- Overrides:
setTarget
in class EContentAdapter
unsetTarget
protected void unsetTarget(Resource target)
- Description copied from class:
EContentAdapter
- Handles undoing the installation of the adapter from a Resource
by removing the adapter from each of the directly contained objects.
- Overrides:
unsetTarget
in class EContentAdapter