Class FeatureCommandWithContext

java.lang.Object
org.eclipse.graphiti.internal.command.FeatureCommand
org.eclipse.graphiti.internal.command.FeatureCommandWithContext
All Implemented Interfaces:
IContextHolder, IFeatureAndContext, IFeatureHolder, IFeatureProviderHolder, IDescription, ICommand, IReadOnlyProvider
Direct Known Subclasses:
GenericFeatureCommandWithContext, MoveAnchorFeatureCommandWithContext, MoveShapeFeatureCommandWithContext, ResizeShapeFeatureCommandWithContext

public abstract class FeatureCommandWithContext extends FeatureCommand implements IFeatureAndContext
The Class FeatureCommandWithContext.
  • Constructor Details

    • FeatureCommandWithContext

      protected FeatureCommandWithContext(IFeature feature, IContext context)
      The Constructor.
      Parameters:
      context - the context
      feature - the feature
  • Method Details

    • getContext

      public IContext getContext()
      Gets the context.
      Specified by:
      getContext in interface IContextHolder
      Returns:
      Returns the context.
    • canUndo

      public boolean canUndo()
      Description copied from interface: ICommand
      Can undo.
      Specified by:
      canUndo in interface ICommand
      Returns:
      true, if successful
    • undo

      public boolean undo()
      Description copied from interface: ICommand
      Undo.
      Specified by:
      undo in interface ICommand
      Returns:
      true, if successful