Package fd2

Examples of fd2.ExcludesRelation


      ExcludesRelation link = (ExcludesRelation) linkObject;
      if (ExcludesRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      BaseFeatureNode dst = link.getTargetFeature();
      BaseFeatureNode src = link.getSourceFeature();
      if (src != source) {
        continue;
      }
      result.add(new Fd2LinkDescriptor(src, dst, link,
          Fd2ElementTypes.ExcludesRelation_4010,
View Full Code Here


  private static Collection getOutgoingFeatureModelFacetLinks_OneManyRelation_TargetFeatureNodes_4004(
      OneManyRelation source) {
    Collection result = new LinkedList();
    for (Iterator destinations = source.getTargetFeatureNodes().iterator(); destinations
        .hasNext();) {
      BaseFeatureNode destination = (BaseFeatureNode) destinations.next();
      result.add(new Fd2LinkDescriptor(source, destination,
          Fd2ElementTypes.OneManyRelationTargetFeatureNodes_4004,
          OneManyRelationTargetFeatureNodesEditPart.VISUAL_ID));
    }
    return result;
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    CaseOrRelation newElement = Fd2Factory.eINSTANCE.createCaseOrRelation();

    BaseFeatureNode owner = (BaseFeatureNode) getElementToEdit();
    owner.getChildRelations().add(newElement);

    Fd2ElementTypes.init_CaseOrRelation_3002(newElement);
View Full Code Here

   * @generated
   */
  @Override
  public String getText(Object object)
  {
    CaseOrRelation caseOrRelation = (CaseOrRelation)object;
    return getString("_UI_CaseOrRelation_type") + " " + caseOrRelation.getLowerBound();
  }
View Full Code Here

  /**
   * @generated
   */
  public static List getCaseOrRelation_3002ContainedLinks(View view) {
    CaseOrRelation modelElement = (CaseOrRelation) view.getElement();
    List result = new LinkedList();
    result
        .addAll(getOutgoingFeatureModelFacetLinks_OneManyRelation_TargetFeatureNodes_4004(modelElement));
    return result;
  }
View Full Code Here

  /**
   * @generated
   */
  public static List getCaseOrRelation_3002OutgoingLinks(View view) {
    CaseOrRelation modelElement = (CaseOrRelation) view.getElement();
    List result = new LinkedList();
    result
        .addAll(getOutgoingFeatureModelFacetLinks_OneManyRelation_TargetFeatureNodes_4004(modelElement));
    return result;
  }
View Full Code Here

        Messages.Fd2DiagramEditorUtil_CreateDiagramCommandLabel,
        Collections.EMPTY_LIST) {
      protected CommandResult doExecuteWithResult(
          IProgressMonitor monitor, IAdaptable info)
          throws ExecutionException {
        Diagram model = createInitialModel();
        attachModelToResource(model, modelResource);

        org.eclipse.gmf.runtime.notation.Diagram diagram = ViewService
            .createDiagram(model, DiagramEditPart.MODEL_ID,
                Fd2DiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
View Full Code Here

   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    FeatureNode newElement = Fd2Factory.eINSTANCE.createFeatureNode();

    Diagram owner = (Diagram) getElementToEdit();
    owner.getDiagramElements().add(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
View Full Code Here

    }
    BaseFeatureNode target = getLink().getTargetFeature();
    if (!(getLink().eContainer() instanceof Diagram)) {
      return false;
    }
    Diagram container = (Diagram) getLink().eContainer();
    return Fd2BaseItemSemanticEditPolicy.LinkConstraints
        .canExistExcludesRelation_4010(container, getNewSource(),
            target);
  }
View Full Code Here

   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    FeatureNode newElement = Fd2Factory.eINSTANCE.createFeatureNode();

    Diagram owner = (Diagram) getElementToEdit();
    owner.getDiagramElements().add(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
View Full Code Here

TOP

Related Classes of fd2.ExcludesRelation

Copyright © 2018 www.massapicom. 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.