W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn/tasklist Tasklist.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 06 Oct 2009 08:16:26 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mv5De-0005cT-Ar@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist
In directory hutz:/tmp/cvs-serv21587/src/org/w3c/unicorn/tasklist

Modified Files:
	Tasklist.java 
Log Message:
added getDefaultTask method

Index: Tasklist.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/tasklist/Tasklist.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Tasklist.java	28 Aug 2009 12:39:54 -0000	1.2
+++ Tasklist.java	6 Oct 2009 08:16:24 -0000	1.3
@@ -10,6 +10,10 @@
 
 	private String defaultTaskId;
 
+	public Task getDefaultTask() {
+		return Framework.mapOfTask.get(getDefaultTaskId());
+	}
+	
 	public String getDefaultTaskId() {
 		if (defaultTaskId == null) {
 			String id = Framework.mapOfTask.values().toArray(new Task[0])[0].getID();
Received on Tuesday, 6 October 2009 08:16:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC