Package eu.admire.dispel.parameters

Examples of eu.admire.dispel.parameters.Input


  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getInput_3006IncomingLinks(
      View view) {
    Input modelElement = (Input) 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> getInput_3006OutgoingLinks(
      View view) {
    Input modelElement = (Input) view.getElement();
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(modelElement));
    return result;
  }
View Full Code Here

    if (source == null) {
      source = getOutput(context.getSourceAnchor());
    }
   
    //Target has to be Input
    Input target = getInput(context.getTargetAnchor());

    if (source != null && target != null && source != target) {
      return true;
    }
View Full Code Here

        sAnchor);
    Output sourceOut = getOutput(sAnchor);
   
    ConnectionStatement cs = null;
   
    Input target = getInput(tAnchor);
    LocalVariableStatement lvs = getLocalVariableStatementForAnchor(tAnchor);

    if ((sourceCI != null || sourceOut != null)
        && target != null && lvs != null) {
     
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    Input newElement = ParametersFactory.eINSTANCE.createInput();

    ProcessingElementInstance owner = (ProcessingElementInstance) getElementToEdit();
    owner.getProcessingElementParameters().add(newElement);

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

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(fnc.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            dst1.setTarget(var);
          }
        }

      }

      newElement.setChild(src1);
      newElement.setValue(dst1);

    }

    //TODO iFO following might be buggy!   

    if (getSource() instanceof ConnectionInitialization
        && getTarget() instanceof Input) {

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference dst2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      fnc = in.getContainingMethod();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(fnc.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            dst1.setTarget(var);
          }
        }

      }

      newElement.setChild(getSource());
      newElement.setValue(dst1);
    }

    if (getSource() instanceof Output
        && getTarget() instanceof LocalVariable) {

      IdentifierReference src1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference src2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      src1.setNext(src2);

      src2.setTarget((Output) getSource());

      Output out = (Output) getSource();

      fnc = out.getContainingMethod();

      container = out.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(fnc.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            src1.setTarget(var);
          }
        }
      }

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setTarget((LocalVariable) getTarget());

      newElement.setChild(src1);
      newElement.setValue(dst1);

    }

    if (getSource() instanceof LocalVariable
        && getTarget() instanceof Input) {

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference dst2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;
View Full Code Here

  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getInput_3006IncomingLinks(
      View view) {
    Input modelElement = (Input) 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> getInput_3006OutgoingLinks(
      View view) {
    Input modelElement = (Input) view.getElement();
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(modelElement));
    return result;
  }
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    Input newElement = ParametersFactory.eINSTANCE.createInput();

    ProcessingElementInstance owner = (ProcessingElementInstance) getElementToEdit();
    owner.getProcessingElementParameters().add(newElement);

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

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(pck.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            dst1.setTarget(var);
          }
        }

      }

      newElement.setChild(src1);
      newElement.setValue(dst1);

    }

    //TODO iFO following might be buggy!   

    if (getSource() instanceof ConnectionInitialization
        && getTarget() instanceof Input) {

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference dst2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(pck.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            dst1.setTarget(var);
          }
        }

      }

      newElement.setChild(getSource());
      newElement.setValue(dst1);
    }

    if (getSource() instanceof Output
        && getTarget() instanceof LocalVariable) {

      IdentifierReference src1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference src2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      src1.setNext(src2);

      src2.setTarget((Output) getSource());

      Output out = (Output) getSource();

      container = out.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(pck.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());

        for (LocalVariable var : variables) {

          if (var.getValue() != null && var.getValue().equals(pei)) {

            src1.setTarget(var);
          }
        }
      }

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setTarget((LocalVariable) getTarget());

      newElement.setChild(src1);
      newElement.setValue(dst1);

    }

    if (getSource() instanceof LocalVariable
        && getTarget() instanceof Input) {

      IdentifierReference dst1 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      IdentifierReference dst2 = ReferencesFactory.eINSTANCE
          .createIdentifierReference();

      dst1.setNext(dst2);

      dst2.setTarget((Input) getTarget());

      Input in = (Input) getTarget();

      container = in.eContainer();

      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;
View Full Code Here

TOP

Related Classes of eu.admire.dispel.parameters.Input

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.