Hi all,
I want to create some additional DCFailureModeEntry to "emulate" the "Split Evaluation Group" feature.
I'm running into to Problems:
1) What is the scope for createMethod? I assume the failureModes member of the owning DCComponentEntry.
2) When I'm executing the following code:
var dcEntry = Factory.createElement(compEntry.failureModes, Metamodel.dc.DCFailureModeEntry);
I get the following error message: "
Cant find method de.ikv.medini.util.emf.edit.MediniModelModificationUtil.addValueOfFeature(org.eclipse.emf.common.util.ECollections$UnmodifiableEList,org.eclipse.emf.ecore.impl.EReferenceImpl,de.ikv.analyze.metamodel.dc.impl.DCFailureModeEntryImpl)."When looking into the factory.ps I can find the following fragement:function __createDCFailureModeEntry(scope) {
if (!scope) {
console.error("Scope is undefined in create method!");
}
var entry = DCFactory.eINSTANCE.create(Metamodel.dc.DCFailureModeEntry);
// XXX changing containment is not supported in 3.1.0 API
var feature = Metamodel.FMEA.ComponentEntry.failureModes;
MediniModelModificationUtil.addValueOfFeature(scope, feature, entry);
return entry;
}Does this mean that I can not add DCFailureModeEntries? Or do I do something completey wrong?
Thanks a lot in Advance for your help.
Regards,Michael