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 2007/03/23 14:26:53 UTC
svn commit: r521718 -
/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java
Author: sebb
Date: Fri Mar 23 06:26:51 2007
New Revision: 521718
URL: http://svn.apache.org/viewvc?view=rev&rev=521718
Log:
Document use of getLabelResource vs getStaticLabel
Modified:
jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java
Modified: jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java?view=diff&rev=521718&r1=521717&r2=521718
==============================================================================
--- jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java (original)
+++ jakarta/jmeter/branches/rel-2-2/src/core/org/apache/jmeter/gui/JMeterGUIComponent.java Fri Mar 23 06:26:51 2007
@@ -71,8 +71,13 @@
* It must be unique to the class.
*
* It is also used by Help to find the appropriate location in the
- * documentation
+ * documentation.
*
+ * Normally getLabelResource() should be overridden instead of
+ * this method; the definition of this method in AbstractJMeterGuiComponent
+ * is intended for general use.
+ *
+ * @see getLabelResource()
* @return GUI label for the component.
*/
String getStaticLabel();
@@ -81,6 +86,10 @@
* Get the component's resource name, which getStaticLabel uses to derive
* the component's label in the local language. The resource name is fixed,
* and does not vary with the selected language.
+ *
+ * Normally this method should be overriden in preference to overriding
+ * getStaticLabel(). However where the resource name is not available or required,
+ * getStaticLabel() may be overridden instead.
*
* @return the resource name
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org