org.eclipse.emf.ecore.resource.impl
Class ResourceSetImpl.MappedResourceLocator.ResourceAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
ResourceSetImpl.MappedResourceLocator.ResourceAdapter()
           
 
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 org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceSetImpl.MappedResourceLocator.ResourceAdapter

public ResourceSetImpl.MappedResourceLocator.ResourceAdapter()
Method Detail

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

Copyright 2001-2012 IBM Corporation and others.
All Rights Reserved.