Class Mwe2StateBasedContainerManager

java.lang.Object
org.eclipse.xtext.resource.containers.StateBasedContainerManager
org.eclipse.emf.mwe2.language.scoping.Mwe2StateBasedContainerManager
All Implemented Interfaces:
org.eclipse.xtext.resource.IContainer.Manager

public class Mwe2StateBasedContainerManager extends org.eclipse.xtext.resource.containers.StateBasedContainerManager
This container manager can handle resources that are not yet contained in any container and that do not allow to compute a container handle for them. The use case is a standalone environments that was not yet properly compiled, e.g. the module was not copied to the /bin folder of the eclipse project and therefore the resource is not on the classpath of the current Java process.
Author:
Moritz Eysholdt - Initial contribution and API
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.xtext.resource.IContainer>
    getVisibleContainers(org.eclipse.xtext.resource.IResourceDescription desc, org.eclipse.xtext.resource.IResourceDescriptions resourceDescriptions)
    In contrast to super.getVisibleContainers(..), this implementation will never return an empty list of containers.

    Methods inherited from class org.eclipse.xtext.resource.containers.StateBasedContainerManager

    createContainer, createContainer, getContainer, getState, getStateProvider, getVisibleContainers, internalGetContainerHandle, setDelegate, setStateProvider

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Mwe2StateBasedContainerManager

      public Mwe2StateBasedContainerManager()
  • Method Details

    • getVisibleContainers

      public List<org.eclipse.xtext.resource.IContainer> getVisibleContainers(org.eclipse.xtext.resource.IResourceDescription desc, org.eclipse.xtext.resource.IResourceDescriptions resourceDescriptions)
      In contrast to super.getVisibleContainers(..), this implementation will never return an empty list of containers. If the current resource (desc) is not in any container, a new container will be created. see https://bugs.eclipse.org/bugs/show_bug.cgi?id=378958
      Specified by:
      getVisibleContainers in interface org.eclipse.xtext.resource.IContainer.Manager
      Overrides:
      getVisibleContainers in class org.eclipse.xtext.resource.containers.StateBasedContainerManager