org.eclipse.graphiti.pattern
Class CreateFeatureForPattern

java.lang.Object
  extended by org.eclipse.graphiti.features.impl.AbstractFeature
      extended by org.eclipse.graphiti.features.impl.AbstractCreateFeature
          extended by org.eclipse.graphiti.pattern.CreateFeatureForPattern
All Implemented Interfaces:
ICreateFeature, IFeature, IFeatureProviderHolder, ICreate, ICreateInfo, IDescription, IName

public class CreateFeatureForPattern
extends AbstractCreateFeature

The Class CreateFeatureForPattern.


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.
 java.lang.Object[] create(ICreateContext context)
          Creates the business object for the given context.
 java.lang.String getCreateImageId()
          Gets the create image id.
 java.lang.String getCreateLargeImageId()
          Gets the create large image id.
 IPattern getPattern()
          Gets the pattern.
 
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, 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
 
Methods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailable
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Field Detail

delegate

private IFeatureForPattern delegate
Constructor Detail

CreateFeatureForPattern

public CreateFeatureForPattern(IFeatureProvider featureProvider,
                               IPattern pattern)
Creates a new CreateFeatureForPattern.

Parameters:
featureProvider - the feature provider
pattern - the pattern
Method Detail

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.