Class ReconnectCommand

    • Constructor Detail

      • ReconnectCommand

        public ReconnectCommand​(IConfigurationProvider configurationProvider,
                                Connection connection,
                                Anchor oldAnchor,
                                Anchor newAnchor,
                                PictogramElement newTargetPictogramElement,
                                java.lang.String reconnectType,
                                org.eclipse.draw2d.geometry.Point location)
        Instantiate a command that can reconnect a Connection instance to a different source or target endpoint.
        Parameters:
        conn - the connection instance to reconnect (non-null)
        Throws:
        java.lang.IllegalArgumentException - if conn is null
    • Method Detail

      • canExecute

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

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

        public void execute()
        Reconnect the connection to newSource (if setNewSource(...) was invoked before) or newTarget (if setNewTarget(...) was invoked before).
        Overrides:
        execute in class org.eclipse.gef.commands.Command
      • deactivate

        public void deactivate()