Update of /var/cvs/src/org/mmbase/framework
In directory james.mmbase.org:/tmp/cvs-serv20216

Modified Files:
        BasicComponent.java Block.java 
Log Message:
Giving blocks a localized title too


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/framework


Index: BasicComponent.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/BasicComponent.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- BasicComponent.java 25 Jan 2008 09:53:17 -0000      1.41
+++ BasicComponent.java 22 Feb 2008 09:06:27 -0000      1.42
@@ -23,7 +23,7 @@
  * components, and may be requested several blocks.
  *
  * @author Michiel Meeuwissen
- * @version $Id: BasicComponent.java,v 1.41 2008/01/25 09:53:17 michiel Exp $
+ * @version $Id: BasicComponent.java,v 1.42 2008/02/22 09:06:27 michiel Exp $
  * @since MMBase-1.9
  */
 public class BasicComponent implements Component {
@@ -123,6 +123,7 @@
                         a = new Action(name, actionName, new 
ActionChecker.Rank(Rank.getRank(rank)));
                     }
                     a.getDescription().fillFromXml("description", element);
+                    a.getDescription().fillFromXml("title", element);
                     log.service("Registering action " + a);
                     ActionRepository.getInstance().add(a);
                 } catch (Exception e) {


Index: Block.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/framework/Block.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- Block.java  20 Feb 2008 17:44:07 -0000      1.30
+++ Block.java  22 Feb 2008 09:06:27 -0000      1.31
@@ -21,7 +21,7 @@
  *
  * @author Johannes Verelst
  * @author Michiel Meeuwissen
- * @version $Id: Block.java,v 1.30 2008/02/20 17:44:07 michiel Exp $
+ * @version $Id: Block.java,v 1.31 2008/02/22 09:06:27 michiel Exp $
  * @since MMBase-1.9
  */
 public class Block {
@@ -37,6 +37,7 @@
     private final String mimetype;
     private final Component parent;
     private final LocalizedString description;
+    private final LocalizedString title;
     private final Type[] classification;
 
     public Block(String name, String mimetype, Component parent, Type[] cla) {
@@ -51,6 +52,7 @@
             t.blocks.add(this);
         }
         this.description = new LocalizedString(name);
+        this.title       = new LocalizedString(name);
     }
 
     /**
@@ -59,6 +61,9 @@
     public String getName() {
         return name;
     }
+    public LocalizedString getTitle() {
+        return title;
+    }
 
 
     /**
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to