Package com._1c.g5.v8.dt.cmi.tasks
Class BasicCICustomizationTask
java.lang.Object
com._1c.g5.v8.bm.integration.AbstractBmTask<org.eclipse.core.runtime.IStatus>
com._1c.g5.v8.dt.cmi.tasks.BasicCICustomizationTask
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
- Direct Known Subclasses:
BasicCICustomizationTask1
,BasicCICustomizationTask2
,SetCommandOrderTask
,SetDefaultSubsystemOrderTask
,SetSubsystemOrderTask
public abstract class BasicCICustomizationTask
extends AbstractBmTask<org.eclipse.core.runtime.IStatus>
Base implementation of CI customization task.
-
Constructor Summary
ConstructorsConstructorDescriptionBasicCICustomizationTask
(String name, CommandInterface commandInterface, IBmObject... objects) Creates an instance of the customization task.BasicCICustomizationTask
(String name, CommandInterface commandInterface, List<IBmObject> objects) Creates an instance of the customization task. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatus
execute
(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor monitor) The method called by the task executor with an active transaction.abstract org.eclipse.core.runtime.IStatus
execute
(CommandInterface commandInterface, List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor) Gets specified command interface for current taskMethods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Constructor Details
-
BasicCICustomizationTask
public BasicCICustomizationTask(String name, CommandInterface commandInterface, IBmObject... objects) Creates an instance of the customization task.- Parameters:
name
- The name of the task (used in undo/redo stack).commandInterface
- Reference to the target CMI command interface.objects
- The set of context objects (can be empty).
-
BasicCICustomizationTask
public BasicCICustomizationTask(String name, CommandInterface commandInterface, List<IBmObject> objects) Creates an instance of the customization task.- Parameters:
name
- The name of the task (used in undo/redo stack).commandInterface
- Reference to the target CMI command interface.objects
- The list of context objects (can be empty).
-
-
Method Details
-
execute
public abstract org.eclipse.core.runtime.IStatus execute(CommandInterface commandInterface, List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor) -
execute
public org.eclipse.core.runtime.IStatus execute(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:IBmTask
The method called by the task executor with an active transaction. The method code must not commit or rollback the transaction.
If the task is not supposed to return a result, then it may be parameterized with
Void
and return null.- Parameters:
transaction
- The active transaction. May not benull
.monitor
- The monitor to indicate the progress. May not benull
.- Returns:
- execution result, may be
null
.
-
getCommandInterface
Gets specified command interface for current task- Returns:
- command interface, cannot be
null
-