Does pause/continue work with namespaces?

0 votes
asked Feb 12, 2021 in Question / help by anonymous

This works as expected:

/*

@startuml

namespace MyNamespace{

DerivedClass <|-- BaseClass

}

@pause

@continue

@enduml

*/

But this shows an empty namespace - why?

/*

@startuml

namespace MyNamespace{

@pause

@continue

DerivedClass <|-- BaseClass

}

@enduml

*/

commented Feb 12, 2021 by Martin (8,360 points)
edited Feb 12, 2021 by Martin

Isn't it @unpause rather than @continue ? 

As per https://forum.plantuml.net/1525/%40pauseuml-for-splitting-uml-code?show=1529#a1529 you have to read all the comments, in particular:

commented Jan 23, 2014 by plantuml (244,720 points)

So in last beta, we finally use @pause & @unpause.
This is likely to be the official syntax.

commented Feb 12, 2021 by anonymous
It is confusing - I was using this answer from PlantUML in the same thread you linked that says to use @continue :

https://forum.plantuml.net/1525/%40pauseuml-for-splitting-uml-code?show=1529#a1529

However - @unpause did work in my example above - Thanks!
commented Feb 13, 2021 by Martin (8,360 points)
Yes, reading the comments suggests a change in syntax part way through.

1 Answer

0 votes
answered Feb 13, 2021 by Martin (8,360 points)
(Changing my comment to an answer based on OP feedback).

Although there's evidence that the syntax was @CONTINUE at one time; it seems that the current syntax is @UNPAUSE.
...