Package eu.admire.dispel.references

Examples of eu.admire.dispel.references.MethodCall


    }
    ProcessingElementMethodDefinition modelElement = (ProcessingElementMethodDefinition) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      MethodCall childElement = modelElement.getMethodCall();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == MethodCallEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
      }
View Full Code Here


    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    MethodCall modelElement = (MethodCall) containerView.getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    for (Iterator<?> it = modelElement.getArguments().iterator(); it
        .hasNext();) {
      Expression childElement = (Expression) it.next();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == StringReference2EditPart.VISUAL_ID) {
View Full Code Here

  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getMethodCall_3054IncomingLinks(
      View view) {
    MethodCall modelElement = (MethodCall) view.getElement();
    Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
        .find(view.eResource().getResourceSet().getResources());
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getIncomingTypeModelFacetLinks_ConnectionExpression_4001(
        modelElement, crossReferences));
View Full Code Here

  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getMethodCall_4002IncomingLinks(
      View view) {
    MethodCall modelElement = (MethodCall) view.getElement();
    Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
        .find(view.eResource().getResourceSet().getResources());
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getIncomingTypeModelFacetLinks_ConnectionExpression_4001(
        modelElement, crossReferences));
View Full Code Here

  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getMethodCall_3054OutgoingLinks(
      View view) {
    MethodCall modelElement = (MethodCall) view.getElement();
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(modelElement));
    return result;
  }
View Full Code Here

  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getMethodCall_4002OutgoingLinks(
      View view) {
    MethodCall modelElement = (MethodCall) view.getElement();
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(modelElement));
    return result;
  }
View Full Code Here

   * @generated
   */
  private static Collection<DispelLinkDescriptor> getContainedTypeModelFacetLinks_MethodCall_4002(
      ProcessingElementMethodDefinition container) {
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    MethodCall link = container.getMethodCall();
    if (MethodCall2EditPart.VISUAL_ID != DispelVisualIDRegistry
        .getLinkWithClassVisualID(link)) {
      return result;
    }
    DispelFunction dst = link.getCall();
    result.add(new DispelLinkDescriptor(container, dst, link,
        DispelElementTypes.MethodCall_4002,
        MethodCall2EditPart.VISUAL_ID));
    return result;
  }
View Full Code Here

      if (setting.getEStructuralFeature() != ReferencesPackage.eINSTANCE
          .getMethodCall_Call()
          || false == setting.getEObject() instanceof MethodCall) {
        continue;
      }
      MethodCall link = (MethodCall) setting.getEObject();
      if (MethodCall2EditPart.VISUAL_ID != DispelVisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof ProcessingElementMethodDefinition) {
        continue;
      }
      ProcessingElementMethodDefinition container = (ProcessingElementMethodDefinition) link
          .eContainer();
      result.add(new DispelLinkDescriptor(container, target, link,
          DispelElementTypes.MethodCall_4002,
          MethodCall2EditPart.VISUAL_ID));
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    MethodCall newElement = ReferencesFactory.eINSTANCE.createMethodCall();

    ProcessingElementMethodDefinition owner = (ProcessingElementMethodDefinition) getElementToEdit();
    owner.setMethodCall(newElement);

    doConfigure(newElement, monitor, info);
View Full Code Here

    if (!canExecute()) {
      throw new ExecutionException(
          "Invalid arguments in create link command"); //$NON-NLS-1$
    }

    MethodCall newElement = ReferencesFactory.eINSTANCE.createMethodCall();
    getSource().setMethodCall(newElement);
    newElement.setCall(getTarget());
    doConfigure(newElement, monitor, info);
    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);

  }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.references.MethodCall

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.