Class ResizeShapeFeatureCommandWithContext
- java.lang.Object
-
- org.eclipse.graphiti.internal.command.FeatureCommand
-
- org.eclipse.graphiti.internal.command.FeatureCommandWithContext
-
- org.eclipse.graphiti.internal.command.ResizeShapeFeatureCommandWithContext
-
- All Implemented Interfaces:
IContextHolder,IFeatureAndContext,IFeatureHolder,IFeatureProviderHolder,IDescription,ICommand,IReadOnlyProvider
public class ResizeShapeFeatureCommandWithContext extends FeatureCommandWithContext
The Class ResizeShapeFeatureCommandWithContext.
-
-
Constructor Summary
Constructors Constructor Description ResizeShapeFeatureCommandWithContext(IFeature feature, IResizeShapeContext context)The Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()Can execute.booleanexecute()Execute.protected IResizeShapeFeaturegetResizeShapeFeature()Gets the resize shape feature.-
Methods inherited from class org.eclipse.graphiti.internal.command.FeatureCommandWithContext
canUndo, getContext, undo
-
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
-
-
-
-
Constructor Detail
-
ResizeShapeFeatureCommandWithContext
public ResizeShapeFeatureCommandWithContext(IFeature feature, IResizeShapeContext context)
The Constructor.- Parameters:
feature- the featurecontext- the context
-
-
Method Detail
-
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
-
getResizeShapeFeature
protected IResizeShapeFeature getResizeShapeFeature()
Gets the resize shape feature.- Returns:
- the resize shape feature
-
-