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 Summary
ConstructorsConstructorDescriptionGenericFeatureCommandWithContext(IFeature feature, IContext context) The Constructor. -
Method Summary
Methods inherited from class FeatureCommandWithContext
getContextMethods inherited from class FeatureCommand
getDescription, getFeature, getFeatureProvider, isReadOnlyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFeatureHolder
getFeature
-
Constructor Details
-
GenericFeatureCommandWithContext
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:ICommandCan execute.- Returns:
- true, if successful
-
execute
public boolean execute()Description copied from interface:ICommandExecute.- Returns:
- true, if successful
-
canUndo
public boolean canUndo()Description copied from interface:ICommandCan undo.- Specified by:
canUndoin interfaceICommand- Overrides:
canUndoin classFeatureCommandWithContext- Returns:
- true, if successful
-
undo
public boolean undo()Description copied from interface:ICommandUndo.- Specified by:
undoin interfaceICommand- Overrides:
undoin classFeatureCommandWithContext- Returns:
- true, if successful
-