Examples of SpecRelation


Examples of org.eclipse.rmf.reqif10.SpecRelation

   * element to the drop target. If a proxy already exists, it is reused. If a
   * link of the correct type already exists, it is reused as well.
   */
  void createCreateLinkCommand(CompoundCommand cmd, EObject element) {
    SpecObject proxy = getProxy(element, cmd);
    SpecRelation specRelation = getLink(proxy, cmd);
    TracingUtil.notifyProxyListeners(target, specRelation, element);
  }
View Full Code Here

Examples of org.eclipse.rmf.reqif10.SpecRelation

   * Returns the link for the given link.  If the link does not exist yet,
   * it is created, thereby appending to cmd.
   * @param element
   */
  private SpecRelation getLink(SpecObject proxy, CompoundCommand cmd) {
    SpecRelation link = findLinkFor(proxy);
    if (link == null)
      link = createLink(cmd, proxy);
    return link;
  }
View Full Code Here

Examples of org.eclipse.rmf.reqif10.SpecRelation

  /**
   * Creates a properly configured SpecRelation object between proxy and target.
   */
  private SpecRelation createLink(CompoundCommand cmd, SpecObject proxy) {
    SpecRelation link;
    link= ReqIF10Factory.eINSTANCE.createSpecRelation();
    TracingConfiguration config = getTracingConfig();
    link.setSource(config.isLinkFromTarget() ? target : proxy);
    link.setTarget(config.isLinkFromTarget() ? proxy : target);
    cmd.append(ProrUtil.createAddTypedElementCommand(
        ReqIF10Util.getReqIF(config).getCoreContent(),
        ReqIF10Package.Literals.REQ_IF_CONTENT__SPEC_RELATIONS,
        link, ReqIF10Package.Literals.SPEC_RELATION__TYPE,
        config.getLinkType(), 0, 0, domain, itemProvider.getAdapterFactory()));
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.