Package org.eclipse.gef.commands

Examples of org.eclipse.gef.commands.CompoundCommand.unwrap()


    r.translate(getLayoutOrigin().getNegated());
    constraint = getConstraintFor(r);
    command.add(createAddCommand(generic, childPart,
      translateToModelConstraint(constraint)));
  }
  return command.unwrap();
}

/**
* Override to return the <code>Command</code> to perform an {@link
* RequestConstants#REQ_CLONE CLONE}. By default, <code>null</code> is
View Full Code Here


      orphan.setChild((BasicElement) ((EditPart) parts.get(i)).getModel());
      orphan.setParent((MusicContainerForm) getHost().getModel());
      orphan.setLabel(MusicMessages.MusicElementEditPolicy_OrphanCommandLabelText);
      result.add(orphan);
    }
    return result.unwrap();
  }

}
View Full Code Here

    orphan.setChild((LogicSubpart)((EditPart)parts.get(i)).getModel());
    orphan.setParent((LogicDiagram)getHost().getModel());
    orphan.setLabel(LogicMessages.LogicElementEditPolicy_OrphanCommandLabelText);
    result.add(orphan);
  }
  return result.unwrap();
}

}
View Full Code Here

    r.translate(getLayoutOrigin().getNegated());
    constraint = getConstraintFor(r);
    command.add(createAddCommand(generic, childPart,
      translateToModelConstraint(constraint)));
  }
  return command.unwrap();
}

/**
* Override to return the <code>Command</code> to perform an {@link
* RequestConstants#REQ_CLONE CLONE}. By default, <code>null</code> is
View Full Code Here

        orphan.setChild((IIf) ((EditPart) parts.get(i)).getModel());
        orphan.setParent((IDecisionState) getHost().getModel());
        result.add(orphan);
      }
    }
    return result.unwrap();
  }

  /**
   * Override to contribute to clone requests.
   * @param request the clone request
View Full Code Here

              .getModel());
          result.add(orphan);
        }
      }
    }
    return result.unwrap();
  }
}
View Full Code Here

      else if (child.getModel() instanceof IIf
          && getHost().getModel() instanceof IDecisionState) {
        command.add(createAddIfCommand(child));
      }
    }
    return command.unwrap();
  }

  protected Command createAddExceptionHandlerCommand(EditPart child) {
    IExceptionHandler activity = (IExceptionHandler) child.getModel();
    AddExceptionHandlerCommand add = new AddExceptionHandlerCommand();
View Full Code Here

      OrphanChildCommand orphan = new OrphanChildCommand(child.getDiagram().getTextEditor());
      orphan.setChild(child);
      orphan.setParent((StructuredActivity) getHost().getModel());
      result.add(orphan);
    }
    return result.unwrap();
  }

}
View Full Code Here

    CompoundCommand command = new CompoundCommand();
    for (int i = 0; i < editParts.size(); i++) {
      EditPart child = (EditPart) editParts.get(i);
      command.add(createAddCommand(child));
    }
    return command.unwrap();
  }

  /**
   * @see LayoutEditPolicy#getCreateCommand(org.eclipse.gef.requests.CreateRequest)
   */
 
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.