metasim     00/11/14 11:48:06

  Modified:    src/antidote/org/apache/tools/ant/gui/acs ACSElement.java
  Log:
  Added TargetMonitor widget which gives a better indication of what targets 
will
  be built if a build is launched. Also fixed a few buglets in the 
PropertyEditor.
  
  Revision  Changes    Path
  1.4       +16 -1     
jakarta-ant/src/antidote/org/apache/tools/ant/gui/acs/ACSElement.java
  
  Index: ACSElement.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/antidote/org/apache/tools/ant/gui/acs/ACSElement.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ACSElement.java   2000/11/11 04:52:20     1.3
  +++ ACSElement.java   2000/11/14 19:48:06     1.4
  @@ -62,7 +62,7 @@
    * Abstract base class for all Ant Construction Set
    * elements. Depends on the JAXP XML library from Sun.
    * 
  - * @version $Revision: 1.3 $ 
  + * @version $Revision: 1.4 $ 
    * @author Simeon Fitch */
   public abstract class ACSElement extends ElementNode {
       /** Name of the 'xmlString' property. */
  @@ -94,6 +94,21 @@
         */
       public String getXMLString() {
           return toString();
  +    }
  +
  +     /** 
  +      * Set the given attribute.
  +      * 
  +      * @param name Name of the attribute.
  +      * @param value Value of the attribute.
  +      */
  +    public void setAttribute(String name, String value) {
  +        if(value == null || value.length() == 0) {
  +            removeAttribute(name);
  +        }
  +        else {
  +            super.setAttribute(name, value);
  +        }
       }
   
        /** 
  
  
  

Reply via email to