Package com._1c.g5.v8.dt.core.platform
Interface IConfigurationProvider
-
public interface IConfigurationProvider
The configuration provider allows clients to get instances of configuration from context model object, model objectURI
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Configuration
getConfiguration(IDtProject project)
Returns the configuration by the provided workspace project.Configuration
getConfiguration(org.eclipse.core.resources.IProject project)
Returns the configuration by the provided workspace project.Configuration
getConfiguration(org.eclipse.emf.common.util.URI uri)
Returns the configuration which contains object with the providedURI
.Configuration
getConfiguration(org.eclipse.emf.ecore.EObject eObject)
Returns the configuration which contains the provided model object.Collection<Configuration>
getConfigurations()
Returns a collection of all configurations in workspace.
-
-
-
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 providedURI
. Can returnnull
.- Parameters:
uri
- the model objectURI
, cannot benull
- Returns:
- the configuration which contains object with the provided
URI
ornull
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 returnnull
.- Parameters:
eObject
- the model object, cannot benull
- 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 returnnull
.- Parameters:
project
- the project, cannot benull
- 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 returnnull
.- Parameters:
project
- the project, cannot benull
- Returns:
- the project configuration or
null
if the provided project does not hold any configuration
-
-