jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1209008 - /jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java
Date Thu, 01 Dec 2011 08:57:12 GMT
Author: pmouawad
Date: Thu Dec  1 08:57:11 2011
New Revision: 1209008

URL: http://svn.apache.org/viewvc?rev=1209008&view=rev
Log:
Commented bugged and unused code

Modified:
    jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java

Modified: jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java?rev=1209008&r1=1209007&r2=1209008&view=diff
==============================================================================
--- jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java (original)
+++ jmeter/trunk/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java Thu Dec
 1 08:57:11 2011
@@ -22,12 +22,11 @@ import java.awt.event.ActionEvent;
 import java.util.HashSet;
 import java.util.Set;
 
-import org.apache.jmeter.engine.StandardJMeterEngine;
-import org.apache.jmeter.gui.ReportGuiPackage;
 import org.apache.jmeter.gui.action.ActionNames;
-//import org.apache.jorphan.logging.LoggingManager;
-//import org.apache.log.Logger;
 
+/**
+ * FIXME BROKEN CODE
+ */
 public class ReportStart extends AbstractAction {
     //private static final Logger log = LoggingManager.getLoggerForClass();
 
@@ -38,7 +37,7 @@ public class ReportStart extends Abstrac
         commands.add(ActionNames.ACTION_SHUTDOWN);
     }
     // FIXME Due to startEngine being commented engine will always be null
-    private StandardJMeterEngine engine;
+    //private StandardJMeterEngine engine;
 
     /**
      * Constructor for the Start object.
@@ -62,17 +61,19 @@ public class ReportStart extends Abstrac
             popupShouldSave(e);
             startEngine();
         } else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
-            if (engine != null) {
-                ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
-                engine.stopTest();
-                engine = null;
-            }
+        	// FIXME engine is always null
+//            if (engine != null) {
+//                ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
+//                engine.stopTest();
+//                engine = null;
+//            }
         } else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
-            if (engine != null) {
-                ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
-                engine.askThreadsToStop();
-                engine = null;
-            }
+        	// FIXME engine is always null
+//            if (engine != null) {
+//                ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
+//                engine.askThreadsToStop();
+//                engine = null;
+//            }
         }
     }
 



Mime
View raw message