Examples of CreateCommand


Examples of org.eclipse.gmf.runtime.diagram.ui.commands.CreateCommand

      return null;
    }
    CreateViewRequest.ViewDescriptor viewDescriptor = new CreateViewRequest.ViewDescriptor(
        new EObjectAdapter(selectedElement), Node.class, null,
        CismodelDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
    ICommand command = new CreateCommand(editingDomain, viewDescriptor,
        view);
    command = command.compose(new CismodelCreateShortcutDecorationsCommand(
        editingDomain, view, viewDescriptor));
    try {
      OperationHistoryFactory.getOperationHistory().execute(command,
          new NullProgressMonitor(), null);
    } catch (ExecutionException e) {
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXCompoundNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXCompoundNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

    return command.unwrap();
  }

  protected Command getCreateCommand(CreateRequest request)
  {
    CreateCommand create = new CreateCommand(
      (CompoundModel)getHost().getModel(),
      (NodeModel)request.getNewObject());
    Rectangle constraint = (Rectangle) getConstraintFor(request);
    create.setConstraint(constraint);

    return create;
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

      currentChisioModel.setLocation(
          new PrecisionPoint(currentLNode.rect.x, currentLNode.rect.y));
      currentChisioModel.setSize(new PrecisionDimension(
          currentLNode.rect.width, currentLNode.rect.height));

      CreateCommand cmd =
        new CreateCommand(parentChisioModel, currentChisioModel);
      cmd.execute();

      // Save the mapping between l and chisio level.
      lToChisio.put(currentLNode, currentChisioModel);
    }
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXCompoundNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.gvt.command.CreateCommand

  protected NodeUtil util;

  public BioPAXNode(CompoundModel root)
  {
    CreateCommand command = new CreateCommand(root, this);
    command.execute();

    this.references = new ArrayList<XRef>();
    this.util = new NodeUtil(this);
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.config.graph.model.commands.CreateCommand

  @Override
  protected Command getCreateCommand(CreateRequest request) {
    StructuredActivity parent = (StructuredActivity) getHost().getModel();
    EditPartViewer viewer = getHost().getViewer();
    CreateCommand command = new CreateCommand(parent.getDiagram().getTextEditor(), viewer);
    command.setParent(parent);
    Activity child = (Activity) request.getNewObject();
    Point location = request.getLocation();
    command.setBounds(putActivityAtLocation(child, location));
    command.setChild(child);
    return command;
  }
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.