public class CompositeOperationHandle extends Object implements APIDelegate<ESCompositeOperationHandleImpl>
| Constructor and Description |
|---|
CompositeOperationHandle(OperationRecorder operationRecorder,
CompositeOperation compositeOperation)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts a composite operation.
|
ESCompositeOperationHandleImpl |
createAPI()
Creates the API interface for this class.
|
void |
end(SemanticCompositeOperation semanticCompositeOperation)
Completes a the given semantic composite operation.
|
void |
end(String name,
String description,
ModelElementId modelElementId)
Completes a composite operation.
|
boolean |
isValid()
Returns whether the handle is still valid.
|
ESCompositeOperationHandleImpl |
toAPI()
Returns the API interface of this class.
|
public CompositeOperationHandle(OperationRecorder operationRecorder, CompositeOperation compositeOperation)
operationRecorder - the change tracker this composite is tracked oncompositeOperation - the composite operation to be handledpublic boolean isValid()
public void abort()
throws InvalidHandleException
InvalidHandleException - if the handle is invalidpublic void end(String name, String description, ModelElementId modelElementId) throws InvalidHandleException
name - the name for the operationdescription - the description of the operationmodelElementId - the id of the model element that is most important for the
operationInvalidHandleException - if the handle is invalidpublic void end(SemanticCompositeOperation semanticCompositeOperation) throws InvalidHandleException
semanticCompositeOperation - a semanticCompositeOperation that was executed and represents
the compositeInvalidHandleException - if the handle is invalidpublic ESCompositeOperationHandleImpl toAPI()
toAPI in interface APIDelegate<ESCompositeOperationHandleImpl>APIDelegate.toAPI()public ESCompositeOperationHandleImpl createAPI()
createAPI in interface APIDelegate<ESCompositeOperationHandleImpl>APIDelegate.createAPI()Copyright © 2017. All rights reserved.