sebb        2003/10/16 15:11:03

  Modified:    src/protocol/java/org/apache/jmeter/protocol/java/control/gui
                        BeanShellSamplerGui.java
  Log:
  Eliminated local versions of bsh strings
  
  Revision  Changes    Path
  1.2       +9 -14     
jakarta-jmeter/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
  
  Index: BeanShellSamplerGui.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/java/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BeanShellSamplerGui.java  14 Oct 2003 00:02:56 -0000      1.1
  +++ BeanShellSamplerGui.java  16 Oct 2003 22:11:03 -0000      1.2
  @@ -1,4 +1,8 @@
   /*
  + * $Header$
  + * $Revision$
  + * $Date$
  + * 
    * ====================================================================
    * The Apache Software License, Version 1.1
    *
  @@ -77,16 +81,7 @@
    */
   public class BeanShellSamplerGui extends AbstractSamplerGui implements 
ActionListener
   {
  -     private static final String staticLabel
  -         = JMeterUtils.getResString("bsh_sampler_title","BeanShell Sampler (BETA 
CODE)");
  -     
  -     private static final String fileLabel =
  -         JMeterUtils.getResString("bsh_script_file","BeanShell Script File");
  -
  -     private static final String scriptLabel =
  -         JMeterUtils.getResString("bsh_script","BeanShell Script");
  -     
  -    public BeanShellSamplerGui()
  +     public BeanShellSamplerGui()
       {
           init();
       }
  @@ -119,14 +114,14 @@
   
       public String getStaticLabel()
       {
  -        return staticLabel;
  +        return JMeterUtils.getResString("bsh_sampler_title" + "(BETA CODE)");
       }
       private JTextField filename;
       
   
        private JPanel createFilenamePanel()//TODO ought to be a FileChooser ...
        {
  -             JLabel label = new JLabel(fileLabel);
  +             JLabel label = new JLabel(JMeterUtils.getResString("bsh_script_file"));
                
                filename = new JTextField(10);
                filename.setName(BeanShellSampler.FILENAME);
  @@ -166,7 +161,7 @@
                scriptField.setLineWrap(true);
                scriptField.setWrapStyleWord(true);
   
  -             JLabel label = new JLabel(scriptLabel);
  +             JLabel label = new JLabel(JMeterUtils.getResString("bsh_script"));
                label.setLabelFor(scriptField);
   
                JPanel panel = new JPanel(new BorderLayout());
  
  
  

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

Reply via email to