Examples of MoveNodeCommand


Examples of org.eclipse.jst.pagedesigner.commands.MoveNodeCommand

    if (REQ_CLONE.equals(type)) {
      return new CloneNodeCommand((IHTMLGraphicalViewer) getHost()
          .getViewer(), domposition, draggedNode);
    }
        return new MoveNodeCommand((IHTMLGraphicalViewer) getHost()
            .getViewer(), domposition, draggedNode);
  }
View Full Code Here

Examples of org.eclipse.sapphire.ui.swt.gef.commands.MoveNodeCommand

    if (child instanceof DiagramNodeEditPart && constraint instanceof Rectangle) {     
      // Bug 382542 - Diagram: sometimes moving a node does not move context buttons
      // Hide the context buttons when moving a node
      this.presentation.getConfigurationManager().getDiagramEditor().getContextButtonManager().hideContextButtonsInstantly();
      DiagramNodeModel node = ((DiagramNodeEditPart)child).getCastedModel();
      return new MoveNodeCommand(node, (Rectangle)constraint);
    }
    return super.createChangeConstraintCommand(request, child, constraint);
  }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.MoveNodeCommand

   }

   public void testMoveNodeCommand() throws Exception
   {
      params.clear();
      MoveNodeCommand moveNodeCommand = (MoveNodeCommand)cservice.getCatalog("CLI").getCommand("movenode");
      params.add("/copyOftestJCRClientCommands");
      params.add("/newCopyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      moveNodeCommand.execute(ctx);
      System.out.println("[out]:" + ctx.getOutput());
      assertNotNull(ctx.getSession().getRootNode().getNode("newCopyOftestJCRClientCommands"));
   }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.MoveNodeCommand

   }

   public void testMoveNodeCommand() throws Exception
   {
      params.clear();
      MoveNodeCommand moveNodeCommand = (MoveNodeCommand)cservice.getCatalog("CLI").getCommand("movenode");
      params.add("/copyOftestJCRClientCommands");
      params.add("/newCopyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      moveNodeCommand.execute(ctx);

      assertNotNull(ctx.getSession().getRootNode().getNode("newCopyOftestJCRClientCommands"));
   }
View Full Code Here

Examples of org.exoplatform.frameworks.jcr.cli.MoveNodeCommand

   }

   public void testMoveNodeCommand() throws Exception
   {
      params.clear();
      MoveNodeCommand moveNodeCommand = (MoveNodeCommand)cservice.getCatalog("CLI").getCommand("movenode");
      params.add("/testJCRClientCommands");
      params.add("/newCopyOftestJCRClientCommands");
      ctx.put(PARAMETERS_KEY, params);
      moveNodeCommand.execute(ctx);

      assertNotNull(ctx.getSession().getRootNode().getNode("newCopyOftestJCRClientCommands"));
   }
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.