|
||||||||||
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.features.impl.AbstractCreateConnectionFeature
org.eclipse.graphiti.pattern.CreateConnectionFeatureForPattern
public class CreateConnectionFeatureForPattern
The Class CreateConnectionFeatureForPattern.
Field Summary | |
---|---|
private IConnectionPattern |
delegate
|
Constructor Summary | |
---|---|
CreateConnectionFeatureForPattern(IFeatureProvider featureProvider,
IConnectionPattern pattern)
Creates a new CreateConnectionFeatureForPattern . |
Method Summary | |
---|---|
boolean |
canCreate(ICreateConnectionContext context)
Can create. |
boolean |
canRedo(IContext context)
Decides if the processed feature can be re-done. |
boolean |
canStartConnection(ICreateConnectionContext context)
Can start connection. |
boolean |
canUndo(IContext context)
Decides if the current feature can be undone - this is the undo of the execute operation. |
Connection |
create(ICreateConnectionContext context)
Creates the. |
String |
getCreateImageId()
Gets the create image id. |
String |
getCreateLargeImageId()
Gets the create large image id. |
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.AbstractCreateConnectionFeature |
---|
canExecute, execute, getCreateDescription, getCreateName, getName |
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, 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 IConnectionPattern delegate
Constructor Detail |
---|
public CreateConnectionFeatureForPattern(IFeatureProvider featureProvider, IConnectionPattern pattern)
CreateConnectionFeatureForPattern
.
featureProvider
- the feature providerpattern
- the connection patternMethod Detail |
---|
public boolean canCreate(ICreateConnectionContext context)
ICreateConnection
canCreate
in interface ICreateConnection
context
- the context
public boolean canStartConnection(ICreateConnectionContext context)
ICreateConnection
canStartConnection
in interface ICreateConnection
context
- the context
public Connection create(ICreateConnectionContext context)
ICreateConnection
create
in interface ICreateConnection
context
- the context
public String getCreateImageId()
ICreateInfo
getCreateImageId
in interface ICreateInfo
getCreateImageId
in class AbstractCreateConnectionFeature
public String getCreateLargeImageId()
ICreateInfo
getCreateLargeImageId
in interface ICreateInfo
getCreateLargeImageId
in class AbstractCreateConnectionFeature
public boolean canUndo(IContext context)
IFeature
canUndo
in interface ICustomUndoableFeature
canUndo
in interface IFeature
canUndo
in class AbstractFeature
context
- this is the general input for this method
IContext
public void undo(IContext context)
ICustomUndoableFeature
undo
in interface ICustomUndoableFeature
context
- 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 ICustomUndoableFeature
context
- 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 ICustomUndoableFeature
context
- 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 |