|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.ui.features.DefaultDeleteFeature
org.eclipse.graphiti.pattern.DeleteFeatureForPattern
public class DeleteFeatureForPattern
This class is used by the DefaultFeatureProviderWithPatterns to wrap
the deletion behavior provided by an IPattern into an
IDeleteFeature.
| Field Summary | |
|---|---|
private IFeatureForPattern |
delegate
|
| Constructor Summary | |
|---|---|
DeleteFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
Creates a new DeleteFeatureForPattern. |
|
| Method Summary | |
|---|---|
boolean |
canDelete(IDeleteContext context)
Can delete. |
boolean |
canRedo(IContext context)
Decides if the processed feature can be re-done. |
boolean |
canUndo(IContext context)
Decides if the current feature can be undone - this is the undo of the execute operation. |
void |
delete(IDeleteContext context)
Delete. |
void |
postDelete(IDeleteContext context)
Post delete. |
void |
preDelete(IDeleteContext context)
Pre delete. |
void |
redo(IContext context)
This method will be called to actually do the work needed for redo. |
void |
undo(IContext context)
This method will be called to actually do the work needed for undo. |
| 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, 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 |
|---|
isAvailable |
| Methods inherited from interface org.eclipse.graphiti.IDescription |
|---|
getDescription |
| Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
|---|
getFeatureProvider |
| Field Detail |
|---|
private IFeatureForPattern delegate
| Constructor Detail |
|---|
public DeleteFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
DeleteFeatureForPattern.
featureProvider - the feature providerpattern - the pattern| Method Detail |
|---|
public boolean canDelete(IDeleteContext context)
IDelete
canDelete in interface IDeletecanDelete in class DefaultDeleteFeaturecontext - the context
public void preDelete(IDeleteContext context)
IDelete
preDelete in interface IDeletepreDelete in class DefaultDeleteFeaturecontext - the contextpublic void delete(IDeleteContext context)
IDelete
delete in interface IDeletedelete in class DefaultDeleteFeaturecontext - the contextpublic void postDelete(IDeleteContext context)
IDelete
postDelete in interface IDeletepostDelete in class DefaultDeleteFeaturecontext - the contextpublic boolean canUndo(IContext context)
IFeature
canUndo in interface ICustomUndoableFeaturecanUndo in interface IFeaturecanUndo in class AbstractFeaturecontext - this is the general input for this method
IContextpublic void undo(IContext context)
ICustomUndoableFeature
undo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic boolean canRedo(IContext context)
ICustomUndoableFeature
Note that as soon as any feature reports false here, also
all consecutive entries in the command stack are no longer reachable for
redo.
canRedo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the feature
public void redo(IContext context)
ICustomUndoableFeature
redo in interface ICustomUndoableFeaturecontext - this is the instance of the IContext object that was
in use when executing the feature
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||