ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #583] Also sorted the labels text showed in the planner.
This commit is contained in:
parent
a68b76049e
commit
4f77b39e2c
1 changed files with 7 additions and 7 deletions
|
|
@ -438,22 +438,22 @@ public class TaskElementAdapter implements ITaskElementAdapter {
|
|||
}
|
||||
|
||||
private String buildLabelsText() {
|
||||
StringBuilder result = new StringBuilder();
|
||||
List<String> result = new ArrayList<String>();
|
||||
|
||||
if (taskElement.getOrderElement() != null) {
|
||||
Set<Label> labels = getLabelsFromElementAndPredecesors(taskElement
|
||||
.getOrderElement());
|
||||
|
||||
if (!labels.isEmpty()) {
|
||||
for (Label label : labels) {
|
||||
result.append(label.getName()).append(",");
|
||||
for (Label label : labels) {
|
||||
String representation = label.getName();
|
||||
if (!result.contains(representation)) {
|
||||
result.add(representation);
|
||||
}
|
||||
result.delete(result.length() - 1, result
|
||||
.length());
|
||||
}
|
||||
}
|
||||
|
||||
return result.toString();
|
||||
Collections.sort(result);
|
||||
return StringUtils.join(result, ", ");
|
||||
}
|
||||
|
||||
private String buildResourcesText() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue