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
public class GenericFeatureCommandWithContext extends FeatureCommandWithContext
The Class GenericFeatureCommandWithContext.
-
-
Constructor Summary
Constructors Constructor Description GenericFeatureCommandWithContext(IFeature feature, IContext context)
The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExecute()
Can execute.boolean
canUndo()
Can undo.boolean
execute()
Execute.boolean
undo()
Undo.-
Methods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandWithContext
getContext
-
Methods inherited from class org.eclipse.graphiti.internal.command.FeatureCommand
getDescription, getFeature, getFeatureProvider, isReadOnly
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.graphiti.features.IFeatureHolder
getFeature
-
-
-
-
Method Detail
-
canExecute
public boolean canExecute()
Description copied from interface:ICommand
Can execute.- Returns:
- true, if successful
-
execute
public boolean execute()
Description copied from interface:ICommand
Execute.- Returns:
- true, if successful
-
canUndo
public boolean canUndo()
Description copied from interface:ICommand
Can undo.- Specified by:
canUndo
in interfaceICommand
- Overrides:
canUndo
in classFeatureCommandWithContext
- Returns:
- true, if successful
-
undo
public boolean undo()
Description copied from interface:ICommand
Undo.- Specified by:
undo
in interfaceICommand
- Overrides:
undo
in classFeatureCommandWithContext
- Returns:
- true, if successful
-
-