Package com._1c.g5.v8.dt.core.operations
Interface IProjectOperationApi
-
public interface IProjectOperationApi
The API that allows to perform high-level operations. Also it provides APIs for data and files manipulations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEditingContext
createContext(org.eclipse.emf.ecore.EObject object, org.eclipse.core.runtime.IProgressMonitor monitor)
Creates theIEditingContext
for the environment (project, bm/emf, ...) obtained from the specifiedobject
.IEditingContext
getExistingContext(org.eclipse.emf.ecore.EObject object)
Returns a last created context by the specifiedobject
.IModelApi
getModelApi(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedbmObject
.IModelApi
getModelApi(IBmModel bmModel, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedbmModel
.IModelApi
getModelApi(IDtProject project, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedproject
.IModelApi
getReadonlyModelApi(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedbmObject
.IModelApi
getReadonlyModelApi(IBmModel bmModel, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedbmModel
.IModelApi
getReadonlyModelApi(IDtProject project, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedproject
.void
performExclusiveOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Performs the specifiedrunnable
within the workspace exclusive operation.void
performExclusiveOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Performs the specifiedrunnable
within the workspace exclusive operation.void
performOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Performs the specifiedrunnable
within the operation.void
performOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Performs the specifiedrunnable
within the operation.void
submitContextCreation(org.eclipse.emf.ecore.EObject object, org.eclipse.core.runtime.IProgressMonitor monitor, Consumer<IEditingContext> contextConsumer)
Submits the editing context creation.
Invokes thecreateContext(EObject, IProgressMonitor)
within a separate thread.void
submitOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Submits the operation.void
submitOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Submits the operation.
-
-
-
Method Detail
-
submitContextCreation
void submitContextCreation(org.eclipse.emf.ecore.EObject object, org.eclipse.core.runtime.IProgressMonitor monitor, Consumer<IEditingContext> contextConsumer)
Submits the editing context creation.
Invokes thecreateContext(EObject, IProgressMonitor)
within a separate thread.- Parameters:
object
- the object to create context, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.contextConsumer
- the consumer that processes a newly created context, cannot benull
.
-
createContext
IEditingContext createContext(org.eclipse.emf.ecore.EObject object, org.eclipse.core.runtime.IProgressMonitor monitor)
Creates theIEditingContext
for the environment (project, bm/emf, ...) obtained from the specifiedobject
. A newly created context works within the operation that executed after the sync DD is computed.- Parameters:
object
- the object to create context, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.- Returns:
- the editing context instance, or
null
if the operation was canceled bymonitor
.
-
getExistingContext
IEditingContext getExistingContext(org.eclipse.emf.ecore.EObject object)
Returns a last created context by the specifiedobject
.- Parameters:
object
- the object to get the existing context, cannot benull
.- Returns:
- the editing context instance, or
null
if the corrensponding context was not found. - See Also:
createContext(EObject, IProgressMonitor)
-
performOperation
void performOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Performs the specifiedrunnable
within the operation.The operation is performed after all specified
projects
are ready and its pipeline stage corresponds the specifiedafterJob
stage.It does nothing if it is canceled using monitor.
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.
-
performOperation
void performOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Performs the specifiedrunnable
within the operation.The operation is performed after projects pipeline stage corresponds the specified
afterJob
stage.It does nothing if it is canceled using monitor.
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.
-
performExclusiveOperation
void performExclusiveOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Performs the specifiedrunnable
within the workspace exclusive operation.The behavior is the same as for
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IProject...)
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.- See Also:
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IProject...)
-
performExclusiveOperation
void performExclusiveOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Performs the specifiedrunnable
within the workspace exclusive operation.The behavior is the same as for
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IDtProject...)
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.- See Also:
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IDtProject...)
-
submitOperation
void submitOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.resources.IProject... projects)
Submits the operation. In fact, performs thein a separate thread.
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.- See Also:
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IProject...)
-
submitOperation
void submitOperation(Runnable runnable, ProjectPipelineJob afterJob, org.eclipse.core.runtime.IProgressMonitor monitor, IDtProject... projects)
Submits the operation. In fact, performs thein a separate thread.
- Parameters:
runnable
- the runnable to perform, cannot benull
.afterJob
- the stage the operation executed after, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.projects
- the projects the operation affects, cannot benull
or empty.- See Also:
performOperation(Runnable, ProjectPipelineJob, IProgressMonitor, IDtProject...)
-
getReadonlyModelApi
IModelApi getReadonlyModelApi(IBmModel bmModel, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedbmModel
.- Parameters:
bmModel
- the BM Model to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
getReadonlyModelApi
IModelApi getReadonlyModelApi(IDtProject project, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedproject
.- Parameters:
project
- the project to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
getReadonlyModelApi
IModelApi getReadonlyModelApi(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly created readonlyIModelApi
for the specifiedbmObject
.- Parameters:
bmObject
- the object to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
getModelApi
IModelApi getModelApi(IBmModel bmModel, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedbmModel
.- Parameters:
bmModel
- the BM Model to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
getModelApi
IModelApi getModelApi(IDtProject project, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedproject
.- Parameters:
project
- the project to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
getModelApi
IModelApi getModelApi(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor monitor, ProjectPipelineJob afterJob)
Returns a newly createdIModelApi
for the specifiedbmObject
.- Parameters:
bmObject
- the object to create the model API, cannot benull
.monitor
- the progress monitor that monitors the activity of workspace operations, can benull
.afterJob
- the stage the operation executed after, cannot benull
.- Returns:
IModelApi
instance, nevernull
.
-
-