From 9b96862e344971742228108a305f524c88b4051a Mon Sep 17 00:00:00 2001 From: Stefan Kapferer Date: Thu, 22 Aug 2024 16:15:02 +0200 Subject: [PATCH] Fix VIM precondition --- .../org/contextmapper/dsl/generator/PlantUMLGenerator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.contextmapper.dsl/src/org/contextmapper/dsl/generator/PlantUMLGenerator.java b/org.contextmapper.dsl/src/org/contextmapper/dsl/generator/PlantUMLGenerator.java index 00ab9f8f..18a53efc 100644 --- a/org.contextmapper.dsl/src/org/contextmapper/dsl/generator/PlantUMLGenerator.java +++ b/org.contextmapper.dsl/src/org/contextmapper/dsl/generator/PlantUMLGenerator.java @@ -27,6 +27,7 @@ import org.contextmapper.dsl.contextMappingDSL.Stakeholders; import org.contextmapper.dsl.contextMappingDSL.UseCase; import org.contextmapper.dsl.contextMappingDSL.UserRequirement; +import org.contextmapper.dsl.contextMappingDSL.ValueElicitation; import org.contextmapper.dsl.contextMappingDSL.ValueRegister; import org.contextmapper.dsl.generator.exception.GeneratorInputException; import org.contextmapper.dsl.generator.plantuml.PlantUMLAggregateClassDiagramCreator; @@ -40,6 +41,7 @@ import org.contextmapper.dsl.generator.plantuml.PlantUMLUseCaseDiagramCreator; import org.contextmapper.dsl.generator.plantuml.PlantUMLUseCaseInteractionsSequenceDiagramCreator; import org.contextmapper.dsl.generator.plantuml.PlantUMLValueImpactMapGenerator; +import org.contextmapper.tactic.dsl.tacticdsl.ServiceOperation; import org.contextmapper.tactic.dsl.tacticdsl.StateTransition; import org.eclipse.emf.common.util.URI; import org.eclipse.xtext.EcoreUtil2; @@ -84,7 +86,8 @@ private void generateStakeholderDiagrams(ContextMappingModel model, IFileSystemA private void generateValueImpactMapsForValueRegisters(ContextMappingModel model, IFileSystemAccess2 fsa, String fileName) { for (ValueRegister valueRegister : model.getValueRegisters()) { - if (!(valueRegister.getValueClusters().isEmpty() && valueRegister.getValues().isEmpty())) { + if (!(valueRegister.getValueClusters().isEmpty() && valueRegister.getValues().isEmpty()) + && !EcoreUtil2.eAllOfType(valueRegister, ValueElicitation.class).isEmpty()) { fsa.generateFile( fileName + "_ValueRegister_" + valueRegister.getName() + "_Value-Impact-Map" + "." + PLANT_UML_FILE_EXT,