Search in sources :

Example 1 with SCTTask

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;
}
Also used : SCTTask(org.yakindu.sct.model.stext.tasks.SCTTask) Task(org.eclipse.xtext.tasks.Task) SCTTask(org.yakindu.sct.model.stext.tasks.SCTTask)

Aggregations

Task (org.eclipse.xtext.tasks.Task)1 SCTTask (org.yakindu.sct.model.stext.tasks.SCTTask)1