Skip to content

Commit e09a1dd

Browse files
committed
* SysML2PlantUMLStyle.StyleStereotypeDefaultSwitch (caseEventOccurrenceUsage,
caseIncludeUseCaseUsage): Show <<event>> or <<include>> when hasRefSubsettingWithoutDeclaredName() is true like perform and exhibit.
1 parent 4b08946 commit e09a1dd

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

org.omg.sysml.plantuml/src/org/omg/sysml/plantuml/SysML2PlantUMLStyle.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,11 @@ public String caseSatisfyRequirementUsage(SatisfyRequirementUsage sru) {
552552

553553
@Override
554554
public String caseIncludeUseCaseUsage(IncludeUseCaseUsage iucu) {
555-
return " include use case>> ";
555+
if (VStructure.hasRefSubsettingWithoutDeclaredName(iucu)) {
556+
return " include>> ";
557+
} else {
558+
return " include use case>> ";
559+
}
556560
}
557561

558562
@Override
@@ -596,7 +600,11 @@ public String caseVerificationCaseDefinition(VerificationCaseDefinition acd) {
596600

597601
@Override
598602
public String caseEventOccurrenceUsage(EventOccurrenceUsage eou) {
599-
return " event occurrence>> ";
603+
if (VStructure.hasRefSubsettingWithoutDeclaredName(eou)) {
604+
return " event>> ";
605+
} else {
606+
return " event occurrence>> ";
607+
}
600608
}
601609
}
602610

0 commit comments

Comments
 (0)