User: rinkrank
  Date: 02/03/25 16:01:17

  Modified:    core/src/xdoclet/doc DocumentDocletTask.java
  Log:
  -Added Field and Constructor-level support to info/todo
  -Restructured layout for todo task (with gifs)
  -Added a method to FileManager for writing out binary files from jar resources
  -Some ArrayList -> List refactorings
  
  Revision  Changes    Path
  1.11      +15 -12    xdoclet/core/src/xdoclet/doc/DocumentDocletTask.java
  
  Index: DocumentDocletTask.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/doc/DocumentDocletTask.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -r1.10 -r1.11
  --- DocumentDocletTask.java   24 Mar 2002 17:44:18 -0000      1.10
  +++ DocumentDocletTask.java   26 Mar 2002 00:01:17 -0000      1.11
  @@ -3,36 +3,39 @@
   import xdoclet.DocletTask;
   import xdoclet.doc.info.InfoSubTask;
   
  +import java.util.List;
   import java.util.ArrayList;
   
   /**
    * @author     Ara Abrahamian ([EMAIL PROTECTED])
    * @created    June 19, 2001
  - * @version    $Revision: 1.10 $
  + * @version    $Revision: 1.11 $
    */
   public class DocumentDocletTask extends DocletTask
   {
  -     protected DocumentTagsSubTask documenttags = null;
  -     protected InfoSubTask infotags = null;
  +     private DocumentTagsSubTask documentTagsSubTask = null;
  +     private ArrayList infoSubTasks = new ArrayList();
   
        public DocumentTagsSubTask createDocumenttags()
        {
  -             documenttags = new DocumentTagsSubTask();
  -             return documenttags;
  +             documentTagsSubTask = new DocumentTagsSubTask();
  +             return documentTagsSubTask;
        }
   
        public InfoSubTask createInfo()
        {
  -             infotags = new InfoSubTask( this );
  -             return infotags;
  +             InfoSubTask infoSubTask = new InfoSubTask( this );
  +             infoSubTasks.add( infoSubTask );
  +             return infoSubTask;
        }
   
  -     protected ArrayList getSubTasks()
  +     protected List getSubTasks()
        {
  -             ArrayList subtasks = super.getSubTasks();
  -
  -             subtasks.add( this.documenttags );
  -             subtasks.add( this.infotags );
  +             List subtasks = super.getSubTasks();
  +             if( documentTagsSubTask != null ) {
  +                     subtasks.add( documentTagsSubTask );
  +             }
  +             subtasks.addAll( infoSubTasks );
   
                return subtasks;
        }
  
  
  

_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to