Class BmInlineTaskValue<T>

    • Constructor Detail

      • BmInlineTaskValue

        public BmInlineTaskValue​(org.eclipse.emf.ecore.EObject object,
                                 org.eclipse.emf.ecore.EStructuralFeature feature,
                                 Function<T,​IBmTask<?>> taskSupplier)
        Creates an instance of inline task BM value.
        Parameters:
        object - The object
        feature - The object's feature
        taskSupplier - The BM task supplier: a function returning a BM task from the value which is to be applied
    • Method Detail

      • createTask

        protected IModelApiTaskN<Void> createTask​(IBmObject object,
                                                  org.eclipse.emf.ecore.EStructuralFeature feature,
                                                  T valueToApply)
        Description copied from class: BmValue
        Creates an IModelApiTaskN that executes during applying changes.
        Overrides:
        createTask in class BmValue<T>
        Parameters:
        object - the object to change, cannot be null.
        feature - the feature the feature to change, cannot be null.
        valueToApply - the value to apply.
        Returns:
        the created IModelApiTaskN.