Class GenericFeatureCommandWithContext
java.lang.Object
org.eclipse.graphiti.internal.command.FeatureCommand
org.eclipse.graphiti.internal.command.FeatureCommandWithContext
org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext
- All Implemented Interfaces:
- IContextHolder,- IFeatureAndContext,- IFeatureHolder,- IFeatureProviderHolder,- IDescription,- ICommand,- IReadOnlyProvider
- Direct Known Subclasses:
- AddFeatureCommandWithContext,- DirectEditingFeatureCommandWithContext
The Class GenericFeatureCommandWithContext.
- 
Constructor SummaryConstructorsConstructorDescriptionGenericFeatureCommandWithContext(IFeature feature, IContext context) The Constructor.
- 
Method SummaryMethods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandWithContextgetContextMethods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandgetDescription, getFeature, getFeatureProvider, isReadOnlyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.features.IFeatureHoldergetFeature
- 
Constructor Details- 
GenericFeatureCommandWithContextThe Constructor.- Parameters:
- context- the context
- feature- the feature
 
 
- 
- 
Method Details- 
canExecutepublic boolean canExecute()Description copied from interface:ICommandCan execute.- Returns:
- true, if successful
 
- 
executepublic boolean execute()Description copied from interface:ICommandExecute.- Returns:
- true, if successful
 
- 
canUndopublic boolean canUndo()Description copied from interface:ICommandCan undo.- Specified by:
- canUndoin interface- ICommand
- Overrides:
- canUndoin class- FeatureCommandWithContext
- Returns:
- true, if successful
 
- 
undopublic boolean undo()Description copied from interface:ICommandUndo.- Specified by:
- undoin interface- ICommand
- Overrides:
- undoin class- FeatureCommandWithContext
- Returns:
- true, if successful
 
 
-