Revision ef5b664d src/gr/grnet/pithos/web/client/Pithos.java
b/src/gr/grnet/pithos/web/client/Pithos.java | ||
---|---|---|
74 | 74 |
import gr.grnet.pithos.web.client.tagtree.TagTreeViewModel; |
75 | 75 |
import java.util.ArrayList; |
76 | 76 |
import java.util.Arrays; |
77 |
import java.util.Collection; |
|
77 | 78 |
import java.util.Date; |
78 | 79 |
import java.util.HashMap; |
79 | 80 |
import java.util.Iterator; |
... | ... | |
141 | 142 |
} |
142 | 143 |
|
143 | 144 |
public void updateTags() { |
144 |
tagTreeViewModel.initialize(account); |
|
145 |
tagTreeViewModel.initialize(getAllTags()); |
|
146 |
} |
|
147 |
|
|
148 |
public List<Tag> getAllTags() { |
|
149 |
List<Tag> tagList = new ArrayList<Tag>(); |
|
150 |
for (Folder f : account.getContainers()) { |
|
151 |
for (String t : f.getTags()) { |
|
152 |
tagList.add(new Tag(t)); |
|
153 |
} |
|
154 |
} |
|
155 |
return tagList; |
|
145 | 156 |
} |
146 | 157 |
|
147 | 158 |
/** |
... | ... | |
461 | 472 |
|
462 | 473 |
// Window.Location.assign(GWT.getModuleBaseURL() + conf.loginUrl() + "?next=" + Window.Location.getHref()); |
463 | 474 |
Cookies.setCookie(conf.authCookie(), "test" + conf.cookieSeparator() + "0000"); |
464 |
Window.Location.assign(GWT.getModuleBaseURL() + "Pithos.html");
|
|
475 |
Window.Location.assign(GWT.getModuleBaseURL() + "pithos.html");
|
|
465 | 476 |
} |
466 | 477 |
|
467 | 478 |
private void fetchAccount() { |
Also available in: Unified diff