public class ReconnectionFeatureForPattern extends AbstractFeature implements IReconnectionFeature, ICustomAbortableUndoRedoFeature
| Constructor and Description |
|---|
ReconnectionFeatureForPattern(IFeatureProvider fp,
IReconnection pattern)
Creates a new
ReconnectionFeatureForPattern. |
| Modifier and Type | Method and Description |
|---|---|
void |
canceledReconnect(IReconnectionContext context)
Will called if the connection reconnect process was canceled after
dragging the start or end of the connection.
|
boolean |
canExecute(IContext context)
Decides if the current feature can execute with the given context.
|
boolean |
canReconnect(IReconnectionContext context)
Can reconnect.
|
boolean |
canRedo(IContext context)
Decides if the processed feature can be re-done.
|
boolean |
canStartReconnect(IReconnectionContext context)
Can start reconnect.
|
boolean |
canUndo(IContext context)
Decides if the current feature can be undone - this is the undo of the
execute operation.
|
void |
execute(IContext context)
Executes the current feature with the given context.
|
java.lang.String |
getName()
Gets the name.
|
boolean |
isAbort()
The Graphiti framework will call this method after
ICustomUndoRedoFeature.preUndo(org.eclipse.graphiti.features.context.IContext)/
ICustomUndoRedoFeature.preRedo(org.eclipse.graphiti.features.context.IContext) have
been called and before the actual undo/redo operation is triggered. |
void |
postReconnect(IReconnectionContext context)
Post reconnnect.
|
void |
postRedo(IContext context)
This method will be called by the Graphiti framework after the EMF undo
has finished.
|
void |
postUndo(IContext context)
This method will be called by the Graphiti framework after the EMF undo
is finished.
|
void |
preReconnect(IReconnectionContext context)
Pre reconnnect.
|
void |
preRedo(IContext context)
This method will be called by the Graphiti framework before the EMF undo
has triggered.
|
void |
preUndo(IContext context)
This method will be called by the Graphiti framework before the EMF undo
is triggered.
|
void |
reconnect(IReconnectionContext context)
Reconnnect.
|
getDescription, getFeatureProvider, hasDoneChanges, isAvailable, manageFont, manageFont, setProgressCallback, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waithasDoneChanges, isAvailablegetDescriptiongetFeatureProviderpublic ReconnectionFeatureForPattern(IFeatureProvider fp, IReconnection pattern)
ReconnectionFeatureForPattern.fp - the feature providerpattern - the patternpublic boolean canReconnect(IReconnectionContext context)
IReconnectioncanReconnect in interface IReconnectioncontext - the contextpublic void postReconnect(IReconnectionContext context)
IReconnectionpostReconnect in interface IReconnectioncontext - the contextpublic void preReconnect(IReconnectionContext context)
IReconnectionpreReconnect in interface IReconnectioncontext - the contextpublic void reconnect(IReconnectionContext context)
IReconnectionreconnect in interface IReconnectioncontext - the contextpublic void canceledReconnect(IReconnectionContext context)
IReconnectioncanceledReconnect in interface IReconnectioncontext - the contextpublic boolean canExecute(IContext context)
IFeaturecanExecute in interface IFeaturecontext - this is the general input for this methodIContextpublic void execute(IContext context)
IFeaturepublic java.lang.String getName()
INamegetName in interface INamegetName in class AbstractFeaturepublic boolean isAbort()
ICustomAbortableUndoRedoFeatureICustomUndoRedoFeature.preUndo(org.eclipse.graphiti.features.context.IContext)/
ICustomUndoRedoFeature.preRedo(org.eclipse.graphiti.features.context.IContext) have
been called and before the actual undo/redo operation is triggered. In
case this method returns true, the operation will be
cancelled by the Graphiti framework by throwing an
OperationCanceledException that causes am EMF revert of the
operation.
Implementing classes might e.g. set a flag in
ICustomUndoRedoFeature.preUndo(org.eclipse.graphiti.features.context.IContext)/
ICustomUndoRedoFeature.preRedo(org.eclipse.graphiti.features.context.IContext) as
cancellation indication and check that that flag here.
isAbort in interface ICustomAbortableUndoRedoFeaturetrue in case you want to cancel the current
operation, false otherwise.public boolean canUndo(IContext context)
IFeaturecanUndo in interface ICustomUndoRedoFeaturecanUndo in interface IFeaturecanUndo in class AbstractFeaturecontext - this is the general input for this methodIContextpublic void preUndo(IContext context)
ICustomUndoRedoFeatureICustomUndoRedoFeature.postUndo(IContext).preUndo in interface ICustomUndoRedoFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic void postUndo(IContext context)
ICustomUndoRedoFeatureICustomUndoRedoFeature.preUndo(IContext).postUndo in interface ICustomUndoRedoFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic boolean canRedo(IContext context)
ICustomUndoRedoFeatureICustomUndoRedoFeature.preRedo(IContext).
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 ICustomUndoRedoFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic void preRedo(IContext context)
ICustomUndoRedoFeatureICustomUndoRedoFeature.postRedo(IContext). (Usually it might be
sufficient to delegate to the execution method of the feature.)preRedo in interface ICustomUndoRedoFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic void postRedo(IContext context)
ICustomUndoRedoFeatureICustomUndoRedoFeature.preRedo(IContext). (Usually it might be
sufficient to delegate to the execution method of the feature.)postRedo in interface ICustomUndoRedoFeaturecontext - this is the instance of the IContext object that was
in use when executing the featurepublic boolean canStartReconnect(IReconnectionContext context)
IReconnectioncanStartReconnect in interface IReconnectioncontext - the context