Class AddFeatureCommandWithContext
java.lang.Object
org.eclipse.graphiti.internal.command.FeatureCommand
org.eclipse.graphiti.internal.command.FeatureCommandWithContext
org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext
org.eclipse.graphiti.internal.command.AddFeatureCommandWithContext
- All Implemented Interfaces:
IContextHolder,IFeatureAndContext,IFeatureHolder,IFeatureProviderHolder,IDescription,ICommand,IReadOnlyProvider
The Class AddFeatureCommandWithContext.
-
Constructor Summary
ConstructorsConstructorDescriptionAddFeatureCommandWithContext(IFeature feature, IContext context) Instantiates a new adds the feature command with context. -
Method Summary
Methods inherited from class org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext
canExecute, canUndo, undoMethods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandWithContext
getContextMethods inherited from class org.eclipse.graphiti.internal.command.FeatureCommand
getDescription, getFeature, getFeatureProvider, isReadOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.features.IFeatureHolder
getFeature
-
Constructor Details
-
AddFeatureCommandWithContext
Instantiates a new adds the feature command with context.- Parameters:
feature- the featurecontext- the context
-
-
Method Details
-
getAddedPictogramElements
Gets the added pictogram elements.- Returns:
- the added pictogram elements
-
execute
public boolean execute()Description copied from interface:ICommandExecute.- Specified by:
executein interfaceICommand- Overrides:
executein classGenericFeatureCommandWithContext- Returns:
- true, if successful
-