Examples of CreateConnectionCommand


Examples of org.apache.qpid.disttest.message.CreateConnectionCommand

        assertCommandEquals(commands, 0, CreateConnectionCommand.class);
        assertCommandEquals(commands, 1, NoOpCommand.class);
        assertCommandEquals(commands, 2, NoOpCommand.class);

        CreateConnectionCommand createConnectionCommand = getCommand(commands, 0);
        assertEquals(CONNECTION_NAME, createConnectionCommand.getConnectionName());
        assertEquals(CONNECTION_FACTORY_NAME, createConnectionCommand.getConnectionFactoryName());
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.commands.CreateConnectionCommand

  Rectangle rec;

  @Override
  protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
    CreateConnectionCommand cmd = (CreateConnectionCommand) request.getStartCommand();
    cmd.setTarget((DiagramNodeModel) getHost().getModel());
    return cmd;
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.commands.CreateConnectionCommand

  @Override
  protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    DiagramNodeModel source = (DiagramNodeModel) getHost().getModel();
    Object def = request.getNewObjectType();
    CreateConnectionCommand cmd = new CreateConnectionCommand(source, (IDiagramConnectionDef)def);
    request.setStartCommand(cmd);
    return cmd;
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

      assert chisioSource != null && chisioTarget != null;

      // Create the edge as chisio does.
      EdgeModel chisioEdge = new EdgeModel();
      CreateConnectionCommand command = new CreateConnectionCommand();
      command.setSource(chisioSource);
      command.setTarget(chisioTarget);
      command.setConnection(chisioEdge);
      command.execute();
    }

    return chisioRoot;
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getConnectionCompleteCommand(org.eclipse.gef.requests.CreateConnectionRequest)
   */
  protected Command getConnectionCompleteCommand(CreateConnectionRequest request)
  {
    CreateConnectionCommand command =
      (CreateConnectionCommand) request.getStartCommand();
    command.setTarget(getHost().getModel());

    return command;
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

  /* (�� Javadoc)
   * @see org.eclipse.gef.editpolicies.GraphicalNodeEditPolicy#getConnectionCreateCommand(org.eclipse.gef.requests.CreateConnectionRequest)
   */
  protected Command getConnectionCreateCommand(CreateConnectionRequest request)
  {
    CreateConnectionCommand command = new CreateConnectionCommand();
    command.setSource(getHost().getModel());
    command.setConnection(request.getNewObject());
    request.setStartCommand(command);
    return command;
  }
View Full Code Here

Examples of org.gvt.command.CreateConnectionCommand

  public BioPAXEdge(NodeModel source, NodeModel target)
  {
    assert source != null;
    assert target != null;
   
    CreateConnectionCommand ccc = new CreateConnectionCommand();
    ccc.setSource(source);
    ccc.setTarget(target);
    ccc.setConnection(this);
    ccc.execute();
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.CreateConnectionCommand

   */
  public void mouseReleased(EditorMouseEvent event) {
    double mx = event.getX(), my = event.getY();
    DiagramElement elem = editor.getDiagram().getChildAt(mx, my);
    if (elem instanceof PackageElement && elem != source) {
      CreateConnectionCommand command = new CreateConnectionCommand(
        elementFactory, editor.getDiagram(), editor, (Node) source,
        (Node) elem);
      editor.execute(command);
    }
    isDragging = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.