org.eclipse.graphiti.pattern
Class CreateFeatureForPattern
java.lang.Object
org.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.AbstractCreateFeature
org.eclipse.graphiti.pattern.CreateFeatureForPattern
- All Implemented Interfaces:
- ICreateFeature, IFeature, IFeatureProviderHolder, ICreate, ICreateInfo, IDescription, IName
public class CreateFeatureForPattern
- extends AbstractCreateFeature
The Class CreateFeatureForPattern.
Fields inherited from interface org.eclipse.graphiti.func.ICreate |
EMPTY |
Methods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature |
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, 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 |
delegate
private IFeatureForPattern delegate
CreateFeatureForPattern
public CreateFeatureForPattern(IFeatureProvider featureProvider,
IPattern pattern)
- Creates a new
CreateFeatureForPattern
.
- Parameters:
featureProvider
- the feature providerpattern
- the pattern
canCreate
public boolean canCreate(ICreateContext context)
- Description copied from interface:
ICreate
- Checks if business object can be created for the given context.
- Parameters:
context
- the context
- Returns:
- true if create is possible.
create
public java.lang.Object[] create(ICreateContext context)
- Description copied from interface:
ICreate
- Creates the business object for the given context.
- Parameters:
context
- the context
- Returns:
- the newly created objects
getCreateImageId
public java.lang.String getCreateImageId()
- Description copied from interface:
ICreateInfo
- Gets the create image id.
- Specified by:
getCreateImageId
in interface ICreateInfo
- Overrides:
getCreateImageId
in class AbstractCreateFeature
- Returns:
- image for UI representation
getCreateLargeImageId
public java.lang.String getCreateLargeImageId()
- Description copied from interface:
ICreateInfo
- Gets the create large image id.
- Specified by:
getCreateLargeImageId
in interface ICreateInfo
- Overrides:
getCreateLargeImageId
in class AbstractCreateFeature
- Returns:
- large image for UI representation
getPattern
public IPattern getPattern()
- Gets the pattern.
- Returns:
- the pattern
Copyright (c) SAP AG 2005, 2010.