18 package org.turro.wd.tree;
20 import org.turro.wd.files.Directory;
21 import org.apache.pivot.wtk.content.TreeBranch;
36 this.directory = directory;
38 String.format(
" ( %d file(s)",
new Object[] { directory.getnFiles() }) +
39 (directory.
getnCommits() != 0 ? String.format(
" %d commit(s)",
new Object[] { directory.getnCommits() }) :
"") +
40 (directory.
getnUpdates() != 0 ? String.format(
" %d update(s)",
new Object[] { directory.getnUpdates() }) :
"") +
44 setIcon(
"org/turro/resource/folder_sync.png");
46 setIcon(
"org/turro/resource/folder_commit.png");
48 setIcon(
"org/turro/resource/folder_update.png");
50 setIcon(
"org/turro/resource/folder.png");
void setDirectory(Directory directory)