Author: tmortagne
Date: 2007-10-10 12:29:15 +0200 (Wed, 10 Oct 2007)
New Revision: 5344

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java
Log:
XWIKI-1797 : Modify XWikiMessageTool to be able to extends it.

Modified: 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java
===================================================================
--- 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java
   2007-10-10 09:56:50 UTC (rev 5343)
+++ 
xwiki-platform/core/branches/xwiki-core-1.1/src/main/java/com/xpn/xwiki/web/XWikiMessageTool.java
   2007-10-10 10:29:15 UTC (rev 5344)
@@ -84,13 +84,13 @@
      * The default Resource Bundle to fall back to if no document bundle is 
found when trying to get
      * a key.
      */
-    private ResourceBundle bundle;
+    protected ResourceBundle bundle;
 
     /**
      * The [EMAIL PROTECTED] com.xpn.xwiki.XWikiContext} object, used to get 
access to XWiki primitives for
      * loading documents.
      */
-    private XWikiContext context;
+    protected XWikiContext context;
 
     /**
      * Cache properties loaded from the document bundles for maximum 
efficiency. The map is of type
@@ -151,7 +151,7 @@
      * params parameters. The format is the one used by [EMAIL PROTECTED] 
java.text.MessageFormat}.
      * <p>
      * Note: The reason we're using a List instead of an Object array is 
because we haven't found
-     * how to easily create an Array in Velocity whereas an Array is easily 
created. For example:
+     * how to easily create an Array in Velocity whereas an List is easily 
created. For example:
      * <code>$msg.get("key", ["1", "2", "3"])</code>.
      * </p>
      * 
@@ -170,7 +170,7 @@
     }
 
     /**
-     * @return the list of internationalisation document bundle names as a 
list of XWiki page names
+     * @return the list of internationalization document bundle names as a 
list of XWiki page names
      *         ("Space.Document") or an empty list if no such documents have 
been found
      * @see com.xpn.xwiki.web.XWikiMessageTool for more details on the 
algorithm used to find the
      *      document bundles

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to