Package org.eclipse.graphiti.func
Interface IRemove
-
- All Known Subinterfaces:
IPattern,IRemoveFeature
- All Known Implementing Classes:
AbstractPattern,DefaultRemoveFeature,IdPattern,RemoveFeatureForPattern,TypedPattern
public interface IRemoveInstances of this interface provide the behavior to remove objects. Removing means removing the graphical representation of a business object from the diagram while keeping the business object itself as it is.- Since:
- 0.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanRemove(IRemoveContext context)Checks if given object could be removed.booleanisRemoveAbort()The Graphiti framework will call this method afterpreRemove(IRemoveContext)has been called and before the actual remove is done.voidpostRemove(IRemoveContext context)called after remove call.voidpreRemove(IRemoveContext context)called prior to remove call.voidremove(IRemoveContext context)Remove the given object.
-
-
-
Method Detail
-
canRemove
boolean canRemove(IRemoveContext context)
Checks if given object could be removed.- Parameters:
context- contains object to remove- Returns:
- true if remove is possible
-
preRemove
void preRemove(IRemoveContext context)
called prior to remove call.- Parameters:
context- the context
-
isRemoveAbort
boolean isRemoveAbort()
The Graphiti framework will call this method afterpreRemove(IRemoveContext)has been called and before the actual remove is done. In case this method returnstrue, the operation will be cancelled by the Graphiti framework by throwing anOperationCanceledExceptionthat causes am EMF revert of the operation.Implementing classes might e.g. set a flag in
preRemove(IRemoveContext)as cancellation indication and check that that flag here.- Returns:
truein case you want to cancel the current operation,falseotherwise.- Since:
- 0.12
-
remove
void remove(IRemoveContext context)
Remove the given object.- Parameters:
context- contains object to remove
-
postRemove
void postRemove(IRemoveContext context)
called after remove call.- Parameters:
context- the context
-
-