jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1239798 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
Date Thu, 02 Feb 2012 19:58:13 GMT
Author: pmouawad
Date: Thu Feb  2 19:58:13 2012
New Revision: 1239798

URL: http://svn.apache.org/viewvc?rev=1239798&view=rev
Log:
Bug 52552 - Help reference only works in English

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java?rev=1239798&r1=1239797&r2=1239798&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TestBeanGUI.java Thu Feb  2 19:58:13
2012
@@ -31,7 +31,9 @@ import java.util.Collection;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
+import java.util.ResourceBundle;
 
 import javax.swing.JPopupMenu;
 
@@ -481,4 +483,18 @@ public class TestBeanGUI extends Abstrac
             JMeterUtils.reportErrorToUser("Can't get beanInfo for " + testBeanClass.getName());
         }
 	}
+
+    /**
+     * {@inheritDoc}}
+     * @see org.apache.jmeter.gui.AbstractJMeterGuiComponent#getDocAnchor()
+     */
+    @Override
+    public String getDocAnchor() {
+        ResourceBundle resourceBundle = ResourceBundle.getBundle(
+                testBeanClass.getName() + "Resources",  // $NON-NLS-1$
+                new Locale("",""));
+
+        String name = resourceBundle.getString("displayName");
+        return name.replace(' ', '_');
+    }
 }



Mime
View raw message