org.eclipse.graphiti.pattern
Class RemoveFeatureForPattern
java.lang.Object
org.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.DefaultRemoveFeature
org.eclipse.graphiti.pattern.RemoveFeatureForPattern
- All Implemented Interfaces:
- IFeature, IFeatureProviderHolder, IRemoveFeature, IRemove, IDescription, IName
public class RemoveFeatureForPattern
- extends DefaultRemoveFeature
This class is used by the DefaultFeatureProviderWithPatterns to wrap
the removal behavior provided by an IPattern into an
IRemoveFeature.
- Since:
- 0.8.0
| Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, setProgressCallback, toString, updatePictogramElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
delegate
private IFeatureForPattern delegate
RemoveFeatureForPattern
public RemoveFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
- Creates a new
RemoveFeatureForPattern.
- Parameters:
featureProvider - the feature providerpattern - the pattern
canRemove
public boolean canRemove(IRemoveContext context)
- Description copied from interface:
IRemove
- Checks if given object could be removed.
- Specified by:
canRemove in interface IRemove- Overrides:
canRemove in class DefaultRemoveFeature
- Parameters:
context - contains object to remove
- Returns:
- true if remove is possible
preRemove
public void preRemove(IRemoveContext context)
- Description copied from interface:
IRemove
- called prior to remove call.
- Specified by:
preRemove in interface IRemove- Overrides:
preRemove in class DefaultRemoveFeature
- Parameters:
context - the context
postRemove
public void postRemove(IRemoveContext context)
- Description copied from interface:
IRemove
- called after remove call.
- Specified by:
postRemove in interface IRemove- Overrides:
postRemove in class DefaultRemoveFeature
- Parameters:
context - the context
Copyright (c) SAP AG 2005, 2010.