You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/03/02 02:49:14 UTC

svn commit: r382236 - /jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java

Author: sebb
Date: Wed Mar  1 17:49:12 2006
New Revision: 382236

URL: http://svn.apache.org/viewcvs?rev=382236&view=rev
Log:
Action names are now all in ActionNames class

Modified:
    jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java

Modified: jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java?rev=382236&r1=382235&r2=382236&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/reports/org/apache/jmeter/report/gui/action/ReportStart.java Wed Mar  1 17:49:12 2006
@@ -1,4 +1,3 @@
-// $Header$
 /*
  * Copyright 2005 The Apache Software Foundation.
  *
@@ -23,9 +22,8 @@
 import java.util.Set;
 
 import org.apache.jmeter.engine.StandardJMeterEngine;
-import org.apache.jmeter.report.gui.action.AbstractAction;
 import org.apache.jmeter.gui.ReportGuiPackage;
-import org.apache.jmeter.gui.util.JMeterMenuBar;
+import org.apache.jmeter.gui.action.ActionNames;
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.log.Logger;
 
@@ -38,9 +36,9 @@
 
 	private static Set commands = new HashSet();
 	static {
-		commands.add(JMeterMenuBar.ACTION_START);
-		commands.add(JMeterMenuBar.ACTION_STOP);
-		commands.add(JMeterMenuBar.ACTION_SHUTDOWN);
+		commands.add(ActionNames.ACTION_START);
+		commands.add(ActionNames.ACTION_STOP);
+		commands.add(ActionNames.ACTION_SHUTDOWN);
 	}
 
 	private StandardJMeterEngine engine;
@@ -61,16 +59,16 @@
 	}
 
 	public void doAction(ActionEvent e) {
-		if (e.getActionCommand().equals(JMeterMenuBar.ACTION_START)) {
+		if (e.getActionCommand().equals(ActionNames.ACTION_START)) {
 			popupShouldSave(e);
 			startEngine();
-		} else if (e.getActionCommand().equals(JMeterMenuBar.ACTION_STOP)) {
+		} else if (e.getActionCommand().equals(ActionNames.ACTION_STOP)) {
 			if (engine != null) {
 				ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
 				engine.stopTest();
 				engine = null;
 			}
-		} else if (e.getActionCommand().equals(JMeterMenuBar.ACTION_SHUTDOWN)) {
+		} else if (e.getActionCommand().equals(ActionNames.ACTION_SHUTDOWN)) {
 			if (engine != null) {
 				ReportGuiPackage.getInstance().getMainFrame().showStoppingMessage("");
 				engine.askThreadsToStop();
@@ -80,9 +78,9 @@
 	}
 
 	protected void startEngine() {
-		ReportGuiPackage gui = ReportGuiPackage.getInstance();
         /**
          * this will need to be changed
+        ReportGuiPackage gui = ReportGuiPackage.getInstance();
 		engine = new StandardJMeterEngine();
 		HashTree testTree = gui.getTreeModel().getTestPlan();
 		convertSubTree(testTree);



---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org