org.eclipse.graphiti.func
Interface IDelete

All Known Subinterfaces:
IDeleteFeature, IPattern
All Known Implementing Classes:
AbstractPattern, DefaultDeleteFeature, DeleteFeatureForPattern, IdPattern, TypedPattern

public interface IDelete

Instances of this interface provide the behavior to delete objects. Deleting means removing both the business object from its model as well as its graphical representation from the diagram.

Since:
0.8.0

Method Summary
 boolean canDelete(IDeleteContext context)
          Can delete hook.
 void delete(IDeleteContext context)
          Hook to implement the actual delete functionality.
 void postDelete(IDeleteContext context)
          Post delete hook that can be implemented by users to perform any operations that need to be done after the standard delete functionality ends.
 void preDelete(IDeleteContext context)
          Pre delete hook that can be implemented by users to perform any operations that need to be done before the standard delete functionality starts.
 

Method Detail

canDelete

boolean canDelete(IDeleteContext context)
Can delete hook. Needs to be implemented in order to decide if a feature can (and wants to) handle a delete request.

Parameters:
context - the context describing the request
Returns:
true, if the feature can perform the delete operation

preDelete

void preDelete(IDeleteContext context)
Pre delete hook that can be implemented by users to perform any operations that need to be done before the standard delete functionality starts. Be sure to call DefaultDeleteFeature#setDoneChanges(boolean) in case you modify any EMF objects to enable that the command stack gets updated.

Parameters:
context - the context

delete

void delete(IDeleteContext context)
Hook to implement the actual delete functionality.

Parameters:
context - the context

postDelete

void postDelete(IDeleteContext context)
Post delete hook that can be implemented by users to perform any operations that need to be done after the standard delete functionality ends.

Parameters:
context - the context


Copyright (c) SAP AG 2005, 2012.