jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1853140 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java
Date Thu, 07 Feb 2019 14:41:41 GMT
Author: pmouawad
Date: Thu Feb  7 14:41:40 2019
New Revision: 1853140

URL: http://svn.apache.org/viewvc?rev=1853140&view=rev
Log:
Bug 63101 Propose a menu item to generate readable overview of Test Plan
Drop code committed by error
Bugzilla Id: 63101

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java?rev=1853140&r1=1853139&r2=1853140&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/SchematicView.java Thu Feb  7 14:41:40
2019
@@ -42,10 +42,8 @@ import javax.xml.transform.stream.Stream
 import org.apache.commons.lang3.StringUtils;
 import org.apache.jmeter.gui.GuiPackage;
 import org.apache.jmeter.gui.plugin.MenuCreator;
-import org.apache.jmeter.gui.tree.JMeterTreeNode;
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.jorphan.collections.HashTree;
-import org.apache.jorphan.collections.HashTreeTraverser;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -53,7 +51,7 @@ import org.slf4j.LoggerFactory;
  * Schematic view of Test Plan
  * @since 5.1
  */
-public class SchematicView extends AbstractAction implements MenuCreator, HashTreeTraverser
{
+public class SchematicView extends AbstractAction implements MenuCreator {
     private static final Logger log = LoggerFactory.getLogger(SchematicView.class);
     private static final String DEFAULT_XSL_FILE = 
             JMeterUtils.getProperty("docgeneration.schematic_xsl"); //$NON-NLS-1$
@@ -121,7 +119,6 @@ public class SchematicView extends Abstr
                             return; // Do not save, user does not want to overwrite
                         }
                     }
-                    GuiPackage.getInstance().getCurrentSubTree().traverse(this);
                     try (FileOutputStream fileOutputStream = new FileOutputStream(outputFile);
                             BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream))
{
                         new XslSchematicViewGenerator().generate(GuiPackage.getInstance().getCurrentSubTree(),

@@ -178,22 +175,4 @@ public class SchematicView extends Abstr
     public void localeChanged() {
         // NOOP
     }
-
-    @Override
-    public void addNode(Object node, HashTree subTree) {
-        // 
-        JMeterTreeNode treeNode = (JMeterTreeNode) node;
-        Object userObject = treeNode.getUserObject();
-        System.out.println(userObject);
-    }
-
-    @Override
-    public void subtractNode() {
-        System.out.println();
-    }
-
-    @Override
-    public void processPath() {
-        // NOOP
-    }
 }



Mime
View raw message