Commit eb8ed9e8 authored by Simon Barner's avatar Simon Barner
Browse files

- Simplify, eliminating code related to old TaskAllocations

refs 3067
parent 6a301b49
ComponentToTaskAllocationTableCollectionCompositor.java 19733b43e4684d81799557e5c70c9b708e94b554 YELLOW
TaskArchitectureFileProjectCompositor.java 1e7f33916ac000f936b8bba7b32f762f86884fe5 RED
TaskArchitectureFileProjectCompositor.java 18f5a3e06bc20432d6853461b614b769bf37028d YELLOW
TaskCompositor.java fb72faa5a865ac643227419749d3fa88a9eaa39c RED
TaskConnectionCompositor.java 8d27d5b5da4277123423d7aaad65360f784a4c0f RED
TaskPortCompositor.java 816605945bb057a765b82a1fcf349356c41195fa RED
......
......@@ -23,10 +23,9 @@ import org.fortiss.af3.project.compositor.FileProjectCompositor;
import org.fortiss.af3.project.model.FileProject;
import org.fortiss.af3.task.model.TaskArchitecture;
import org.fortiss.tooling.kernel.extension.data.IElementCompositionContext;
import org.fortiss.tooling.kernel.utils.EcoreUtils;
/**
* {@link FileProject} compositor for {@link TaskArchitecture}
* {@link FileProject} compositor for {@link TaskArchitecture}.
*
* @author eder
*/
......@@ -45,17 +44,4 @@ public class TaskArchitectureFileProjectCompositor extends FileProjectCompositor
return super.canCompose(container, contained, context) &&
getFirstChildWithType(container, ComponentArchitecture.class) != null;
}
/** {@inheritDoc} */
@Override
public boolean compose(FileProject container, EObject contained,
IElementCompositionContext context) {
TaskArchitecture taskArchitecture = (TaskArchitecture)contained;
// TODO(JE): manage multiple component architectures
ComponentArchitecture de =
EcoreUtils.getFirstChildWithType(container, ComponentArchitecture.class);
taskArchitecture.setComponentArchitectureReference(de);
return super.compose(container, contained, context);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment