use of net.sourceforge.processdash.ev.TaskLabeler in project processdash by dtuma.
the class DataExtractionScaffold method getEVTaskLists.
private List<EVTaskList> getEVTaskLists(boolean includePersonal, boolean includeRollups) {
String[] taskListNames = EVTaskList.findTaskLists(data);
List<EVTaskList> result = new ArrayList<EVTaskList>(taskListNames.length);
TaskLabeler taskLabeler = null;
for (String taskListName : taskListNames) {
EVTaskList tl = EVTaskList.openExisting(taskListName, data, hierarchy, null, false);
if (tl instanceof EVTaskListData && !includePersonal)
continue;
if (tl instanceof EVTaskListRollup && !includeRollups)
continue;
tl.recalc();
tl = new EVTaskListMerged(tl, false, true, null);
if (taskLabeler == null) {
taskLabeler = new DefaultTaskLabeler(this);
taskLabeler.recalculate();
}
tl.setTaskLabeler(taskLabeler);
result.add(tl);
}
return result;
}
Aggregations