sebb        2004/03/07 11:17:23

  Modified:    src/core/org/apache/jmeter/gui
                        AbstractJMeterGuiComponent.java
  Log:
  Add implementation of getLabelResource() to allow older code to compile
  
  Revision  Changes    Path
  1.30      +16 -2     
jakarta-jmeter/src/core/org/apache/jmeter/gui/AbstractJMeterGuiComponent.java
  
  Index: AbstractJMeterGuiComponent.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/core/org/apache/jmeter/gui/AbstractJMeterGuiComponent.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- AbstractJMeterGuiComponent.java   5 Mar 2004 13:18:38 -0000       1.29
  +++ AbstractJMeterGuiComponent.java   7 Mar 2004 19:17:23 -0000       1.30
  @@ -321,4 +321,18 @@
        {
                return getStaticLabel().replace(' ', '_');
        }
  +     
  +     /* 
  +      * Dummy implementation so existing code still compiles.
  +      * Throws an error because it should not be invoked - and cannot provide a 
useful value.
  +      * 
  +      * The target class should either implement getStaticLabel(), as before, or it
  +      * should implement getLabelResource()
  +      * 
  +     * TODO: remove eventually
  +      */
  +     public String getLabelResource()
  +     {
  +             throw new UnsupportedOperationException("Needs to be implemented by 
each class");
  +     }
   }
  
  
  

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

Reply via email to