Changeset 1636 for trunk/autoquest-ui-swt/src/main/java
- Timestamp:
- 07/31/14 17:17:21 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-ui-swt/src/main/java/de/ugoe/cs/autoquest/ui/swt/ShowTaskTreeDialog.java
r1495 r1636 59 59 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskModel; 60 60 import de.ugoe.cs.autoquest.tasktrees.treeifc.IUserSession; 61 import de.ugoe.cs.autoquest.tasktrees.treeifc.TaskMetric; 61 62 62 63 /** … … 460 461 } 461 462 462 int task Count = task.getInstances().size();463 int taskValue = taskModel.getTaskInfo(task).getMeasureValue(TaskMetric.EVENT_COVERAGE); 463 464 int start = 0; 464 465 int end = toAdd.size(); 465 466 int center = 0; 466 int center Count;467 int centerValue; 467 468 468 469 while (start != end) { … … 470 471 471 472 if ((center != start) || (center != end)) { 472 centerCount = toAdd.get(center).getInstances().size(); 473 //centerValue = toAdd.get(center).getInstances().size(); 474 centerValue = taskModel.getTaskInfo(toAdd.get(center)).getMeasureValue 475 (TaskMetric.EVENT_COVERAGE); 473 476 474 if (center Count > taskCount) {477 if (centerValue > taskValue) { 475 478 start = Math.max(center, start + 1); 476 479 } 477 else if (center Count < taskCount) {480 else if (centerValue < taskValue) { 478 481 end = Math.min(center, end - 1); 479 482 }
Note: See TracChangeset
for help on using the changeset viewer.