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 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 be null.
      monitor - The monitor to indicate the progress. May not be null.
      Returns:
      execution result, may be null.
    • getCommandInterface

      public CommandInterface getCommandInterface()
      Gets specified command interface for current task
      Returns:
      command interface, cannot be null