Index: src/com/metamatrix/metamodels/internal/builder/execution/ModelBuilderImpl.java =================================================================== RCS file: /cvs/dev/com.metamatrix.metamodels.builder.execution/src/com/metamatrix/metamodels/internal/builder/execution/Attic/ModelBuilderImpl.java,v retrieving revision 1.1.6.1.6.1 diff -u -r1.1.6.1.6.1 ModelBuilderImpl.java --- src/com/metamatrix/metamodels/internal/builder/execution/ModelBuilderImpl.java 22 Nov 2006 19:03:58 -0000 1.1.6.1.6.1 +++ src/com/metamatrix/metamodels/internal/builder/execution/ModelBuilderImpl.java 9 Apr 2007 20:41:52 -0000 @@ -138,6 +138,7 @@ // Get the details of the model to be created. String modelType = record.getModelType(); String modelSubType = record.getModelSubType(); + String modelNameInSource = record.getModelNameInSource(); String modelDescription = record.getModelDescription(); String extensionPackage = record.getExtensionPackage(); @@ -157,8 +158,6 @@ } else if (VIRTUAL_STR.equalsIgnoreCase(modelSubType)) { annot.setModelType(ModelType.VIRTUAL_LITERAL); } - // Set Model Description - annot.setDescription(modelDescription); //-------------------------------- // Relationship Model //-------------------------------- @@ -167,8 +166,6 @@ annot.setPrimaryMetamodelUri(RelationshipPackage.eNS_URI); // Set subType annot.setModelType(ModelType.PHYSICAL_LITERAL); - // Set Model Description - annot.setDescription(modelDescription); //-------------------------------- // Extension Model //-------------------------------- @@ -177,10 +174,13 @@ annot.setPrimaryMetamodelUri(ExtensionPackage.eNS_URI); // Set subType annot.setModelType(ModelType.EXTENSION_LITERAL); - // Set Model Description - annot.setDescription(modelDescription); } + // Set Model NameInSource + annot.setNameInSource(modelNameInSource); + // Set Model Description + annot.setDescription(modelDescription); + //If the record has an extension package entry... look up the //XPackage and set that info on the ModelAnnotation if(extensionPackage != null) {