Class 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 Details

    • GenericFeatureCommandWithContext

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

    • 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 interface ICommand
      Overrides:
      canUndo in class FeatureCommandWithContext
      Returns:
      true, if successful
    • undo

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