Navigation Menu

Skip to content

Commit

Permalink
Show the tags in the edit interface... not yet saving
Browse files Browse the repository at this point in the history
  • Loading branch information
matburt committed May 6, 2011
1 parent fdcaccb commit 4577be7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/com/matburt/mobileorg/Parsing/Node.java
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/com/matburt/mobileorg/Parsing/OrgFileParser.java
Expand Up @@ -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();
Expand Down

0 comments on commit 4577be7

Please sign in to comment.