jsalvata 2004/01/08 13:49:03
Modified: src/protocol/http/org/apache/jmeter/protocol/http/sampler
Tag: testbeans_experimental_branch
HTTPSamplerBeanResources.properties
src/core/org/apache/jmeter/testbeans/gui Tag:
testbeans_experimental_branch BeanInfoSupport.java
Log:
Bean display name i18n.
Revision Changes Path
No revision
No revision
1.1.2.2 +4 -1
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/Attic/HTTPSamplerBeanResources.properties
Index: HTTPSamplerBeanResources.properties
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/sampler/Attic/HTTPSamplerBeanResources.properties,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- HTTPSamplerBeanResources.properties 7 Jan 2004 18:20:19 -0000 1.1.2.1
+++ HTTPSamplerBeanResources.properties 8 Jan 2004 21:49:03 -0000 1.1.2.2
@@ -1,3 +1,6 @@
+# Bean
+displayName=HTTP Request (experimental TestBean)
+
# Properties
domain.displayName=Domain
domain.shortDescription=Server Name (e.g.: www.hasecorp.com)
@@ -11,7 +14,7 @@
filename.displayName=File to Send
filename.shortDescription=Full path name of the file to send in a multipart request
(Undefined: don't do multipart)
fileField.displayName=File Field
-fileField.shortDescription=Name of the file parameter (ie.: the name of the <FILE>
field in the form)
+fileField.shortDescription=Name of the file parameter (ie.: the name of the <INPUT
TYPE="FILE"> field in the form)
mimeType.displayName=MIME Type
mimeType.shortDescription=MIME type of the file
followRedirects.displayName=Follow Redirects
No revision
No revision
1.1.2.4 +14 -1
jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/Attic/BeanInfoSupport.java
Index: BeanInfoSupport.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/testbeans/gui/Attic/BeanInfoSupport.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- BeanInfoSupport.java 7 Jan 2004 18:13:49 -0000 1.1.2.3
+++ BeanInfoSupport.java 8 Jan 2004 21:49:03 -0000 1.1.2.4
@@ -126,6 +126,19 @@
// Store the resource bundle as an attribute of the
BeanDescriptor:
getBeanDescriptor().setValue("resourceBundle", resourceBundle);
+ // Localize the bean name
+ try
+ {
+ getBeanDescriptor().setDisplayName(
+ resourceBundle.getString("displayName"));
+ }
+ catch (MissingResourceException e)
+ {
+ log.debug(
+ "Localized display name not available for bean
"
+ +beanClass.getName());
+ }
+
// Localize the property names and descriptions:
PropertyDescriptor[] properties= getPropertyDescriptors();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]