Package org.eclipse.glsp.server.emf
Class EMFCompoundOperationHandler
- java.lang.Object
-
- org.eclipse.glsp.server.operations.AbstractOperationHandler<O>
-
- org.eclipse.glsp.server.emf.AbstractEMFOperationHandler<CompoundOperation>
-
- org.eclipse.glsp.server.emf.EMFCompoundOperationHandler
-
- All Implemented Interfaces:
EMFOperationHandler<CompoundOperation>,OperationHandler
public class EMFCompoundOperationHandler extends AbstractEMFOperationHandler<CompoundOperation>
Creates a compound command to wrap multiple commands into one command that is executed on the command stack.
-
-
Field Summary
Fields Modifier and Type Field Description protected OperationHandlerRegistryoperationHandlerRegistry-
Fields inherited from class org.eclipse.glsp.server.operations.AbstractOperationHandler
operationType
-
-
Constructor Summary
Constructors Constructor Description EMFCompoundOperationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<org.eclipse.emf.common.command.Command>createCommand(CompoundOperation operation)Creates a command that performs the operation in the EMF source model(s).protected java.util.Optional<org.eclipse.emf.common.command.Command>getNestedCommand(Operation operation)-
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
-
operationHandlerRegistry
@Inject protected OperationHandlerRegistry operationHandlerRegistry
-
-
Method Detail
-
createCommand
public java.util.Optional<org.eclipse.emf.common.command.Command> createCommand(CompoundOperation 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.
-
getNestedCommand
protected java.util.Optional<org.eclipse.emf.common.command.Command> getNestedCommand(Operation operation)
-
-