How can i persist a new created KDM model? [message #1221971] |
Wed, 18 December 2013 21:23  |
Eclipse User |
|
|
|
Hi.
I have discovered a java project to generate its KDM representation using the KDM code model discoverer. The segment of this KDM representation comprises 3 models (2 code models and an inventory model). I then created a new structure model and added it to this segment, but the new structure model is not persisted in the segment. Which instructions should i add to the ones below in order to persist the new structure model?
StructureModel structureModel = StructureFactory.eINSTANCE.createStructureModel();
//Retrieve all the models contained in the segment
EList<KDMModel> allTheProjectModels = segment.getModel();
allTheProjectModels.add(structureModel);
Thanks in advance.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.46678 seconds