Class BmBasicTask2Collection<P1,​P2>

  • All Implemented Interfaces:
    IBmTask<org.eclipse.core.runtime.IStatus>
    Direct Known Subclasses:
    AbstractMdObjectCollectionTask

    public abstract class BmBasicTask2Collection<P1,​P2>
    extends BmBasicTask
    Base class for task with useful operation with collections.
    • Constructor Detail

      • BmBasicTask2Collection

        protected BmBasicTask2Collection​(String name,
                                         P1 object,
                                         Collection<P2> objects)
        Instansiates a new IBmTask with the given arguments.
        Parameters:
        name - is the task name
        object - is the object
        objects - is the collection of objects
    • Method Detail

      • execute

        public org.eclipse.core.runtime.IStatus execute​(List<IBmObject> objects,
                                                        org.eclipse.core.runtime.IProgressMonitor monitor)
        Perform task execution. Be ware new objects will not be attached to session on execution.
        Specified by:
        execute in class BmBasicTask
      • execute

        public abstract org.eclipse.core.runtime.IStatus execute​(P1 object,
                                                                 Collection<P2> objects,
                                                                 org.eclipse.core.runtime.IProgressMonitor monitor)
        Executes task with the given arguments. Override in successors.
        Parameters:
        object - is the object
        objects - is the collection of objects
        monitor - is the progress monitor
        Returns:
        the status of the task