Package org.eclipse.emf.ecp.edit.spi
Interface DeleteService
-
- All Superinterfaces:
ViewModelService
- All Known Subinterfaces:
ConditionalDeleteService
- All Known Implementing Classes:
ECPDeleteServiceImpl
,EMFDeleteServiceImpl
public interface DeleteService extends ViewModelService
The DeleteService is used by renderers in order to delete objects from the containment tree.
Note that since the 1.23 release, it is recommended to implement the
ConditionalDeleteService
interface to support conditional deletion, honouring the model's edit providers when they veto deletion by providing unexecutable commands.- Since:
- 1.6
- Author:
- jfaltermeier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deleteElement(java.lang.Object toDelete)
Deletes the given object from the containment tree.void
deleteElements(java.util.Collection<java.lang.Object> toDelete)
Deletes the given objects from the containment tree.-
Methods inherited from interface org.eclipse.emf.ecp.view.spi.context.ViewModelService
dispose, getPriority, instantiate
-
-
-
-
Method Detail
-
deleteElements
void deleteElements(java.util.Collection<java.lang.Object> toDelete)
Deletes the given objects from the containment tree. This will cut all references to the deleted objects.- Parameters:
toDelete
- the objects to delete
-
deleteElement
void deleteElement(java.lang.Object toDelete)
Deletes the given object from the containment tree. This will cut all references to the deleted object.- Parameters:
toDelete
- the object to delete
-
-