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 wo...@apache.org on 2004/10/29 17:14:50 UTC
cvs commit: jakarta-jmeter/src/core/org/apache/jmeter/samplers/gui AbstractSamplerGui.java
woolfel 2004/10/29 08:14:50
Modified: src/core/org/apache/jmeter/samplers/gui
AbstractSamplerGui.java
Log:
I've updated AbstractSamplerGui so it implements Printable interface.
that means now we can easily update screen captures of the samplers
by using the same save action.
peter
Revision Changes Path
1.5 +13 -2 jakarta-jmeter/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java
Index: AbstractSamplerGui.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/samplers/gui/AbstractSamplerGui.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- AbstractSamplerGui.java 14 Feb 2004 03:34:29 -0000 1.4
+++ AbstractSamplerGui.java 29 Oct 2004 15:14:50 -0000 1.5
@@ -20,10 +20,12 @@
import java.util.Arrays;
import java.util.Collection;
+import javax.swing.JComponent;
import javax.swing.JPopupMenu;
import org.apache.jmeter.gui.AbstractJMeterGuiComponent;
import org.apache.jmeter.gui.util.MenuFactory;
+import org.apache.jmeter.visualizers.Printable;
/**
* This is the base class for JMeter GUI components which manage samplers.
@@ -32,6 +34,7 @@
* @version $Revision$
*/
public abstract class AbstractSamplerGui extends AbstractJMeterGuiComponent
+ implements Printable
{
/**
* When a user right-clicks on the component in the test tree, or
@@ -63,4 +66,12 @@
return Arrays.asList(new String[]{MenuFactory.SAMPLERS});
}
+ /**
+ * Subclasses need to over this method, if they wish to
+ * return something other than the Visualizer itself.
+ * @return
+ */
+ public JComponent getPrintableComponent(){
+ return this;
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org