Package com._1c.g5.v8.dt.navigator
Interface IRootObjectProvider
- All Superinterfaces:
IManagedService
Provider thar allow clients to get root object (configuration, external data processor, external report, etc)
from the given objects: project, URI, eObject. Also allow to subscribe/unsubscribe to change root object events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Service name (using in recovery orchestrator) -
Method Summary
Modifier and TypeMethodDescriptiongetRootObjects
(IDtProject project) Return collection of root objects by the given projectgetRootObjects
(org.eclipse.core.resources.IProject project) Return collection of root objects by the given projectgetRootObjects
(org.eclipse.emf.common.util.URI uri) Return collection of root objects by the given urigetRootObjects
(org.eclipse.emf.ecore.EObject eObject) Return collection of root objects by the given eObjectgetRootParent
(org.eclipse.emf.ecore.EObject eObject) Returns the root parent of a given object.Methods inherited from interface com._1c.g5.wiring.IManagedService
activate, deactivate
-
Field Details
-
SERVICE_NAME
Service name (using in recovery orchestrator)- See Also:
-
-
Method Details
-
getRootObjects
Return collection of root objects by the given uri- Parameters:
uri
- the URI (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Return collection of root objects by the given eObject- Parameters:
eObject
- the EObject (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Return collection of root objects by the given project- Parameters:
project
- the IProject (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Return collection of root objects by the given project- Parameters:
project
- theIDtProject
, cannot benull
- Returns:
- the collection of root objects, never
null
-
getRootParent
Returns the root parent of a given object. The root parent is the top object of the project owning a given EObject. Thus, for configuration projects the root parent is the configuration, for projects with external data processors/reports it is the corresponding external object.- Parameters:
eObject
- The object for which the root parent must be returned- Returns:
- The root parent of the object
-