Skip to content

Commit

Permalink
Fix VIM precondition
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka committed Aug 22, 2024
1 parent 7d1f15f commit 9b96862
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9b96862

Please sign in to comment.