User: vharcq  
  Date: 02/04/19 09:36:49

  Modified:    core/src/xdoclet DocletSupport.java XDocletTagSupport.java
  Log:
  Add getCurrentTag for backward compatibility.  getCurrent Method/Class Tag usage is 
more easy though because it tells what tag you work with.
  
  Revision  Changes    Path
  1.11      +15 -1     xdoclet/core/src/xdoclet/DocletSupport.java
  
  Index: DocletSupport.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/DocletSupport.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -r1.10 -r1.11
  --- DocletSupport.java        17 Apr 2002 23:02:29 -0000      1.10
  +++ DocletSupport.java        19 Apr 2002 16:36:46 -0000      1.11
  @@ -18,7 +18,7 @@
   /**
    * @author    Ara Abrahamian ([EMAIL PROTECTED])
    * @created   Oct 13, 2001
  - * @version   $Revision: 1.10 $
  + * @version   $Revision: 1.11 $
    */
   public abstract class DocletSupport
   {
  @@ -109,6 +109,20 @@
        public static XTag getCurrentClassTag()
        {
                return currentClassTag;
  +     }
  +
  +     /**
  +      * This method is for backward compatiblity only. Method or Class Tag getter
  +      * should be used instead.
  +      *
  +      * @return
  +      */
  +     public static XTag getCurrentTag()
  +     {
  +             if( currentMethodTag != null )
  +                     return currentMethodTag;
  +             else
  +                     return currentClassTag;
        }
   
        /**
  
  
  
  1.40      +12 -1     xdoclet/core/src/xdoclet/XDocletTagSupport.java
  
  Index: XDocletTagSupport.java
  ===================================================================
  RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/XDocletTagSupport.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -w -r1.39 -r1.40
  --- XDocletTagSupport.java    19 Apr 2002 16:06:34 -0000      1.39
  +++ XDocletTagSupport.java    19 Apr 2002 16:36:47 -0000      1.40
  @@ -39,7 +39,7 @@
    *
    * @author    Dmitri Colebatch ([EMAIL PROTECTED])
    * @created   October 12, 2001
  - * @version   $Revision: 1.39 $
  + * @version   $Revision: 1.40 $
    */
   public abstract class XDocletTagSupport extends TemplateTagHandler
   {
  @@ -76,6 +76,17 @@
        public static XTag getCurrentClassTag()
        {
                return getDocletContext().getActiveSubTask().getCurrentClassTag();
  +     }
  +
  +     /**
  +      * This method is used for backward compatibility but use method or class Tag
  +      * specific getter is encouraged.
  +      *
  +      * @return
  +      */
  +     public static XTag getCurrentTag()
  +     {
  +             return getDocletContext().getActiveSubTask().getCurrentTag();
        }
   
        /**
  
  
  

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

Reply via email to