User: ko5tik  
  Date: 02/04/16 07:42:38

  Modified:    src/xjavadoc AbstractClass.java AbstractProgramElement.java
                        SourceClass.java XDoc.java XProgramElement.java
  Log:
  update tokens fr4om  XDoc
  
  Revision  Changes    Path
  1.21      +924 -907  xjavadoc/src/xjavadoc/AbstractClass.java
  
  Index: AbstractClass.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/AbstractClass.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -w -r1.20 -r1.21
  --- AbstractClass.java        4 Apr 2002 22:36:33 -0000       1.20
  +++ AbstractClass.java        16 Apr 2002 14:42:38 -0000      1.21
  @@ -798,6 +798,23 @@
   
   
        /**
  +      * update javadoc
  +      */
  +     public void updateDoc() {
  +             super.updateDoc();
  +
  +             // update docs on methods
  +             XMethod[] methods = methods();
  +
  +             int i;
  +             for (i = 0; i < methods.length; i++) {
  +                     methods[i].updateDoc();
  +             }
  +
  +     }
  +
  +
  +     /**
         * Gets the ImportedClassName attribute of the AbstractClass object
         *
         * @param i Describe what the parameter does
  
  
  
  1.11      +409 -399  xjavadoc/src/xjavadoc/AbstractProgramElement.java
  
  Index: AbstractProgramElement.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/AbstractProgramElement.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -r1.10 -r1.11
  --- AbstractProgramElement.java       4 Apr 2002 22:36:33 -0000       1.10
  +++ AbstractProgramElement.java       16 Apr 2002 14:42:38 -0000      1.11
  @@ -362,6 +362,16 @@
   
   
        /**
  +      * update javadoc
  +      */
  +     void updateDoc() {
  +             if (_doc != null) {
  +                     _doc.updateToken();
  +             }
  +     }
  +
  +
  +     /**
         * Sets the JavaDoc attribute of the AbstractProgramElement object
         */
        private final void setJavaDoc() {
  
  
  
  1.25      +506 -505  xjavadoc/src/xjavadoc/SourceClass.java
  
  Index: SourceClass.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/SourceClass.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -w -r1.24 -r1.25
  --- SourceClass.java  8 Apr 2002 22:28:00 -0000       1.24
  +++ SourceClass.java  16 Apr 2002 14:42:38 -0000      1.25
  @@ -222,6 +222,7 @@
         */
        public void print(PrintStream out) {
                complete();
  +             updateDoc();
                if (!isWriteable()) {
                        // parsed with simple parser
                        throw new UnsupportedOperationException("Can't save classes 
that are parsed with simpleparser");
  
  
  
  1.35      +11 -0     xjavadoc/src/xjavadoc/XDoc.java
  
  Index: XDoc.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/XDoc.java,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -w -r1.34 -r1.35
  --- XDoc.java 16 Apr 2002 11:28:56 -0000      1.34
  +++ XDoc.java 16 Apr 2002 14:42:38 -0000      1.35
  @@ -171,6 +171,7 @@
         */
        public void setCommentText(String commentText) {
                _commentText = commentText;
  +             firstSentence = null;
                fireDocChanged();
        }
   
  @@ -544,6 +545,8 @@
                        }
                }
                appendWhiteSpaces(sb).append(" */");
  +
  +             _log.debug("to string returns: " + sb.toString());
                return sb.toString();
        }
   
  @@ -582,6 +585,14 @@
                        }
                }
                return firstSentence;
  +     }
  +
  +
  +     /**
  +      * update token
  +      */
  +     public void updateToken() {
  +             _javadocToken.image = toString();
        }
   
   
  
  
  
  1.7       +188 -182  xjavadoc/src/xjavadoc/XProgramElement.java
  
  Index: XProgramElement.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xjavadoc/src/xjavadoc/XProgramElement.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -w -r1.6 -r1.7
  --- XProgramElement.java      4 Apr 2002 10:59:52 -0000       1.6
  +++ XProgramElement.java      16 Apr 2002 14:42:38 -0000      1.7
  @@ -179,4 +179,10 @@
         * @todo-javadoc Write javadocs for return value
         */
        XProgramElement superElement();
  +
  +
  +     /**
  +      * update docs
  +      */
  +     void updateDoc();
   }
  
  
  

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

Reply via email to