Class CloneCommand

java.lang.Object
org.eclipse.gef.commands.Command
org.csstudio.opibuilder.commands.CloneCommand

public final class CloneCommand extends org.eclipse.gef.commands.Command
A Command to clone the selected widgets.
  • Constructor Details

  • Method Details

    • addPart

      public void addPart(AbstractWidgetModel model, org.eclipse.draw2d.geometry.Rectangle newBounds)
      Adds the given AbstractWidgetModel with the given Rectangle to this Command.
      Parameters:
      model - The AbstractWidgetModel
      newBounds - The new bounds for the AbstractWidgetModel
    • setGuide

      public void setGuide(GuideModel guide, int alignment, boolean isHorizontal)
      Sets the given GuideModel for the given orientation.
      Parameters:
      guide - The guide
      alignment - The alignment for the guide
      isHorizontal - The orientation of the guide
    • execute

      public void execute()
      Overrides:
      execute in class org.eclipse.gef.commands.Command
    • redo

      public void redo()
      Overrides:
      redo in class org.eclipse.gef.commands.Command
    • undo

      public void undo()
      Overrides:
      undo in class org.eclipse.gef.commands.Command