ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata ModelElement.java
Date Thu, 13 Jun 2002 05:21:37 GMT
donaldp     2002/06/12 22:21:37

  Modified:    api/src/java/org/apache/myrmidon/api/metadata
                        ModelElement.java
  Log:
  Make sure when an element is made read-only then all of its children are also made read-only
  
  Revision  Changes    Path
  1.6       +7 -1      jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata/ModelElement.java
  
  Index: ModelElement.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/api/src/java/org/apache/myrmidon/api/metadata/ModelElement.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ModelElement.java	17 May 2002 07:30:58 -0000	1.5
  +++ ModelElement.java	13 Jun 2002 05:21:37 -0000	1.6
  @@ -256,6 +256,12 @@
       public void makeReadOnly()
       {
           m_readOnly = true;
  +        final int size = m_children.size();
  +        for( int i = 0; i < size; i++ )
  +        {
  +            final ModelElement element = (ModelElement)m_children.get( i );
  +            element.makeReadOnly();
  +        }
       }
   
       /**
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message