Examples of DestroyElementRequest


Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

        getEditingDomain(), null);
    cmd.setTransactionNestingEnabled(false);
    for (Iterator<?> it = view.getTargetEdges().iterator(); it.hasNext();) {
      Edge incomingLink = (Edge) it.next();
      if (DispelVisualIDRegistry.getVisualID(incomingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
        DestroyElementRequest r = new DestroyElementRequest(
            incomingLink.getElement(), false);
        cmd.add(new DestroyElementCommand(r));
        cmd.add(new DeleteCommand(getEditingDomain(), incomingLink));
        continue;
      }
    }
    for (Iterator<?> it = view.getSourceEdges().iterator(); it.hasNext();) {
      Edge outgoingLink = (Edge) it.next();
      if (DispelVisualIDRegistry.getVisualID(outgoingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
        DestroyElementRequest r = new DestroyElementRequest(
            outgoingLink.getElement(), false);
        cmd.add(new DestroyElementCommand(r));
        cmd.add(new DeleteCommand(getEditingDomain(), outgoingLink));
        continue;
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.RowTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.ValueTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.ChildParentTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.InlineTableTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.DataFieldTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
        }
        break;
      case eu.admire.visual.pmml._40.diagram.edit.parts.DataDictionaryTypeTaxonomyCompartmentEditPart.VISUAL_ID:
        for (Iterator cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (eu.admire.visual.pmml._40.diagram.part.PMMLVisualIDRegistry
              .getVisualID(cnode)) {
          case eu.admire.visual.pmml._40.diagram.edit.parts.TaxonomyTypeEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

    for (Iterator nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (eu.admire.visual.pmml.neuralnetwork._40.diagram.part.PMMLVisualIDRegistry
          .getVisualID(node)) {
      case eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.parts.NormContinuousTypeEditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.parts.NormDiscreteTypeEditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

        getEditingDomain(), null);
    cmd.setTransactionNestingEnabled(false);
    for (Iterator<?> it = view.getSourceEdges().iterator(); it.hasNext();) {
      Edge outgoingLink = (Edge) it.next();
      if (DispelVisualIDRegistry.getVisualID(outgoingLink) == MethodCall2EditPart.VISUAL_ID) {
        DestroyElementRequest r = new DestroyElementRequest(
            outgoingLink.getElement(), false);
        cmd.add(new DestroyElementCommand(r));
        cmd.add(new DeleteCommand(getEditingDomain(), outgoingLink));
        continue;
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

            for (Iterator<?> it = cnode.getTargetEdges().iterator(); it
                .hasNext();) {
              Edge incomingLink = (Edge) it.next();
              if (DispelVisualIDRegistry
                  .getVisualID(incomingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
                DestroyElementRequest r = new DestroyElementRequest(
                    incomingLink.getElement(), false);
                cmd.add(new DestroyElementCommand(r));
                cmd.add(new DeleteCommand(getEditingDomain(),
                    incomingLink));
                continue;
              }
            }
            for (Iterator<?> it = cnode.getSourceEdges().iterator(); it
                .hasNext();) {
              Edge outgoingLink = (Edge) it.next();
              if (DispelVisualIDRegistry
                  .getVisualID(outgoingLink) == ConnectionExpressionEditPart.VISUAL_ID) {
                DestroyElementRequest r = new DestroyElementRequest(
                    outgoingLink.getElement(), false);
                cmd.add(new DestroyElementCommand(r));
                cmd.add(new DeleteCommand(getEditingDomain(),
                    outgoingLink));
                continue;
              }
            }
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: true
            // don't need explicit deletion of cnode as parent's view deletion would clean child views as well
            // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), cnode));
            break;
          }
View Full Code Here

Examples of org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest

    View view = (View) getHost().getModel();
    for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (DispelVisualIDRegistry.getVisualID(node)) {
      case StringReference4EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case DecimalIntegerLiteral3EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      case ArrayInitializationByElements2EditPart.VISUAL_ID:
        cmd.add(new DestroyElementCommand(new DestroyElementRequest(
            getEditingDomain(), node.getElement(), false))); // directlyOwned: true
        // don't need explicit deletion of node as parent's view deletion would clean child views as well
        // cmd.add(new org.eclipse.gmf.runtime.diagram.core.commands.DeleteCommand(getEditingDomain(), node));
        break;
      }
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.