use of org.yakindu.sct.model.stext.tasks.SCTTask in project statecharts by Yakindu.
the class STextTaskFinder method parseTasks.
protected List<Task> parseTasks(EObject element, EStructuralFeature feature, TaskTags tags) {
String expression = (String) element.eGet(feature);
if (expression == null)
return Collections.emptyList();
List<Task> tasks = parser.parseTasks(expression, tags);
List<Task> result = Lists.newArrayList();
for (Task task : tasks) {
SCTTask sctTask = new SCTTask(task);
sctTask.setSemanticURI(EcoreUtil.getURI(element).fragment());
result.add(sctTask);
}
return result;
}