Class ConnectionReconnectCommand

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

public class ConnectionReconnectCommand extends org.eclipse.gef.commands.Command
A command to reconnect a connection to a different start point or end point.
  • Constructor Details

    • ConnectionReconnectCommand

      public ConnectionReconnectCommand(ConnectionModel conn)
      Instantiate a command that can create a connection between two widgets.
  • Method Details

    • canExecute

      public boolean canExecute()
      Overrides:
      canExecute in class org.eclipse.gef.commands.Command
    • execute

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

      public void setNewSource(AbstractWidgetModel newSource)
    • setNewSourceTerminal

      public void setNewSourceTerminal(String newSourceTerminal)
    • setNewTarget

      public void setNewTarget(AbstractWidgetModel newTarget)
    • setNewTargetTerminal

      public void setNewTargetTerminal(String newTargetTerminal)
    • undo

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