org.eclipse.graphiti.pattern
Class DeleteFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.ui.features.DefaultDeleteFeature
          extended by org.eclipse.graphiti.pattern.DeleteFeatureForPattern
All Implemented Interfaces:
IDeleteFeature, IFeature, IFeatureProviderHolder, IDelete, IDescription, IName

public class DeleteFeatureForPattern
extends DefaultDeleteFeature

This class is used by the DefaultFeatureProviderWithPatterns to wrap the deletion behavior provided by an IPattern into an IDeleteFeature.

Since:
0.8.0

Field Summary
private  IFeatureForPattern delegate
           
 
Constructor Summary
DeleteFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
          Creates a new DeleteFeatureForPattern.
 
Method Summary
 boolean canDelete(IDeleteContext context)
          Can delete.
 void delete(IDeleteContext context)
          Delete.
 void postDelete(IDeleteContext context)
          Post delete.
 void preDelete(IDeleteContext context)
          Pre delete.
 
Methods inherited from class org.eclipse.graphiti.ui.features.DefaultDeleteFeature
canExecute, deleteBusinessObject, deleteBusinessObjects, execute, getDeleteName, getName, getUserDecision, hasDoneChanges
 
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, 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, 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

DeleteFeatureForPattern

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

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

canDelete

public boolean canDelete(IDeleteContext context)
Description copied from interface: IDelete
Can delete.

Specified by:
canDelete in interface IDelete
Overrides:
canDelete in class DefaultDeleteFeature
Parameters:
context - the context
Returns:
true, if successful

preDelete

public void preDelete(IDeleteContext context)
Description copied from interface: IDelete
Pre delete.

Specified by:
preDelete in interface IDelete
Overrides:
preDelete in class DefaultDeleteFeature
Parameters:
context - the context

delete

public void delete(IDeleteContext context)
Description copied from interface: IDelete
Delete.

Specified by:
delete in interface IDelete
Overrides:
delete in class DefaultDeleteFeature
Parameters:
context - the context

postDelete

public void postDelete(IDeleteContext context)
Description copied from interface: IDelete
Post delete.

Specified by:
postDelete in interface IDelete
Overrides:
postDelete in class DefaultDeleteFeature
Parameters:
context - the context


Copyright (c) SAP AG 2005, 2010.