Package com._1c.g5.v8.dt.navigator
Interface IRootObjectProvider
-
- All Superinterfaces:
IManagedService
public interface IRootObjectProvider extends 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
Fields Modifier and Type Field Description static String
SERVICE_NAME
Service name (using in recovery orchestrator)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<MdObject>
getRootObjects(IDtProject project)
Return collection of root objects by the given projectCollection<MdObject>
getRootObjects(org.eclipse.core.resources.IProject project)
Return collection of root objects by the given projectCollection<MdObject>
getRootObjects(org.eclipse.emf.common.util.URI uri)
Return collection of root objects by the given uriCollection<MdObject>
getRootObjects(org.eclipse.emf.ecore.EObject eObject)
Return collection of root objects by the given eObjectMdObject
getRootParent(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 Detail
-
SERVICE_NAME
static final String SERVICE_NAME
Service name (using in recovery orchestrator)- See Also:
- Constant Field Values
-
-
Method Detail
-
getRootObjects
Collection<MdObject> getRootObjects(org.eclipse.emf.common.util.URI uri)
Return collection of root objects by the given uri- Parameters:
uri
- the URI (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Collection<MdObject> getRootObjects(org.eclipse.emf.ecore.EObject eObject)
Return collection of root objects by the given eObject- Parameters:
eObject
- the EObject (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Collection<MdObject> getRootObjects(org.eclipse.core.resources.IProject project)
Return collection of root objects by the given project- Parameters:
project
- the IProject (notnull
)- Returns:
- the collection of root objects, never
null
-
getRootObjects
Collection<MdObject> getRootObjects(IDtProject project)
Return collection of root objects by the given project- Parameters:
project
- theIDtProject
, cannot benull
- Returns:
- the collection of root objects, never
null
-
getRootParent
MdObject getRootParent(org.eclipse.emf.ecore.EObject eObject)
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
-
-