else
drawingViews = new DrawingView[0];
ByteArrayOutputStream bufferStream = new ByteArrayOutputStream();
FeatureModel fm = (FeatureModel) featureModelNGObject
.getInterface(de.FeatureModellingTool.FeatureModel.Manager.FEATURE_MODEL_INTERFACE);
ConstraintModel cm = (ConstraintModel) featureModelNGObject
.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CONSTRAINT_MODEL_INTERFACE);
InteractionModel im = (InteractionModel) featureModelNGObject
.getInterface(de.FeatureModellingTool.FeatureModel.Manager.INTERACTION_MODEL_INTERFACE);
// gh start
CustomizationModel customizationModel = (CustomizationModel) featureModelNGObject
.getInterface(de.FeatureModellingTool.FeatureModel.Manager.CUSTOMIZATION_MODEL_INTERFACE);
// gh end
// begin д����Ŀ�����ļ�
StorableOutput textOutput = new StorableOutput(bufferStream);
textOutput.writeString(fm.getName());
textOutput.writeInt(drawingViews.length);
for (int i = 0; i < drawingViews.length; i++) {
textOutput.writeString(drawingViews[i].getDrawing()
.getTitle());
}
textOutput.close();
ZipEntry indexZipEntry = new ZipEntry("index.txt");
zipOutStream.putNextEntry(indexZipEntry);
bufferStream.writeTo(zipOutStream);
zipOutStream.closeEntry();
// end д����Ŀ�����ļ�
bufferStream.reset();
// begin д������ģ�������ļ�
FmdlParser parser = new FmdlParserPrototype();
parser.saveFmdl(bufferStream, fm);
ZipEntry fmZipEntry = new ZipEntry(fm.getName() + ".fm");
zipOutStream.putNextEntry(fmZipEntry);
bufferStream.writeTo(zipOutStream);
zipOutStream.closeEntry();
// end д������ģ�������ļ�
bufferStream.reset();
// begin д��Լ��ģ�������ļ�
parser.saveCmdl(bufferStream, cm, fm);
ZipEntry cmZipEntry = new ZipEntry(fm.getName() + ".cm");
zipOutStream.putNextEntry(cmZipEntry);
bufferStream.writeTo(zipOutStream);
zipOutStream.closeEntry();
// end д��Լ��ģ�������ļ�
bufferStream.reset();
// begin д�뽻��ģ�������ļ�
parser.saveImdl(bufferStream, im, fm);
ZipEntry imZipEntry = new ZipEntry(fm.getName() + ".im");
zipOutStream.putNextEntry(imZipEntry);
bufferStream.writeTo(zipOutStream);
zipOutStream.closeEntry();
// end д�뽻��ģ�������ļ�