User: ara_e_w 
  Date: 02/05/31 13:43:58

  Modified:    modules/xdoclet/src/xdoclet/modules/doc/info
                        InfoSubTask.java InfoTagsHandler.java
  Log:
  @msg:bundle refactoring
  
  Revision  Changes    Path
  1.5       +3 -4      
xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/InfoSubTask.java
  
  Index: InfoSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/InfoSubTask.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -w -r1.4 -r1.5
  --- InfoSubTask.java  30 May 2002 18:39:07 -0000      1.4
  +++ InfoSubTask.java  31 May 2002 20:43:58 -0000      1.5
  @@ -18,6 +18,7 @@
   import xdoclet.TemplateSubTask;
   import xdoclet.XDocletException;
   import xdoclet.modules.doc.DocumentDocletTask;
  +import xdoclet.modules.doc.XDocletModulesDocMessages;
   import xdoclet.tagshandler.AbstractProgramElementTagsHandler;
   import xdoclet.tagshandler.PackageTagsHandler;
   import xdoclet.util.FileManager;
  @@ -33,7 +34,7 @@
    * @created           September 18, 2001
    * @xdoclet:subtask   display-name="Info/Todo" name="info" 
parent="xdoclet.modules.doc.DocumentDocletTask"
    * @todo              use DocletTask as parent instead. should be enough.
  - * @version           $Revision: 1.4 $
  + * @version           $Revision: 1.5 $
    */
   public class InfoSubTask extends TemplateSubTask
   {
  @@ -116,9 +117,7 @@
        */
       public void execute() throws XDocletException
       {
  -        Log log = LogUtil.getLog(InfoSubTask.class, "execute");
  -
  -        
System.out.println(Translator.getString("xdoclet.modules.doc.resources.Messages", 
"create_info_lists_for",
  +        System.out.println(Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.CREATE_INFO_LISTS_FOR,
               new String[]{properties.getProperty("tagName")}));
   
           // first, generate the general stuff on the root.
  
  
  
  1.3       +20 -30    
xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/InfoTagsHandler.java
  
  Index: InfoTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/xdoclet/src/xdoclet/modules/doc/info/InfoTagsHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -r1.2 -r1.3
  --- InfoTagsHandler.java      28 May 2002 21:30:20 -0000      1.2
  +++ InfoTagsHandler.java      31 May 2002 20:43:58 -0000      1.3
  @@ -10,6 +10,7 @@
   
   import xdoclet.XDocletException;
   import xdoclet.XDocletTagSupport;
  +import xdoclet.modules.doc.XDocletModulesDocMessages;
   import xdoclet.tagshandler.*;
   import xdoclet.template.TemplateException;
   import xdoclet.util.Translator;
  @@ -18,7 +19,7 @@
    * @author               <a href="mailto:[EMAIL PROTECTED]";>Aslak 
Helles�y</a>
    * @created              Oct 15, 2001
    * @xdoclet:taghandler   namespace="Info"
  - * @version              $Revision: 1.2 $
  + * @version              $Revision: 1.3 $
    */
   public class InfoTagsHandler extends XDocletTagSupport
   {
  @@ -203,8 +204,7 @@
               return ((MethodTagsHandler) getEngine().getTagHandlerFor("Method"));
           }
           catch (TemplateException ex) {
  -            throw new XDocletException(ex, 
Translator.getString("xdoclet.modiles.doc.resources.Messages",
  -                "tagshandler_not_found", new String[]{"MethodTagsHandler", 
"Method"}));
  +            throw new XDocletException(ex, 
Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.TAGSHANDLER_NOT_FOUND, new String[]{"MethodTagsHandler", 
"Method"}));
           }
       }
   
  @@ -220,8 +220,7 @@
               return ((FieldTagsHandler) getEngine().getTagHandlerFor("Field"));
           }
           catch (TemplateException ex) {
  -            throw new XDocletException(ex, 
Translator.getString("xdoclet.modules.doc.resources.Messages",
  -                "tagshandler_not_found", new String[]{"FieldTagsHandler", 
"Field"}));
  +            throw new XDocletException(ex, 
Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.TAGSHANDLER_NOT_FOUND, new String[]{"FieldTagsHandler", 
"Field"}));
           }
       }
   
  @@ -237,8 +236,7 @@
               return ((ConstructorTagsHandler) 
getEngine().getTagHandlerFor("Constructor"));
           }
           catch (TemplateException ex) {
  -            throw new XDocletException(ex, 
Translator.getString("xdoclet.modules.doc.resources.Messages",
  -                "tagshandler_not_found", new String[]{"ConstructorTagsHandler", 
"Constructor"}));
  +            throw new XDocletException(ex, 
Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.TAGSHANDLER_NOT_FOUND, new 
String[]{"ConstructorTagsHandler", "Constructor"}));
           }
       }
   
  @@ -254,8 +252,7 @@
               return ((ClassTagsHandler) getEngine().getTagHandlerFor("Class"));
           }
           catch (TemplateException ex) {
  -            throw new XDocletException(ex, 
Translator.getString("xdoclet.modules.doc.resources.Messages",
  -                "tagshandler_not_found", new String[]{"ClassTagsHandler", 
"Class"}));
  +            throw new XDocletException(ex, 
Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.TAGSHANDLER_NOT_FOUND, new String[]{"ClassTagsHandler", 
"Class"}));
           }
       }
   
  @@ -271,8 +268,7 @@
               return ((PackageTagsHandler) getEngine().getTagHandlerFor("Package"));
           }
           catch (TemplateException ex) {
  -            throw new XDocletException(ex, 
Translator.getString("xdoclet.modules.doc.resources.Messages",
  -                "tagshandler_not_found", new String[]{"PackageTagsHandler", 
"Package"}));
  +            throw new XDocletException(ex, 
Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.TAGSHANDLER_NOT_FOUND, new String[]{"PackageTagsHandler", 
"Package"}));
           }
       }
   
  @@ -309,8 +305,7 @@
               tagCount = tagCountInClass_Impl(getProperties(), getCurrentClass(), 
false, false, false, true);
           }
           else {
  -            throw new 
XDocletException(Translator.getString("xdoclet.modules.doc.resources.Messages",
  -                "bad_level", new String[]{level}));
  +            throw new 
XDocletException(Translator.getString(XDocletModulesDocMessages.class, 
XDocletModulesDocMessages.BAD_LEVEL, new String[]{level}));
           }
           return tagCount;
       }
  @@ -325,8 +320,6 @@
       private int tagCountInAll_Impl(Properties attributes) throws XDocletException
       {
           int tagCount = 0;
  -        String tag_name = attributes.getProperty("tagName");
  -
           XClass[] classes = AbstractProgramElementTagsHandler.getAllClasses();
           SortedSet packages = new TreeSet();
   
  @@ -350,12 +343,10 @@
        * @param attributes            Describe what the parameter does
        * @param pakkage               Describe what the parameter does
        * @return                      Describe the return value
  -     * @exception XDocletException  Describe the exception
        */
  -    private int tagCountInPackage_Impl(Properties attributes, XPackage pakkage) 
throws XDocletException
  +    private int tagCountInPackage_Impl(Properties attributes, XPackage pakkage)
       {
           int tagCount = 0;
  -        String tag_name = attributes.getProperty("tagName");
           XClass[] classes = pakkage.getClasses();
   
           for (int i = 0; i < classes.length; i++) {
  @@ -374,9 +365,8 @@
        * @param countConstructors     Describe what the parameter does
        * @param countMethods          Describe what the parameter does
        * @return                      Describe the return value
  -     * @exception XDocletException  Describe the exception
        */
  -    private int tagCountInClass_Impl(Properties attributes, XClass clazz, boolean 
countClass, boolean countFields, boolean countConstructors, boolean countMethods) 
throws XDocletException
  +    private int tagCountInClass_Impl(Properties attributes, XClass clazz, boolean 
countClass, boolean countFields, boolean countConstructors, boolean countMethods)
       {
           int tagCount = 0;
           String tagName = attributes.getProperty("tagName");
  
  
  

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to