1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-05 21:17:52 +00:00

Added <<start>> Stereotype

Currently the state diagram only supports <<end>> as a stereotype for creating named end points. However, the same functionality is missing for starting points. This commit adds this ability.
This commit is contained in:
Jan Sende 2022-01-31 11:52:24 +09:00 committed by GitHub
parent f0a3fbf548
commit b84c1670d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,9 @@ public class CommandCreateState extends SingleLineCommand2<StateDiagram> {
if ("<<join>>".equalsIgnoreCase(stereotype)) { if ("<<join>>".equalsIgnoreCase(stereotype)) {
return LeafType.STATE_FORK_JOIN; return LeafType.STATE_FORK_JOIN;
} }
if ("<<start>>".equalsIgnoreCase(stereotype)) {
return LeafType.CIRCLE_START;
}
if ("<<end>>".equalsIgnoreCase(stereotype)) { if ("<<end>>".equalsIgnoreCase(stereotype)) {
return LeafType.CIRCLE_END; return LeafType.CIRCLE_END;
} }