$packageName$.features
Class CreateDomainObjectFeature

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

public class CreateDomainObjectFeature
extends AbstractCreateFeature
implements ICreateFeature


Field Summary
 
Fields inherited from interface org.eclipse.graphiti.func.ICreate
EMPTY
 
Constructor Summary
CreateDomainObjectFeature(IFeatureProvider fp)
           
 
Method Summary
 boolean 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 class org.eclipse.graphiti.features.impl.AbstractCreateFeature
canExecute, execute, getCreateDescription, getCreateImageId, getCreateLargeImageId, 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.func.ICreateInfo
getCreateDescription, getCreateImageId, getCreateLargeImageId, getCreateName
 
Methods inherited from interface org.eclipse.graphiti.features.IFeature
canExecute, canUndo, execute, hasDoneChanges, isAvailable
 
Methods inherited from interface org.eclipse.graphiti.IName
getName
 
Methods inherited from interface org.eclipse.graphiti.IDescription
getDescription
 
Methods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
 

Constructor Detail

CreateDomainObjectFeature

public CreateDomainObjectFeature(IFeatureProvider fp)
Method Detail

canCreate

public boolean canCreate(ICreateContext context)
Description copied from interface: ICreate
Checks if business object can be created for the given context.

Specified by:
canCreate in interface ICreate
Parameters:
context - the context
Returns:
true if create is possible.

create

public Object[] create(ICreateContext context)
Description copied from interface: ICreate
Creates the business object for the given context.

Specified by:
create in interface ICreate
Parameters:
context - the context
Returns:
the newly created objects


Copyright (c) SAP AG 2005, 2010.