BrightSide Workbench Full Report + Source Code
org.turro.wd.tree.TreeDirectory Class Reference
Inheritance diagram for org.turro.wd.tree.TreeDirectory:
Collaboration diagram for org.turro.wd.tree.TreeDirectory:

Public Member Functions

Directory getDirectory ()
 
void setDirectory (Directory directory)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 27 of file TreeDirectory.java.

Member Function Documentation

◆ getDirectory()

Directory org.turro.wd.tree.TreeDirectory.getDirectory ( )

Definition at line 31 of file TreeDirectory.java.

31  {
32  return directory;
33  }

◆ setDirectory()

void org.turro.wd.tree.TreeDirectory.setDirectory ( Directory  directory)

Definition at line 35 of file TreeDirectory.java.

35  {
36  this.directory = directory;
37  setText(directory.getName() +
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() }) : "") +
41  " )"
42  );
43  if(directory.getnCommits() > 0 && directory.getnUpdates() > 0) {
44  setIcon("org/turro/resource/folder_sync.png");
45  } else if(directory.getnCommits() > 0) {
46  setIcon("org/turro/resource/folder_commit.png");
47  } else if(directory.getnUpdates() > 0) {
48  setIcon("org/turro/resource/folder_update.png");
49  } else {
50  setIcon("org/turro/resource/folder.png");
51  }
52  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: