public abstract class CreateNodeOperationHandler extends Object implements OperationHandler
| Constructor and Description |
|---|
CreateNodeOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.eclipse.sprotty.SModelElement |
createNode(Optional<org.eclipse.sprotty.Point> point,
SModelIndex index) |
Optional<org.eclipse.sprotty.SModelRoot> |
execute(AbstractOperationAction action,
ModelState modelState) |
protected String |
generateID(org.eclipse.sprotty.SModelElement element,
SModelIndex index) |
protected int |
getCounter(SModelIndex index,
String type,
Function<Integer,String> idProvider) |
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 action, ModelState modelState)
execute in interface OperationHandlerprotected String generateID(org.eclipse.sprotty.SModelElement element, SModelIndex index)
protected abstract org.eclipse.sprotty.SModelElement createNode(Optional<org.eclipse.sprotty.Point> point, SModelIndex index)
protected int getCounter(SModelIndex index, String type, Function<Integer,String> idProvider)
Copyright © 2019. All rights reserved.