|
||||||||||
| 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, 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 pattern| Method Detail |
|---|
public boolean canCreate(ICreateContext context)
ICreate
canCreate in interface ICreatecontext - the context
public Object[] create(ICreateContext context)
ICreate
create in interface ICreatecontext - the context
public String getCreateImageId()
ICreateInfo
getCreateImageId in interface ICreateInfogetCreateImageId in class AbstractCreateFeaturepublic String getCreateLargeImageId()
ICreateInfo
getCreateLargeImageId in interface ICreateInfogetCreateLargeImageId in class AbstractCreateFeaturepublic IPattern getPattern()
public 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 | |||||||||