Author: sebb
Date: Sat Nov 15 09:40:13 2008
New Revision: 717890

URL: http://svn.apache.org/viewvc?rev=717890&view=rev
Log:
Revert Define getLabelResource() instead of getStaticLabel()
Does not work - add comments to say why

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/AjpSamplerGui.java
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/AjpSamplerGui.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/AjpSamplerGui.java?rev=717890&r1=717889&r2=717890&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/AjpSamplerGui.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/AjpSamplerGui.java
 Sat Nov 15 09:40:13 2008
@@ -20,6 +20,7 @@
 import org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui;
 import org.apache.jmeter.protocol.http.sampler.AjpSampler;
 import org.apache.jmeter.testelement.TestElement;
+import org.apache.jmeter.util.JMeterUtils;
 
 public class AjpSamplerGui extends HttpTestSampleGui {
 
@@ -33,8 +34,9 @@
         return sampler;
     }
 
-    public String getLabelResource() {
-        return "ajp_sampler_title"; // $NON-NLS-1$
+    // Use this instead of getLabelResource() otherwise getDocAnchor() below 
does not work
+    public String getStaticLabel() {
+        return JMeterUtils.getResString("ajp_sampler_title"); // $NON-NLS-1$
     }
     
     public String getDocAnchor() {// reuse documentation

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java?rev=717890&r1=717889&r2=717890&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java
 Sat Nov 15 09:40:13 2008
@@ -21,6 +21,7 @@
 import org.apache.jmeter.protocol.http.sampler.HTTPSamplerFactory;
 import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
 import org.apache.jmeter.testelement.TestElement;
+import org.apache.jmeter.util.JMeterUtils;
 
 /**
  * HTTP Sampler GUI for Apache HTTPClient HTTP implementation
@@ -37,8 +38,9 @@
         return sampler;
     }
 
-    public String getLabelResource() {
-        return "web_testing2_title"; //$NON-NLS-1$
+    // Use this instead of getLabelResource() otherwise getDocAnchor() below 
does not work
+    public String getStaticLabel() {
+        return JMeterUtils.getResString("web_testing2_title"); //$NON-NLS-1$
     }
 
     // Documentation is shared with our parent



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to