Examples of ICommandProxy


Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    if (createdViews.size() > 1) {
      // perform a layout of the container
      DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host()
          .getEditingDomain(), createdViews, host());
      executeCommand(new ICommandProxy(layoutCmd));
    }

    createdViews.addAll(createdConnectionViews);
    makeViewsImmutable(createdViews);
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

          TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost())
              .getEditingDomain();
          command = new CompositeTransactionalCommand(editingDomain,
              command.getLabel()).compose(command);
        }
        semanticCommand = new ICommandProxy(command);
      }
    }
    boolean shouldProceed = true;
    if (completedRequest instanceof DestroyRequest) {
      shouldProceed = shouldProceed((DestroyRequest) completedRequest);
    }
    if (shouldProceed) {
      if (completedRequest instanceof DestroyRequest) {
        TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost())
            .getEditingDomain();
        Command deleteViewCommand = new ICommandProxy(
            new DeleteCommand(editingDomain, (View) getHost()
                .getModel()));
        semanticCommand = semanticCommand == null ? deleteViewCommand
            : semanticCommand.chain(deleteViewCommand);
      }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

  /**
   * @generated
   */
  protected final Command getGEFWrapper(ICommand cmd) {
    return new ICommandProxy(cmd);
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

      }
    }
    if (command.isEmpty() || command.size() != operationSet.size()) {
      return UnexecutableCommand.INSTANCE;
    }
    return new ICommandProxy(command);
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    classHandler = clH;
  }

  protected Command getOpenCommand(Request request) {

    return new ICommandProxy(
        new OpenClassCommand(classHandler.getFullName())
    );
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    Style link = view.getStyle(NotationPackage.eINSTANCE
        .getHintedDiagramLinkStyle());
    if (false == link instanceof HintedDiagramLinkStyle) {
      return null;
    }
    return new ICommandProxy(new OpenDiagramCommand(
        (HintedDiagramLinkStyle) link));
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    }
    if (createdViews.size() > 1) {
      // perform a layout of the container
      DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host()
          .getEditingDomain(), createdViews, host());
      executeCommand(new ICommandProxy(layoutCmd));
    }

    makeViewsImmutable(createdViews);
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    if (createdViews.size() > 1) {
      // perform a layout of the container
      DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host()
          .getEditingDomain(), createdViews, host());
      executeCommand(new ICommandProxy(layoutCmd));
    }

    makeViewsImmutable(createdViews);
  }
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    if (cmd != null && cmd.canExecute()) {
      SetViewMutabilityCommand.makeMutable(
          new EObjectAdapter(host().getNotationView())).execute();
      executeCommand(cmd);
      if (boundsCommand.canExecute()) {
        executeCommand(new ICommandProxy(boundsCommand.reduce()));
      }
      @SuppressWarnings("unchecked")
      List<IAdaptable> nl = (List<IAdaptable>) request.getNewObject();
      createdViews.addAll(nl);
    }
    if (changed || createdViews.size() > 0) {
      postProcessRefreshSemantic(createdViews);
    }

    Collection<IAdaptable> createdConnectionViews = refreshConnections();

    if (createdViews.size() > 1) {
      // perform a layout of the container
      DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host()
          .getEditingDomain(), createdViews, host());
      executeCommand(new ICommandProxy(layoutCmd));
    }

    createdViews.addAll(createdConnectionViews);

    makeViewsImmutable(createdViews);
View Full Code Here

Examples of org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy

    }
    if (createdViews.size() > 1) {
      // perform a layout of the container
      DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host()
          .getEditingDomain(), createdViews, host());
      executeCommand(new ICommandProxy(layoutCmd));
    }

    makeViewsImmutable(createdViews);
  }
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.