Examples of DestroyElementRequest


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

   * @generated
   */
  protected Command getDestroyElementCommand(View view) {
    EditPart editPart = (EditPart) getHost().getViewer()
        .getEditPartRegistry().get(view);
    DestroyElementRequest request = new DestroyElementRequest(
        getEditingDomain(), false);
    return editPart.getCommand(new EditCommandRequestWrapper(request,
        Collections.EMPTY_MAP));
  }
View Full Code Here

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

            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (DispelVisualIDRegistry.getVisualID(cnode)) {
          case ProcessingElementAnonymousConstructorEditPart.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

    View view = (View) getHost().getModel();
    for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (DispelVisualIDRegistry.getVisualID(node)) {
      case ArrayInitializerEditPart.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

            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (DispelVisualIDRegistry.getVisualID(cnode)) {
          case ProcessingElementDefinition2EditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: false
            // 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

        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

    View view = (View) getHost().getModel();
    for (Iterator<?> nit = view.getChildren().iterator(); nit.hasNext();) {
      Node node = (Node) nit.next();
      switch (DispelVisualIDRegistry.getVisualID(node)) {
      case BooleanLiteralEditPart.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 DecimalIntegerLiteralEditPart.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 DecimalDoubleLiteralEditPart.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 LocalVariableLocalVariableCompartmentEditPart.VISUAL_ID:
        for (Iterator<?> cit = node.getChildren().iterator(); cit
            .hasNext();) {
          Node cnode = (Node) cit.next();
          switch (DispelVisualIDRegistry.getVisualID(cnode)) {
          case StringReferenceEditPart.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;
          case ProcessingElementInstanceEditPart.VISUAL_ID:
            cmd.add(new DestroyElementCommand(
                new DestroyElementRequest(getEditingDomain(),
                    cnode.getElement(), false))); // directlyOwned: false
            // 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

        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 ArrayInitializerEditPart.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

    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.