|
||||||||||
| 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.pattern.ReconnectionFeatureForPattern
public class ReconnectionFeatureForPattern
This feature wraps the reconnection functionality of a pattern for calls of the Graphiti framework. Clients should not need to use this class directly.
| Field Summary | |
|---|---|
private IReconnection |
delegate
|
private static String |
NAME
|
| Constructor Summary | |
|---|---|
ReconnectionFeatureForPattern(IFeatureProvider fp,
IReconnection pattern)
Creates a new ReconnectionFeatureForPattern. |
|
| Method Summary | |
|---|---|
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 |
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. |
String |
getName()
Gets the name. |
void |
postReconnect(IReconnectionContext context)
Post reconnnect. |
void |
preReconnect(IReconnectionContext context)
Pre reconnnect. |
void |
reconnect(IReconnectionContext context)
Reconnnect. |
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.features.impl.AbstractFeature |
|---|
addGraphicalRepresentation, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramEditor, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageFont, manageFont, 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 |
|---|
hasDoneChanges, isAvailable |
| Methods inherited from interface org.eclipse.graphiti.IDescription |
|---|
getDescription |
| Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder |
|---|
getFeatureProvider |
| Field Detail |
|---|
private static final String NAME
private IReconnection delegate
| Constructor Detail |
|---|
public ReconnectionFeatureForPattern(IFeatureProvider fp,
IReconnection pattern)
ReconnectionFeatureForPattern.
fp - the feature providerpattern - the pattern| Method Detail |
|---|
public boolean canReconnect(IReconnectionContext context)
IReconnection
canReconnect in interface IReconnectioncontext - the context
public void postReconnect(IReconnectionContext context)
IReconnection
postReconnect in interface IReconnectioncontext - the contextpublic void preReconnect(IReconnectionContext context)
IReconnection
preReconnect in interface IReconnectioncontext - the contextpublic void reconnect(IReconnectionContext context)
IReconnection
reconnect in interface IReconnectioncontext - the contextpublic void canceledReconnect(IReconnectionContext context)
IReconnection
canceledReconnect in interface IReconnectioncontext - the contextpublic boolean canExecute(IContext context)
IFeature
canExecute in interface IFeaturecontext - this is the general input for this method
IContextpublic void execute(IContext context)
IFeature
execute in interface IFeaturecontext - this is the general input for this methodIContextpublic String getName()
IName
getName in interface INamegetName in class AbstractFeaturepublic 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 | |||||||||