Examples of DispelFunction


Examples of eu.admire.dispel.containers.DispelFunction

        if (result == null) result = caseCommentable(emptyModel);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case ContainersPackage.DISPEL_FUNCTION: {
        DispelFunction dispelFunction = (DispelFunction)theEObject;
        T result = caseDispelFunction(dispelFunction);
        if (result == null) result = caseMethod(dispelFunction);
        if (result == null) result = caseStatementListContainer(dispelFunction);
        if (result == null) result = caseStatement(dispelFunction);
        if (result == null) result = caseNamespaceAwareElement(dispelFunction);
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

  public static List<DispelNodeDescriptor> getDispelFunction_1000SemanticChildren(
      View view) {
    if (!view.isSetElement()) {
      return Collections.emptyList();
    }
    DispelFunction modelElement = (DispelFunction) view.getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    for (Iterator<?> it = modelElement.getStatements().iterator(); it
        .hasNext();) {
      Statement childElement = (Statement) it.next();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == LocalVariableStatementEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
      if (visualID == ConnectionStatementEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
      if (visualID == ReturnEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
        continue;
      }
    }

    //TODO IFO     

    Resource resource = modelElement.eResource();
    for (Iterator<EObject> it = getPhantomNodesIterator(resource); it
        .hasNext();) {
      EObject childElement = it.next();
      if (childElement == modelElement) {
        continue;
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

    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

Examples of eu.admire.dispel.containers.DispelFunction

   */
  protected boolean canReorientSource() {
    if (!(oldEnd instanceof ProcessingElementMethodDefinition && newEnd instanceof ProcessingElementMethodDefinition)) {
      return false;
    }
    DispelFunction target = getLink().getCall();
    return DispelBaseItemSemanticEditPolicy.getLinkConstraints()
        .canExistMethodCall_4002(getLink(), getNewSource(), target);
  }
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCall(DispelFunction newCall) {
    DispelFunction oldCall = call;
    call = newCall;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ReferencesPackage.METHOD_CALL__CALL, oldCall, call));
  }
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

              if (nFu.getName().equals(
                  fragments[fragments.length - 1])
                  && nFu.getNamespacesAsString().equals(
                      imp.getNamespacesAsString())) {

                DispelFunction fuDef = (DispelFunction) EcoreUtil
                    .copy(nFu);

                if (pck.getTypeDefinition(
                    fuDef.getNamespacesAsString(),
                    fuDef.getName()) == null) {
                 
                 
                  pck.getTypeDefinitions().add(
                      (DispelFunction)fuDef);
                 
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

    for (StatementListContainer container : containers) {

      if (container instanceof DispelFunction) {

        DispelFunction fnc = (DispelFunction) container;

        if (fnc.getNamespacesAsString().equals(""))
          fnc.getNamespaces().addAll(
              fnc.getContainingPackage().getNamespaces());
      }

      if (container instanceof eu.admire.dispel.containers.Package) {

        for (Statement st : ((eu.admire.dispel.containers.Package) container)
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

  /**
   * @generated
   */
  private String getDispelFunction_1000Text(View view) {
    DispelFunction domainModelElement = (DispelFunction) view.getElement();
    if (domainModelElement != null) {
      return domainModelElement.getName();
    } else {
      DispelDiagramEditorPlugin.getInstance().logError(
          "No domain element for view with visualID = " + 1000); //$NON-NLS-1$
      return ""; //$NON-NLS-1$
    }
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

          }
         
         
          if (eObject instanceof DispelFunction) {
           
            DispelFunction fnc = (DispelFunction)eObject;

            eu.admire.dispel.containers.Package pck =  fnc.getContainingPackage();

            if (fnc.getNamespaces().size() == 0 && pck != null) {         
              fnc.getNamespaces().addAll(pck.getNamespaces());                             
            }

            functions.add(fnc);
          }
        }
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction

        Messages.DispelDiagramEditorUtil_CreateDiagramCommandLabel,
        Collections.EMPTY_LIST) {
      protected CommandResult doExecuteWithResult(
          IProgressMonitor monitor, IAdaptable info)
          throws ExecutionException {
        DispelFunction model = createInitialModel();
        attachModelToResource(model, modelResource);

        Diagram diagram = ViewService.createDiagram(model,
            DispelFunctionEditPart.MODEL_ID,
            DispelDiagramEditorPlugin.DIAGRAM_PREFERENCES_HINT);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.