Package eu.admire.dispel.containers

Examples of eu.admire.dispel.containers.DispelFunction


    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    DispelFunction modelElement = (DispelFunction) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      TypeReference childElement = modelElement.getSignature();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == ProcessingElementAnonymousDefinitionEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
      }
View Full Code Here


    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    DispelFunction modelElement = (DispelFunction) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      TypeReference childElement = modelElement.getSignature();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == ProcessingElementAnonymousDefinition2EditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
      }
View Full Code Here

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

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

    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

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

  }
View Full Code Here

  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    ProcessingElementAnonymousDefinition newElement = CoreFactory.eINSTANCE
        .createProcessingElementAnonymousDefinition();

    DispelFunction owner = (DispelFunction) getElementToEdit();
    owner.setSignature(newElement);

    doConfigure(newElement, monitor, info);

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

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

  }
View Full Code Here

  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    ProcessingElementAnonymousDefinition newElement = CoreFactory.eINSTANCE
        .createProcessingElementAnonymousDefinition();

    DispelFunction owner = (DispelFunction) getElementToEdit();
    owner.setSignature(newElement);

    doConfigure(newElement, monitor, info);

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

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

  }
View Full Code Here

TOP

Related Classes of eu.admire.dispel.containers.DispelFunction

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.