/**
* Fill the label for displaying the differential with the previous version
*/
private void fillDiffLabel() {
Project p = this.project;
int v = this.version;
// If there is an anterior version
if (v > 1) {
if (p.getNcom(v) != -1 && p.getNcom(v - 1) != -1) {
if (p.getNcom(v) > p.getNcom(v - 1)) {
diffComLabel.setText("(+)");
diffComLabel.setStyleDependentName("red", false);
diffComLabel.setStyleDependentName("green", true);
} else if (p.getNcom(v) < p.getNcom(v - 1)) {
diffComLabel.setText("(-)");
diffComLabel.setStyleDependentName("green", false);
diffComLabel.setStyleDependentName("red", true);
}
}