Class ConnectionDeleteCommand

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

public class ConnectionDeleteCommand extends org.eclipse.gef.commands.Command
A command to disconnect (remove) a connection from its endpoints.
  • Constructor Details

    • ConnectionDeleteCommand

      public ConnectionDeleteCommand(ConnectionModel conn)
      Create a command that will disconnect a connection from its endpoints.
      Parameters:
      conn - the connection model (non-null)
      Throws:
      IllegalArgumentException - if conn is null
  • Method Details

    • execute

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

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