use of org.obeonetwork.dsl.manifest.MImportExportData in project InformationSystem by ObeoNetwork.
the class ManifestServices method addExportedManifestToSession.
public void addExportedManifestToSession(final Session session, final MManifest manifest) {
if (session != null) {
MImportExportData data = getImportExportData(session);
if (data == null) {
data = createImportExportData(session);
}
final MImportExportData data2 = data;
executeInRecordingCommand(session, () -> data2.getExportedManifests().add(manifest));
}
}
use of org.obeonetwork.dsl.manifest.MImportExportData in project InformationSystem by ObeoNetwork.
the class ManifestServices method createImportExportData.
public MImportExportData createImportExportData(final Session session) {
MImportExportData data = ManifestFactory.eINSTANCE.createMImportExportData();
final DAnalysis mainAnalysis = getMainAnalysis(session);
if (mainAnalysis != null) {
executeInRecordingCommand(session, () -> {
FeatureExtensionsManager.INSTANCE.saveFeatureExtensionData(ManifestFeatureExtension.FEATURE_EXTENSION_NAME, session, mainAnalysis, data);
});
}
return data;
}
Aggregations