public interface ConditionalDeleteService extends DeleteService
DeleteServiceprotocol that supports conditional deletion, respecting a model's edit providers when they provide unexecutable commands to veto deletion. Implementations of this interface should be registered as OSGi services providing
DeleteServicebecause the framework looks for that service interface but will test whether the implementation also provides this extension. Whether the extension interface is also declared to OSGi is left to the provider's discretion.
|Modifier and Type||Method and Description|
Obtain a view of a given
Queries whether all of the given
Queries whether an
Obtain a conditional delete service for a given
default boolean canDelete(Object object)
objectcan be deleted. By convention a
nullvalue cannot be deleted.
object- an object to be deleted
objectcannot be deleted or is
boolean canDelete(Iterable<?> objects)
objectscan be deleted.
objects- a number of objects to be deleted
falseif any of the objects cannot be deleted;
trueotherwise, including the case of no
static ConditionalDeleteService getDeleteService(EMFFormsViewContext context)
context, if necessary adapting its service implementation.
static ConditionalDeleteService adapt(DeleteService service)
serviceas conditional delete service, if necessary adapting a service implementation that does not provide the
ConditionalDeleteServiceprotocol with a default deletion condition. In that case, an object is assumed to be deletable if it is not
nulland it is an
EObjectthat has some container from which it can be removed (root elements not logically being deletable).
service- a delete service
ConditionalDeleteServiceprotocol or if the original
Copyright © 2019. All rights reserved.