W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2010

2006/unicorn/src/org/w3c/unicorn/tasklist TaskListUnmarshallerBeans.java,1.10,1.11

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 04 Mar 2010 18:47:19 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NnG4t-0005XH-4S@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist
In directory hutz:/tmp/cvs-serv21212/src/org/w3c/unicorn/tasklist

Modified Files:
	TaskListUnmarshallerBeans.java 
Log Message:
added attribute "default" to the xml task object. If set to true the coresponding task will be the on selected by default on the index page.

Index: TaskListUnmarshallerBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist/TaskListUnmarshallerBeans.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- TaskListUnmarshallerBeans.java	23 Sep 2009 09:21:37 -0000	1.10
+++ TaskListUnmarshallerBeans.java	4 Mar 2010 18:47:17 -0000	1.11
@@ -167,7 +167,10 @@
 				}
 			}
 		}
-
+		
+		if (aTask.isSetDefault() && aTask.getDefault().equals("true"))
+			this.mapOfTask.setDefaultTaskId(aTaskCurrent.getID());
+		
 		this.mapOfTask.put(aTaskCurrent.getID(), aTaskCurrent);
 
 	}
Received on Thursday, 4 March 2010 18:47:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:19 GMT