org.eclipse.xtext.resource.impl
Class SimpleResourceDescriptionsBasedContainerManager

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.SimpleResourceDescriptionsBasedContainerManager
All Implemented Interfaces:
IContainer.Manager

public class SimpleResourceDescriptionsBasedContainerManager
extends java.lang.Object
implements IContainer.Manager

Author:
Sebastian Zarnekow - Initial contribution and API

Constructor Summary
SimpleResourceDescriptionsBasedContainerManager()
           
 
Method Summary
 IContainer getContainer(IResourceDescription desc, IResourceDescriptions resourceDescriptions)
           
 java.util.List<IContainer> getVisibleContainers(IResourceDescription desc, IResourceDescriptions resourceDescriptions)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleResourceDescriptionsBasedContainerManager

public SimpleResourceDescriptionsBasedContainerManager()
Method Detail

getContainer

public IContainer getContainer(IResourceDescription desc,
                               IResourceDescriptions resourceDescriptions)
Specified by:
getContainer in interface IContainer.Manager
Returns:
returns the container for a given IResourceDescription. The result is never null.

getVisibleContainers

public java.util.List<IContainer> getVisibleContainers(IResourceDescription desc,
                                                       IResourceDescriptions resourceDescriptions)
Specified by:
getVisibleContainers in interface IContainer.Manager
Returns:
a sorted list of all IContainer, which are visible from the given IResourceDescription. In an Java environment this would correspond to the list of class-path entries. The list includes the container that contains the given resource description. However, the result may be empty due to internal errors.