|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRemove
Instances 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.
| Method Summary | |
|---|---|
boolean |
canRemove(IRemoveContext context)
Checks if given object could be removed. |
boolean |
isRemoveAbort()
The Graphiti framework will call this method after preRemove(IRemoveContext) has been called and before the actual
remove is done. |
void |
postRemove(IRemoveContext context)
called after remove call. |
void |
preRemove(IRemoveContext context)
called prior to remove call. |
void |
remove(IRemoveContext context)
Remove the given object. |
| Method Detail |
|---|
boolean canRemove(IRemoveContext context)
context - contains object to remove
void preRemove(IRemoveContext context)
context - the contextboolean isRemoveAbort()
preRemove(IRemoveContext) has been called and before the actual
remove is done. In case this method returns true, the
operation will be cancelled by the Graphiti framework by throwing an
OperationCanceledException that 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.
true in case you want to cancel the current
operation, false otherwise.void remove(IRemoveContext context)
context - contains object to removevoid postRemove(IRemoveContext context)
context - the context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||