Interface IConfigurationProvider


  • public interface IConfigurationProvider
    The configuration provider allows clients to get instances of configuration from context model object, model object URI or a workspace project. Provider result are the same as direct V8 project configuration get (with respect to project type), so configuration provider may be used for convenience.
    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • getConfigurations

        Collection<Configuration> getConfigurations()
        Returns a collection of all configurations in workspace. Result collection will contain all configurations that are contained in workspace V8 projects.
        Returns:
        a collection of all configurations in workspace or empty collection, if there are no configurations in workspace, never null
      • getConfiguration

        Configuration getConfiguration​(org.eclipse.emf.common.util.URI uri)
        Returns the configuration which contains object with the provided URI. Can return null.
        Parameters:
        uri - the model object URI, cannot be null
        Returns:
        the configuration which contains object with the provided URI or null if object is out of any workspace configuration
      • getConfiguration

        Configuration getConfiguration​(org.eclipse.emf.ecore.EObject eObject)
        Returns the configuration which contains the provided model object. Can return null.
        Parameters:
        eObject - the model object, cannot be null
        Returns:
        the configuration which contains object with the provided model object or null if object is out of any workspace configuration
      • getConfiguration

        Configuration getConfiguration​(org.eclipse.core.resources.IProject project)
        Returns the configuration by the provided workspace project. Can return null.
        Parameters:
        project - the project, cannot be null
        Returns:
        the project configuration or null if the provided project does not hold any configuration
      • getConfiguration

        Configuration getConfiguration​(IDtProject project)
        Returns the configuration by the provided workspace project. Can return null.
        Parameters:
        project - the project, cannot be null
        Returns:
        the project configuration or null if the provided project does not hold any configuration