Index: TaskList.java =================================================================== RCS file: /cvs/tasklist/core/src/org/netbeans/modules/tasklist/core/TaskList.java,v retrieving revision 1.12 diff -u -r1.12 TaskList.java --- TaskList.java 19 Feb 2003 02:46:43 -0000 1.12 +++ TaskList.java 6 Mar 2003 05:02:00 -0000 @@ -159,6 +159,12 @@ * @param show If true, show the task in the list */ public void add(Task task, boolean append, boolean show) { + if (System.getProperty("tasklist.debug") != null) { + System.err.println("TaskList.add"); + System.err.println(" parent=" + task.getParent()); + System.err.println(" task=" + task); + System.err.println(" append=" + append + ", show=" + show); + } if (root == null) { root = getRoot(); } @@ -181,6 +187,12 @@ // TODO make this smarter later on, such that I only save when necessary save(); + if (System.getProperty("tasklist.debug") != null) { + print(); + if (view != null) { + view.nodePrint(); + } + } } /** Add a todo item to the todo list. @@ -192,6 +204,13 @@ * @param show If true, show the task in the list */ public void add(Task task, Task after, boolean show) { + if (System.getProperty("tasklist.debug") != null) { + System.err.println("TaskList.add"); + System.err.println(" parent=" + task.getParent()); + System.err.println(" task=" + task); + System.err.println(" task=" + after); + System.err.println(" show=" + show); + } if (root == null) { root = getRoot(); } @@ -214,6 +233,12 @@ // TODO make this smarter later on, such that I only save when necessary save(); + if (System.getProperty("tasklist.debug") != null) { + print(); + if (view != null) { + view.nodePrint(); + } + } } @@ -235,6 +260,12 @@ // TODO make this smarter later on, such that I only save when necessary save(); + if (System.getProperty("tasklist.debug") != null) { + print(); + if (view != null) { + view.nodePrint(); + } + } } /** Notify the todo list that some aspect of it has been changed, so @@ -409,6 +440,7 @@ } } } + // */ /** Remove all the tasks in this tasklist */