Update of /var/cvs/applications/richtext/src/org/mmbase/richtext/builders
In directory 
james.mmbase.org:/tmp/cvs-serv24214/src/org/mmbase/richtext/builders

Modified Files:
        IdRel.java 
Log Message:
support for version_from, version_to fields in idrel nodes. This allows for 
some more convenient versioning support in richtext


See also: 
http://cvs.mmbase.org/viewcvs/applications/richtext/src/org/mmbase/richtext/builders


Index: IdRel.java
===================================================================
RCS file: 
/var/cvs/applications/richtext/src/org/mmbase/richtext/builders/IdRel.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- IdRel.java  26 Oct 2005 07:11:06 -0000      1.1
+++ IdRel.java  3 Jun 2008 09:43:01 -0000       1.2
@@ -16,13 +16,17 @@
  * Like InsRel, only with a GUIIndicator tailored for a relation with an 'id' 
field.
  *
  * @author Michiel Meeuwissen.
- * @version $Id: IdRel.java,v 1.1 2005/10/26 07:11:06 michiel Exp $
+ * @version $Id: IdRel.java,v 1.2 2008/06/03 09:43:01 michiel Exp $
  * @since MMBase-1.8
  */
 public class IdRel extends InsRel {
 
+    public static final String ID           = "id";
+    public static final String VERSION_FROM = "version_from";
+    public static final String VERSION_TO   = "version_to";
+
     public String getGUIIndicator(MMObjectNode node) {
-        return super.getGUIIndicator(node) + ":" + node.getStringValue("id");
+        return super.getGUIIndicator(node) + ":" + node.getStringValue(ID);
     }
 
 
_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to