org.eclipse.emf.emfstore.internal.client.model.impl.api
Class ESCompositeOperationHandleImpl
java.lang.Object
org.eclipse.emf.emfstore.internal.common.api.AbstractAPIImpl<ESCompositeOperationHandleImpl,CompositeOperationHandle>
org.eclipse.emf.emfstore.internal.client.model.impl.api.ESCompositeOperationHandleImpl
- All Implemented Interfaces:
- ESCompositeOperationHandle, InternalAPIDelegator<ESCompositeOperationHandleImpl,CompositeOperationHandle>
public class ESCompositeOperationHandleImpl
- extends AbstractAPIImpl<ESCompositeOperationHandleImpl,CompositeOperationHandle>
- implements ESCompositeOperationHandle
Implementation of ESCompositeOperationHandle
.
- Author:
- Johannes Faltermeier
Method Summary |
void |
abort()
Aborts the composite operation. |
void |
end(String name,
String description,
ESModelElementId modelElementId)
Completes a composite operation. |
boolean |
isValid()
Returns whether the handle is still valid. |
ESCompositeOperationHandleImpl
public ESCompositeOperationHandleImpl(CompositeOperationHandle internal)
- Parameters:
internal
- the non-API instance
isValid
public boolean isValid()
- Returns whether the handle is still valid.
- Specified by:
isValid
in interface ESCompositeOperationHandle
- Returns:
false
if the composite operation has completed
or was aborted
, true
otherwise.- See Also:
ESCompositeOperationHandle.isValid()
abort
public void abort()
throws ESInvalidCompositeOperationException
- Aborts the composite operation. The state before starting the composite operation will be recovered.
- Specified by:
abort
in interface ESCompositeOperationHandle
- Throws:
ESInvalidCompositeOperationException
- if the handle is invalid
- See Also:
ESCompositeOperationHandle.abort()
end
public void end(String name,
String description,
ESModelElementId modelElementId)
throws ESInvalidCompositeOperationException
- Completes a composite operation.
- Specified by:
end
in interface ESCompositeOperationHandle
- Parameters:
name
- the name for the operationdescription
- the description of the operationmodelElementId
- the id
of the model element that is most important for the
operation
- Throws:
ESInvalidCompositeOperationException
- if the handle is invalid
- See Also:
ESCompositeOperationHandle.end(java.lang.String, java.lang.String,
org.eclipse.emf.emfstore.common.model.ESModelElementId)
Copyright © 2016. All Rights Reserved.