public class DeleteHandler extends Object implements OperationHandler
DeleteElementOperationAction| Constructor and Description |
|---|
DeleteHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
collectDependents(Set<org.eclipse.sprotty.SModelElement> dependents,
org.eclipse.sprotty.SModelElement nodeToDelete,
ModelState modelState) |
protected void |
delete(org.eclipse.sprotty.SModelElement element,
ModelState modelState) |
protected boolean |
delete(String elementId,
SModelIndex index,
ModelState modelState) |
Optional<org.eclipse.sprotty.SModelRoot> |
execute(AbstractOperationAction execAction,
ModelState modelState) |
protected org.eclipse.sprotty.SModelElement |
findTopLevelElement(org.eclipse.sprotty.SModelElement element,
SModelIndex index) |
boolean |
handles(AbstractOperationAction action) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlesActionTypegetPrioritypublic boolean handles(AbstractOperationAction action)
handles in interface Handler<AbstractOperationAction>handles in interface OperationHandlerpublic Optional<org.eclipse.sprotty.SModelRoot> execute(AbstractOperationAction execAction, ModelState modelState)
execute in interface OperationHandlerprotected boolean delete(String elementId, SModelIndex index, ModelState modelState)
protected void delete(org.eclipse.sprotty.SModelElement element,
ModelState modelState)
protected void collectDependents(Set<org.eclipse.sprotty.SModelElement> dependents, org.eclipse.sprotty.SModelElement nodeToDelete, ModelState modelState)
protected org.eclipse.sprotty.SModelElement findTopLevelElement(org.eclipse.sprotty.SModelElement element,
SModelIndex index)
Copyright © 2019. All rights reserved.