org.eclipse.xtext.linking.impl
Class ImportedNamesAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.xtext.linking.impl.ImportedNamesAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, IScopeWrapper

public class ImportedNamesAdapter
extends org.eclipse.emf.common.notify.impl.AdapterImpl
implements IScopeWrapper

Wraps global scopes and collects and holds all names for which global scopes have been asked.

Author:
Sven Efftinge - Initial contribution and API

Nested Class Summary
 class ImportedNamesAdapter.WrappingScope
           
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
 
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
 
Constructor Summary
ImportedNamesAdapter()
           
 
Method Summary
 void clear()
           
static ImportedNamesAdapter find(org.eclipse.emf.ecore.resource.Resource resource)
           
 java.util.Set<QualifiedName> getImportedNames()
           
 IScope wrap(IScope scope)
           
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportedNamesAdapter

public ImportedNamesAdapter()
Method Detail

find

public static ImportedNamesAdapter find(org.eclipse.emf.ecore.resource.Resource resource)

getImportedNames

public java.util.Set<QualifiedName> getImportedNames()

wrap

public IScope wrap(IScope scope)
Specified by:
wrap in interface IScopeWrapper

clear

public void clear()