Package eu.admire.dispel.core

Examples of eu.admire.dispel.core.ProcessingElementInstance


   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    Output newElement = ParametersFactory.eINSTANCE.createOutput();

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

    doConfigure(newElement, monitor, info);

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


            LocalVariable var = (LocalVariable) ref.getTarget();

            if (var.getValue() instanceof ProcessingElementInstance) {

              ProcessingElementInstance inst = (ProcessingElementInstance) var
                  .getValue();

              if (inst != null) {

                for (ProcessingElementParameter pp : inst
                    .getProcessingElementParameters()) {

                  if (pp.getName().equals(name)
                      && pp instanceof Output) {

                    ref2.setTarget(pp);
                  }
                }
              }
            }
          }
        }
      }
         
     
   
      if (exp.getValue() instanceof IdentifierReference) {

        IdentifierReference ref = (IdentifierReference) exp.getValue();

        if (ref.getNext() instanceof IdentifierReference) {

          IdentifierReference ref2 = (IdentifierReference) ref
              .getNext();
         
          if (ref2.getTarget() instanceof NamedElement) {

            NamedElement el = (NamedElement) ref2.getTarget();

            String name = el.getName();

            LocalVariable var = (LocalVariable) ref.getTarget();

            if (var.getValue() instanceof ProcessingElementInstance) {

              ProcessingElementInstance inst = (ProcessingElementInstance) var
                  .getValue();

              if (inst != null) {

                for (ProcessingElementParameter pp : inst
                    .getProcessingElementParameters()) {

                  if (pp.getName().equals(name)
                      && pp instanceof Input) {
View Full Code Here

          String parameterName = par.getName();

          if (var.getValue() instanceof ProcessingElementInstance) {

            ProcessingElementInstance peiIn = (ProcessingElementInstance) var
                .getValue();

            if (peiIn != null) {

              boolean isThere = false;

              for (ProcessingElementParameter param : peiIn
                  .getProcessingElementParameters()) {
                // TODO
                if (param.getName().equals(parameterName)) {

                  ref2.setTarget(param);
View Full Code Here

        .getDiagramView().getElement();

    ProcessingElementDefinition peDef = (ProcessingElementDefinition) EcoreUtil
        .copy(selectedProcessingElement);

    ProcessingElementInstance peInstance = (ProcessingElementInstance) peDef
        .createInstance();

    // PE

    DispelTypeReference ref1 = ReferencesFactory.eINSTANCE
View Full Code Here

    }
    {

      //TODO: iFO     

      ProcessingElementInstance childElement = (ProcessingElementInstance) modelElement
          .getValue();

      if (childElement != null) {

        int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
View Full Code Here

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

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

    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    ProcessingElementInstance modelElement = (ProcessingElementInstance) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      //TODO:iFO     
      ProcessingElementDefinition childElement = (ProcessingElementDefinition) modelElement
          .getTypeReference().getTarget();

      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == ProcessingElementMethodDefinitionEditPart.VISUAL_ID) {
View Full Code Here

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    ProcessingElementInstance newElement = CoreFactory.eINSTANCE
        .createProcessingElementInstance();

    DispelRoot owner = (DispelRoot) getElementToEdit();
    owner.getProcessingElementInstances().add(newElement);

View Full Code Here

   */
  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);

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

TOP

Related Classes of eu.admire.dispel.core.ProcessingElementInstance

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.