Class EMFChangeBoundsOperationHandler
- java.lang.Object
-
- org.eclipse.glsp.server.operations.AbstractOperationHandler<O>
-
- org.eclipse.glsp.server.emf.AbstractEMFOperationHandler<ChangeBoundsOperation>
-
- org.eclipse.glsp.server.emf.notation.EMFChangeBoundsOperationHandler
-
- All Implemented Interfaces:
EMFOperationHandler<ChangeBoundsOperation>,OperationHandler
public class EMFChangeBoundsOperationHandler extends AbstractEMFOperationHandler<ChangeBoundsOperation>
A custom change bounds operation handler that updates the notation model for the moved shape elements.
-
-
Field Summary
Fields Modifier and Type Field Description protected EMFNotationModelStatemodelState-
Fields inherited from class org.eclipse.glsp.server.operations.AbstractOperationHandler
operationType
-
-
Constructor Summary
Constructors Constructor Description EMFChangeBoundsOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.eclipse.emf.common.command.Command>createCommand(ChangeBoundsOperation operation)Creates a command that performs the operation in the EMF source model(s).-
Methods inherited from class org.eclipse.glsp.server.emf.AbstractEMFOperationHandler
executeOperation
-
Methods inherited from class org.eclipse.glsp.server.operations.AbstractOperationHandler
deriveOperationType, execute, getHandledOperationType, getLabel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.glsp.server.emf.EMFOperationHandler
execute, getCommand, getHandledOperationType
-
Methods inherited from interface org.eclipse.glsp.server.operations.OperationHandler
getLabel, handles
-
-
-
-
Field Detail
-
modelState
@Inject protected EMFNotationModelState modelState
-
-
Method Detail
-
createCommand
public java.util.Optional<org.eclipse.emf.common.command.Command> createCommand(ChangeBoundsOperation operation)
Description copied from interface:EMFOperationHandlerCreates a command that performs the operation in the EMF source model(s).- Parameters:
operation- The operation to process.- Returns:
- The created command to be executed on the command stack.
-
-