Package org.apache.jmeter.report.gui.tree

Examples of org.apache.jmeter.report.gui.tree.ReportTreeListener


     * @see org.apache.jmeter.gui.action.Command#doAction(ActionEvent)
     */
    @Override
    public void doAction(ActionEvent e) {
        ReportTreeNode draggedNodes[] = ReportCopy.getCopiedNodes();
        ReportTreeListener treeListener = ReportGuiPackage.getInstance().getTreeListener();
        ReportTreeNode currentNode = treeListener.getCurrentNode();
        if (ReportDragNDrop.canAddTo(currentNode)) {
            for (int i = 0; i < draggedNodes.length; i++) {
                if (draggedNodes[i] != null) {
                    ReportGuiPackage.getInstance().getTreeModel().insertNodeInto(draggedNodes[i], currentNode,
                            currentNode.getChildCount());
View Full Code Here


    @Override
    public void doAction(ActionEvent e) {
        String action = e.getActionCommand();
        ReportGuiPackage guiPackage = ReportGuiPackage.getInstance();
        ReportTreeNode[] draggedNodes = guiPackage.getTreeListener().getDraggedNodes();
        ReportTreeListener treeListener = guiPackage.getTreeListener();
        ReportTreeNode currentNode = treeListener.getCurrentNode();
        ReportTreeNode parentNode = (ReportTreeNode) currentNode.getParent();
        TestElement te = currentNode.getTestElement();
        if (te instanceof TestPlan || te instanceof WorkBench) {
            parentNode = null; // So elements can only be added as children
        }
View Full Code Here

        return commands;
    }

    @Override
    public void doAction(ActionEvent e) {
        ReportTreeListener treeListener = ReportGuiPackage.getInstance()
                .getTreeListener();
        ReportTreeNode[] nodes = treeListener.getSelectedNodes();
        setCopiedNodes(nodes);
    }
View Full Code Here

    }

    public void startGui(CLOption testFile) {
        PluginManager.install(this, true);
        ReportTreeModel treeModel = new ReportTreeModel();
        ReportTreeListener treeLis = new ReportTreeListener(treeModel);
        treeLis.setActionHandler(ReportActionRouter.getInstance());
        ReportGuiPackage.getInstance(treeLis, treeModel);
        org.apache.jmeter.gui.ReportMainFrame main =
            new org.apache.jmeter.gui.ReportMainFrame(ReportActionRouter.getInstance(),
                treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
View Full Code Here

  /**
   * @see org.apache.jmeter.gui.action.Command#doAction(ActionEvent)
   */
  public void doAction(ActionEvent e) {
    ReportTreeNode draggedNodes[] = ReportCopy.getCopiedNodes();
    ReportTreeListener treeListener = ReportGuiPackage.getInstance().getTreeListener();
    ReportTreeNode currentNode = treeListener.getCurrentNode();
    if (ReportDragNDrop.canAddTo(currentNode)) {
      for (int i = 0; i < draggedNodes.length; i++) {
        if (draggedNodes[i] != null) {
          ReportGuiPackage.getInstance().getTreeModel().insertNodeInto(draggedNodes[i], currentNode,
              currentNode.getChildCount());
View Full Code Here

   */
  public void doAction(ActionEvent e) {
    String action = e.getActionCommand();
    ReportGuiPackage guiPackage = ReportGuiPackage.getInstance();
    ReportTreeNode[] draggedNodes = guiPackage.getTreeListener().getDraggedNodes();
    ReportTreeListener treeListener = guiPackage.getTreeListener();
    ReportTreeNode currentNode = treeListener.getCurrentNode();
    ReportTreeNode parentNode = (ReportTreeNode) currentNode.getParent();
    TestElement te = currentNode.getTestElement();
    if (te instanceof TestPlan || te instanceof WorkBench) {
      parentNode = null; // So elements can only be added as children
    }
View Full Code Here

    }
   
    public void startGui(CLOption testFile) {
        PluginManager.install(this, true);
        ReportTreeModel treeModel = new ReportTreeModel();
        ReportTreeListener treeLis = new ReportTreeListener(treeModel);
        treeLis.setActionHandler(ReportActionRouter.getInstance());
        ReportGuiPackage.getInstance(treeLis, treeModel);
        org.apache.jmeter.gui.ReportMainFrame main =
            new org.apache.jmeter.gui.ReportMainFrame(ReportActionRouter.getInstance(),
                treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
View Full Code Here

  public Set getActionNames() {
    return commands;
  }

  public void doAction(ActionEvent e) {
    ReportTreeListener treeListener = ReportGuiPackage.getInstance()
        .getTreeListener();
    ReportTreeNode[] nodes = treeListener.getSelectedNodes();
    setCopiedNodes(nodes);
  }
View Full Code Here

    }

    public void startGui(CLOption testFile) {
        PluginManager.install(this, true);
        ReportTreeModel treeModel = new ReportTreeModel();
        ReportTreeListener treeLis = new ReportTreeListener(treeModel);
        treeLis.setActionHandler(ReportActionRouter.getInstance());
        ReportGuiPackage.getInstance(treeLis, treeModel);
        org.apache.jmeter.gui.ReportMainFrame main =
            new org.apache.jmeter.gui.ReportMainFrame(
                treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
View Full Code Here

    }

    public void startGui(CLOption testFile) {
        PluginManager.install(this, true);
        ReportTreeModel treeModel = new ReportTreeModel();
        ReportTreeListener treeLis = new ReportTreeListener(treeModel);
        treeLis.setActionHandler(ReportActionRouter.getInstance());
        ReportGuiPackage.getInstance(treeLis, treeModel);
        org.apache.jmeter.gui.ReportMainFrame main =
            new org.apache.jmeter.gui.ReportMainFrame(ReportActionRouter.getInstance(),
                treeModel, treeLis);
        ComponentUtil.centerComponentInWindow(main, 80);
View Full Code Here

TOP

Related Classes of org.apache.jmeter.report.gui.tree.ReportTreeListener

Copyright © 2018 www.massapicom. 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.