提交 a2aa8032 编写于 作者: B bernd.ruecker

added usage count of connector to tag label in tree

上级 ffff1cfc
......@@ -10,6 +10,12 @@ import java.util.List;
public interface CycleTagContent {
public String getName();
/**
* return a count how often this tag is used. May be used to visualize tag
* cloud or the like
*/
public long getUsageCount();
public List<RepositoryNode> getTaggedRepositoryNodes();
......
......@@ -66,7 +66,7 @@ public class TagConnector implements RepositoryConnector {
List<CycleTagContent> rootTags = getConfiguration().getCycleService().getRootTags();
for (CycleTagContent tag : rootTags) {
RepositoryFolderImpl folder = new RepositoryFolderImpl(getConfiguration().getId(), tag.getName());
folder.getMetadata().setName(tag.getName());
folder.getMetadata().setName(tag.getName() + " [" + tag.getUsageCount() + "]");
tagFolderList.add(folder);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册