Package eu.admire.dispel.core

Examples of eu.admire.dispel.core.ProcessingElementMethodDefinition


    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    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


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

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

      return false;
    }
    if (!(getLink().eContainer() instanceof ProcessingElementMethodDefinition)) {
      return false;
    }
    ProcessingElementMethodDefinition source = (ProcessingElementMethodDefinition) getLink()
        .eContainer();
    return DispelBaseItemSemanticEditPolicy.getLinkConstraints()
        .canExistMethodCall_4002(getLink(), source, getNewTarget());
  }
View Full Code Here

  /**
   * @generated
   */
  public boolean canExecute() {
    ProcessingElementMethodDefinition container = (ProcessingElementMethodDefinition) getElementToEdit();
    if (container.getMethodCall() != null) {
      return false;
    }
    return true;

  }
View Full Code Here

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

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

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

    Condition owner = (Condition) getElementToEdit();
    owner.setElseStatement(newElement);

View Full Code Here

        for (Statement st : ((eu.admire.dispel.containers.Package) container)
            .getStatements()) {

          if (st instanceof ProcessingElementMethodDefinition) {

            ProcessingElementMethodDefinition pemd = (ProcessingElementMethodDefinition) st;

            if (pemd.getNamespacesAsString().equals(""))
              pemd.getNamespaces()
                  .addAll(((eu.admire.dispel.containers.Package) container)
                      .getNamespaces());

          }
        }
View Full Code Here

    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    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

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

TOP

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

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.