Package org.eclipse.graphiti.func
Interface ICreate
- All Superinterfaces:
ICreateInfo
- All Known Subinterfaces:
ICreateFeature
,IPattern
- All Known Implementing Classes:
AbstractCreateFeature
,AbstractPattern
,CreateFeatureForPattern
,IdPattern
,TypedPattern
The Interface ICreate.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canCreate
(ICreateContext context) Checks if business object can be created for the given context.Object[]
create
(ICreateContext context) Creates the business object for the given context.Methods inherited from interface org.eclipse.graphiti.func.ICreateInfo
getCreateDescription, getCreateImageId, getCreateLargeImageId, getCreateName
-
Field Details
-
EMPTY
Empty object array as return for unsuccessful create operations.
-
-
Method Details
-
canCreate
Checks if business object can be created for the given context.- Parameters:
context
- the context- Returns:
- true if create is possible.
-
create
Creates the business object for the given context.- Parameters:
context
- the context- Returns:
- the newly created objects
-