Class MoveShapeFeatureCommandWithContext
java.lang.Object
org.eclipse.graphiti.internal.command.FeatureCommand
org.eclipse.graphiti.internal.command.FeatureCommandWithContext
org.eclipse.graphiti.internal.command.MoveShapeFeatureCommandWithContext
- All Implemented Interfaces:
IContextHolder,IFeatureAndContext,IFeatureHolder,IFeatureProviderHolder,IDescription,ICommand,IReadOnlyProvider
The Class MoveShapeFeatureCommandWithContext.
-
Constructor Summary
ConstructorsConstructorDescriptionMoveShapeFeatureCommandWithContext(IFeature feature, IMoveShapeContext context) The Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCan execute.final booleanexecute()Execute.protected IMoveShapeFeatureGets the move shape feature.Methods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandWithContext
canUndo, getContext, undoMethods 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
-
MoveShapeFeatureCommandWithContext
The Constructor.- Parameters:
feature- the featurecontext- the context
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:ICommandCan execute.- Returns:
- true, if successful
-
execute
public final boolean execute()Description copied from interface:ICommandExecute.- Returns:
- true, if successful
-
getMoveShapeFeature
Gets the move shape feature.- Returns:
- the move shape feature
-