use of org.yakindu.base.base.DocumentedElement in project statecharts by Yakindu.
the class STextTaskFinder method findTasks.
public List<Task> findTasks(StextResource resource) {
TaskTags taskTags = taskTagProvider.getTaskTags(resource);
List<Task> result = Lists.newArrayList();
TreeIterator<EObject> allContents = resource.getAllContents();
while (allContents.hasNext()) {
EObject eObject = (EObject) allContents.next();
if (eObject instanceof SpecificationElement) {
List<Task> parseTasks = parseTasks(eObject, SGraphPackage.Literals.SPECIFICATION_ELEMENT__SPECIFICATION, taskTags);
result.addAll(parseTasks);
}
if (eObject instanceof DocumentedElement) {
result.addAll(parseTasks(eObject, BasePackage.Literals.DOCUMENTED_ELEMENT__DOCUMENTATION, taskTags));
}
}
return result;
}
Aggregations