| Summary: | Cannot add implementation to component EClass | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Eneko Fernandez <eneko.fernandez> |
| Component: | Sca | Assignee: | Project Inbox <stp.sca-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | Stephane.Drapeau |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Eneko Fernandez
Hi Eneko, It's not an error. To modify the implementation, you must use the feature "implementation group": JavaImplementation newValue = ScaFactory.eINSTANCE.createJavaImplementation(); ((FeatureMap.Internal) component.getImplementationGroup()).clear(); ((FeatureMap.Internal) component.getImplementationGroup()).add( ScaPackage.Literals.COMPONENT__IMPLEMENTATION_GROUP,FeatureMapUtil.createEntry( ScaPackage.Literals.DOCUMENT_ROOT__IMPLEMENTATION_JAVA, newValue)); It's the same way of doing to add an interface or a binding. Thanks for the answer. I could manage as you said. Best |