|
||||||||||
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.AbstractCreateFeature
org.eclipse.graphiti.pattern.CreateFeatureForPattern
public class CreateFeatureForPattern
This feature wraps the create functionality of a pattern for calls of the Graphiti framework. Clients should not need to use this class directly.
Field Summary | |
---|---|
private IFeatureForPattern |
delegate
|
Fields inherited from interface org.eclipse.graphiti.func.ICreate |
---|
EMPTY |
Constructor Summary | |
---|---|
CreateFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
Creates a new CreateFeatureForPattern . |
Method Summary | |
---|---|
boolean |
canCreate(ICreateContext context)
Checks if business object can be created for the given context. |
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. |
Object[] |
create(ICreateContext context)
Creates the business object for the given context. |
String |
getCreateImageId()
Gets the create image id. |
String |
getCreateLargeImageId()
Gets the create large image id. |
IPattern |
getPattern()
Gets the pattern. |
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.AbstractCreateFeature |
---|
canExecute, execute, getCreateDescription, getCreateName, getDescription, getName |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
---|
addGraphicalRepresentation, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDiagram, getDiagramBehavior, 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.features.IFeatureProviderHolder |
---|
getFeatureProvider |
Field Detail |
---|
private IFeatureForPattern delegate
Constructor Detail |
---|
public CreateFeatureForPattern(IFeatureProvider featureProvider, IPattern pattern)
CreateFeatureForPattern
.
featureProvider
- the feature providerpattern
- the patternMethod Detail |
---|
public boolean canCreate(ICreateContext context)
ICreate
canCreate
in interface ICreate
context
- the context
public Object[] create(ICreateContext context)
ICreate
create
in interface ICreate
context
- the context
public String getCreateImageId()
ICreateInfo
getCreateImageId
in interface ICreateInfo
getCreateImageId
in class AbstractCreateFeature
public String getCreateLargeImageId()
ICreateInfo
getCreateLargeImageId
in interface ICreateInfo
getCreateLargeImageId
in class AbstractCreateFeature
public IPattern getPattern()
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 |