Examples of AddAndAssignSourceCommand


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

  @Override
  protected Command getAddCommand(GroupRequest request) {
    CompoundCommand cmd = new CompoundCommand();
    for (int i = 0; i < request.getEditParts().size(); i++) {
      StructuredActivity parent = (StructuredActivity) getHost().getParent().getModel();
      AddAndAssignSourceCommand add = new AddAndAssignSourceCommand(parent.getDiagram().getTextEditor());
      add.setParent(parent);
      add.setSource((Activity) getHost().getModel());
      add.setChild(((Activity) ((EditPart) request.getEditParts().get(i)).getModel()));
      cmd.add(add);
    }
    return cmd;
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.webflow.ui.graph.commands.AddAndAssignSourceCommand

     */
    protected Command getAddCommand(GroupRequest request) {
        CompoundCommand cmd = new CompoundCommand();
        for (int i = 0; i < request.getEditParts().size(); i++) {
            if (getHost().getModel() instanceof ITransitionableFrom) {
                AddAndAssignSourceCommand add = new AddAndAssignSourceCommand();
                add.setParent((IWebflowState) getHost().getParent().getModel());
                add.setSource((ITransitionableFrom) getHost().getModel());
                add.setChild(((ITransitionableTo) ((EditPart) request
                        .getEditParts().get(i)).getModel()));
                cmd.add(add);
            }
        }
        return cmd;
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.