org.eclipse.graphiti.pattern
Class RemoveFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.DefaultRemoveFeature
          extended by 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

Field Summary
private  IFeatureForPattern delegate
           
 
Constructor Summary
RemoveFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
          Creates a new RemoveFeatureForPattern.
 
Method Summary
 boolean canRemove(IRemoveContext context)
          Checks if given object could be removed.
 void postRemove(IRemoveContext context)
          called after remove call.
 void preRemove(IRemoveContext context)
          called prior to remove call.
 
Methods inherited from class org.eclipse.graphiti.features.impl.DefaultRemoveFeature
canExecute, execute, getName, remove, removeAllConnections
 
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
 
Methods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailable
 
Methods inherited from interface org.eclipse.graphiti.IDescription
getDescription
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Field Detail

delegate

private IFeatureForPattern delegate
Constructor Detail

RemoveFeatureForPattern

public RemoveFeatureForPattern(IFeatureProvider featureProvider,
                               IPattern pattern)
Creates a new RemoveFeatureForPattern.

Parameters:
featureProvider - the feature provider
pattern - the pattern
Method Detail

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.