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 wo...@apache.org on 2004/11/04 03:25:43 UTC

cvs commit: jakarta-jmeter/src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui JMSPublisherGui.java JMSSubscriberGui.java

woolfel     2004/11/03 18:25:43

  Modified:    src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui
                        JMSPublisherGui.java JMSSubscriberGui.java
  Log:
  cleaned up the code a little
  
  peter
  
  Revision  Changes    Path
  1.3       +15 -14    jakarta-jmeter/src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java
  
  Index: JMSPublisherGui.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMSPublisherGui.java	31 Oct 2004 05:10:29 -0000	1.2
  +++ JMSPublisherGui.java	4 Nov 2004 02:25:43 -0000	1.3
  @@ -53,9 +53,12 @@
       extends AbstractSamplerGui
       implements java.awt.event.ActionListener, ChangeListener
   {
  -	private String use_file = JMeterUtils.getResString("jms_use_file");
  -	private String use_random = JMeterUtils.getResString("jms_use_random_file"); 
  -	private String use_text = JMeterUtils.getResString("jms_use_text"); 
  +	public static final String use_file =
  +	  JMeterUtils.getResString("jms_use_file");
  +	public static final String use_random =
  +	  JMeterUtils.getResString("jms_use_random_file"); 
  +	public static final String use_text =
  +	  JMeterUtils.getResString("jms_use_text"); 
   	private String[] items = {use_file,use_random,use_text};
   	
   	private String text_msg = JMeterUtils.getResString("jms_text_message");
  @@ -118,6 +121,10 @@
           init();
       }
   
  +	/**
  +	 * the name of the property for the JMSPublisherGui is
  +	 * jms_publisher.
  +	 */
       public String getLabelResource()
       {
           return "jms_publisher";
  @@ -271,7 +278,8 @@
       }
       
       /**
  -     * 
  +     * When a widget state changes, it will notify this class
  +     * so we can enable/disable the correct items.
        */
   	public void stateChanged(ChangeEvent event){
   		if (event.getSource() == this.configChoice){
  @@ -290,7 +298,8 @@
   	}
   	
   	/**
  -	 * 
  +	 * Update config contains the actual logic for enabling
  +	 * or disabling text message, file or random path.
   	 * @param command
   	 */
   	public void updateConfig(String command){
  @@ -324,13 +333,5 @@
   					JOptionPane.ERROR_MESSAGE);
   			}
   		}
  -	}
  -	
  -	/**
  -	 * 
  -	 * @param auth
  -	 */
  -	public void updateUseAuth(String auth){
  -		
   	}
   }
  
  
  
  1.3       +5 -1      jakarta-jmeter/src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui/JMSSubscriberGui.java
  
  Index: JMSSubscriberGui.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/jms/org/apache/jmeter/protocol/jms/control/gui/JMSSubscriberGui.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMSSubscriberGui.java	31 Oct 2004 05:10:29 -0000	1.2
  +++ JMSSubscriberGui.java	4 Nov 2004 02:25:43 -0000	1.3
  @@ -231,6 +231,10 @@
       	}
       }
   
  +	/**
  +	 * When the state of a widget changes, it will notify the
  +	 * gui. the method then enables or disables certain parameters.
  +	 */
   	public void stateChanged(ChangeEvent event){
   		if (event.getSource() == useProperties){
   			if (useProperties.isSelected()){
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org