public class EMFDeleteServiceImpl extends Object implements ConditionalDeleteService
DeleteService
. Uses DeleteCommand
respectively.Constructor and Description |
---|
EMFDeleteServiceImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete(Iterable<?> objects)
Queries whether all of the given
objects can be deleted. |
void |
deleteElement(Object toDelete)
Deletes the given object from the containment tree.
|
void |
deleteElements(Collection<Object> toDelete)
Deletes the given objects from the containment tree.
|
void |
dispose()
Dispose.
|
int |
getPriority()
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Instantiate the view service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
adapt, canDelete, getDeleteService
public void instantiate(ViewModelContext context)
ViewModelService
instantiate
in interface ViewModelService
context
- the ViewModelContext
public void dispose()
ViewModelService
dispose
in interface ViewModelService
public int getPriority()
ViewModelService
getPriority
in interface ViewModelService
public void deleteElements(Collection<Object> toDelete)
DeleteService
deleteElements
in interface DeleteService
toDelete
- the objects to deletepublic void deleteElement(Object toDelete)
DeleteService
deleteElement
in interface DeleteService
toDelete
- the object to deletepublic boolean canDelete(Iterable<?> objects)
ConditionalDeleteService
objects
can be deleted.canDelete
in interface ConditionalDeleteService
objects
- a number of objects to be deletedfalse
if any of the objects cannot be deleted; true
otherwise, including the case of no
objects
Copyright © 2019. All rights reserved.