Permalink
Browse files

Show the tags in the edit interface... not yet saving

  • Loading branch information...
1 parent fdcaccb commit 4577be7872e426e86083273d1d639b2fc022907f @matburt committed May 6, 2011
@@ -60,6 +60,16 @@ public Node findChildNode(String regex) {
return null;
}
+ void setTags(ArrayList<String> todoList) {
+ this.tags.clear();
+ this.tagString = "";
+ this.tags.addAll(todoList);
+ for (String titem : todoList) {
+ this.tagString += titem + " ";
+ }
+ this.tagString = this.tagString.trim();
+ }
+
void setParentNode(Node pnode) {
this.parentNode = pnode;
}
@@ -187,7 +187,7 @@ public void parse(Node fileNode, BufferedReader breader)
newNode.setFullTitle(this.stripTitle(title));
newNode.todo = titleComp.todo;
newNode.priority = titleComp.priority;
- newNode.tags.addAll(titleComp.tags);
+ newNode.setTags(titleComp.tags);
if (numstars > starStack.peek()) {
try {
Node lastNode = nodeStack.peek();

0 comments on commit 4577be7

Please sign in to comment.