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
Constructors Constructor Description BasicCICustomizationTask(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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatusexecute(IBmTransaction transaction, org.eclipse.core.runtime.IProgressMonitor monitor)The method called by the task executor with an active transaction.abstract org.eclipse.core.runtime.IStatusexecute(CommandInterface commandInterface, List<IBmObject> objects, org.eclipse.core.runtime.IProgressMonitor monitor)-
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
-
-
-
Constructor Detail
-
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 Detail
-
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:IBmTaskThe 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
Voidand 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.
-
-